I have been trying to trigger Jenkins Job from Octopus. One way that I found - Remote Access API.
But when I trigger the command from Octopus, I get an error.
Command:
curl -X POST -s "https://jenkins.jenkins.dev/job/MyService/buildWithParameters" -u user:xxx-F dstenv=p1-qa version=from-qa
Error:
The remote script failed with exit code 6
April 21st 2021 07:51:35 Fatal
The action step1 on a Worker failed
I ran the command on the slave machine directly - runs fine. When I run other commands from octopus, it runs fine, just when I run the curl command it gives the error.
So what gives!