Question

6
Replies
150
Views
VRR K (VeeraRR)
Department of Veterans Affairs

Department of Veterans Affairs
US
VeeraRR Member since 2020 10 posts
Department of Veterans Affairs
Posted: May 18, 2021
Last activity: June 16, 2021
Posted: 18 May 2021 13:17 EDT
Last activity: 16 Jun 2021 13:47 EDT
Solved

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

Pega Platform 8.5.3 DevOps Testing Applications Government System Architect