From 5e545ab3bfc9c2dfae7c8d3ae03422419520845f Mon Sep 17 00:00:00 2001 From: retropikzel Date: Fri, 11 Oct 2024 15:54:45 +0300 Subject: [PATCH] Fix the configuration as code autoupdate --- update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}"