I'm trying to trigger jenkins job after deploying a pipeline;
I've added this part in
.gitlab-ci.yml but I got below error when running the job in the after_script section
"curl: (6) Could not resolve host"
after_script: - echo "Starting regression tests…" - curl -i -X POST http://user:token@jenkinsUrl/job/jobname/build?token=tokenName
and the below is working properly from my terminal, triggering the build
curl -i -X POST http://user:token@jenkinsUrl/job/jobname/build?token=tokenName