diff --git a/update.sh b/update.sh index 7126f33..8b42c93 100755 --- a/update.sh +++ b/update.sh @@ -1,5 +1,8 @@ #!/bin/bash git pull -curl -X POST "https://jenkins.scheme.org/reload-configuration-as-code/?casc-reload-token=${CASC_RELOAD_TOKEN}" +curl \ + -X POST \ + -u ${JENKINS_USER}:${JENKINS_API_TOKEN} \ + "https://jenkins.scheme.org/reload-configuration-as-code/?casc-reload-token=${CASC_RELOAD_TOKEN}"