Deployment Manger 5.2 - Jenkins Post Build Actions script Failing
Below script is failing while running Jenkins build to send response back to Deployment Manager. Jenkins is running on Microsoft Windows
Error: jq: unknown option --insecure
@echo off for /F %%I in ('curl -S --insecure -d "client_id=123&client_secret=123&grant_type=client_credentials" https://vaww.dev.va.com/webapp/PRRestService/oauth2/v1/token ^| jq -r .access_token') do set token=%%~I curl -S --insecure -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization:Bearer %token%" -k -X PUT --data "{\"taskStatus\":\"Resolved-Completed\",\"taskInfo\":{\"outputParameters\":[{\"name\": \"BuildNumber\",\"type\": \"Text\",\"value\": \"%BUILD_NUMBER%\"},{\"name\": \"JenkinsBuildURL\",\"type\": \"Text\",\"value\": \"%BUILD_URL%\"}]}}" %CallBackURL%
Reference: https://community.pega.com/knowledgebase/articles/devops/86/configuring-jenkins-51x