mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-21 05:55:35 +00:00
jenkins: Add set +x to script.
This is a follow up to https://github.com/tektoncd/catalog/pull/696.
This commit is contained in:
parent
6929f039f9
commit
6e9101f41e
@ -34,7 +34,7 @@ EOF
|
||||
kubectl -n "${tns}" wait --for=condition=available --timeout=600s deployment/jenkins
|
||||
kubectl -n "${tns}" expose deployment jenkins --target-port=8080
|
||||
|
||||
set +e
|
||||
set +ex
|
||||
lock=0
|
||||
while true;do
|
||||
apitoken="$(kubectl -n "${tns}" exec deployment/jenkins -- cat /var/jenkins_home/secrets/initialAdminPassword 2>/dev/null)"
|
||||
@ -52,6 +52,7 @@ set -e
|
||||
# We need to execute the script on the pods, since it's too painful with direct exec the commands
|
||||
cat <<EOF>/tmp/script.sh
|
||||
#!/bin/bash
|
||||
set +x
|
||||
cookiejar=\$(mktemp)
|
||||
apitoken=\$(cat /var/jenkins_home/secrets/initialAdminPassword)
|
||||
while [[ -z "\${crumb}" ]];do
|
||||
|
Loading…
Reference in New Issue
Block a user