This is a follow-up based on my first issue from a while ago:
Trigger Jenkins build post-deploy
I’ve successfully set up the plugin Jenkins - Queue Job as the last step being triggered from our deployment to QA. However, an exception is thrown complaining about failed connection to the remote server. This might have something to do with the fact that our Octopus and Jenkins servers are on separate environments (IP space).
See the attached screen dump:
I’ve also tried running the code snippet directly from my machine via PowerShell, with a few modifications.
I ended up with an exception that included a 403 Forbidden status code.
PS H:\Documents> .\Octopus_Jenkins.ps1
Job URL: https://jenkins.intra.eika.no/job/felles-engine-selenium-regress/build
Job URL link: http://jenkins.intra.eika.no/queue/item/32220/
Exception in jenkins job: Den eksterne serveren returnerte feilen (403) Forbudt.
Should the Job URL link be using http or https? Could that be the reason for my failed attempts?
I’m using my own username and password to authenticate to the servers, not any provided global users, could that have some affect?
Any other ideas on what I could do to troubleshoot?