Skip to content

Pass environment url into load performance container

What does this MR do and why?

This MR passes CI_ENVIRONMENT_URL into k6 container so users can run their k6 test again dynamic / review environments, like they already can in other auto devops jobs.

How to set up and validate locally

.gitlab-ci.yml

...
include:
  - template: Auto-DevOps.gitlab-ci.yml
  - template: Jobs/Load-Performance-Testing.gitlab-ci.yml
load_performance:
  variables:
    K6_TEST_FILE: k6-simple-test.js

k6-simple-test.js

import http from 'k6/http';

export default function () {
  http.get(`${__ENV.CI_ENVIRONMENT_URL  }`);
};

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports