its having trouble curling, because its having trouble keeping track of the command... because the password has a backslash. :lolsob:
All checks were successful
gitea.arg.rip/deployment/pipeline/head This commit looks good
All checks were successful
gitea.arg.rip/deployment/pipeline/head This commit looks good
This commit is contained in:
parent
dd924662fb
commit
8c34cc29de
@ -111,20 +111,16 @@ pipeline {
|
|||||||
|
|
||||||
sed -ie \"\${dbstartline}d;\${dbendline}d\" Jenkinsfile
|
sed -ie \"\${dbstartline}d;\${dbendline}d\" Jenkinsfile
|
||||||
|
|
||||||
echo "114"
|
|
||||||
databasecredsid=\$(uuidgen)
|
databasecredsid=\$(uuidgen)
|
||||||
echo "116: notice that -s won't happen until line 123"
|
urlGetData=\"crumbIssuer/api/xml?xpath=concat\\(//crumbRequestField,\\":\\",//crumb\\)\"
|
||||||
urlGetData=\"crumbIssuer/api/xml\\?xpath=concat\\(//crumbRequestField,\\":\\",//crumb\\)\"\"
|
echo "116"
|
||||||
echo "118"
|
|
||||||
echo \"\${urlGetData}\"
|
echo \"\${urlGetData}\"
|
||||||
echo "120"
|
echo "118"
|
||||||
sleep 1
|
echo \'curl -s \"http://${env.JENKINS_USR}:\\\'${env.JENKINS_PSW}\\\'@alloces.lan:8080/\${urlGetData}\"\'
|
||||||
echo "122"
|
echo "122"
|
||||||
echo \"curl -s \"http://${env.JENKINS_USR}:\'${env.JENKINS_PSW}\'@alloces.lan:8080/\${urlGetData}\"
|
curl -s \"http://${env.JENKINS_USR}:\\\'${env.JENKINS_PSW}\\\'@alloces.lan:8080/\${urlGetData}\"
|
||||||
echo "123"
|
|
||||||
curl -s \"http://${env.JENKINS_USR}:\'${env.JENKINS_PSW}\'@alloces.lan:8080/\${urlGetData}\"
|
|
||||||
|
|
||||||
CRUMB=\$(curl -s \"http://${env.JENKINS_USR}:\'${env.JENKINS_PSW}\'@alloces.lan:8080/\${urlGetData}\")
|
CRUMB=\$(curl -s \"http://${env.JENKINS_USR}:\\\'${env.JENKINS_PSW}\\\'@alloces.lan:8080/\${urlGetData}\")
|
||||||
echo \$CRUMB
|
echo \$CRUMB
|
||||||
curl -H \$CRUMB -X POST \"http://${env.JENKINS_USR}:'${env.JENKINS_PSW}'@alloces.lan:8080/job/gitea.arg.rip/job/${servicename}/credentials/store/folder/domain/greyn%20services/createCredentials\" \
|
curl -H \$CRUMB -X POST \"http://${env.JENKINS_USR}:'${env.JENKINS_PSW}'@alloces.lan:8080/job/gitea.arg.rip/job/${servicename}/credentials/store/folder/domain/greyn%20services/createCredentials\" \
|
||||||
--data-urlencode 'json={
|
--data-urlencode 'json={
|
||||||
|
Loading…
Reference in New Issue
Block a user