Cloud login failure from GItLab CI

Hi @tailorravat

Thanks for getting back. I think you should not have to explicitly login. Creating the variables like this worked for me at the project level.


I used a basic test:

import http from 'k6/http';

export const options = {
    duration: '10s',
    vus: 2,
    thresholds: {
        http_req_duration: ['p(95)<1200'], // 95 percent of response times must be below 2 seconds
    },
};

export default function () {
    // simple request delayed 1 second
    http.get('https://httpbin.test.k6.io/delay/1');
}

And GitLab could log in and execute in the k6 cloud with the pipeline in the example.

Can you share how you created the variables? I suspect this could be the issue, maybe something changed in GitLab defaults for variables since this blog was posted, and we need to specify clearly in the instructions.

Cheers!