clone-script.sh fails if Jenkinsfile has debug enabled
Closed this issue · 2 comments
gerardcl commented
If debug: true
in OdsPipeline context, then:
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Create Openshift Environment)
[Pipeline] sh
[workspace] Running shell script
+ oc project projectX-42
[Pipeline] sh
[workspace] Running shell script
+ oc projects
+ grep '^\s*projectX-'
+ wc -l
[Pipeline] echo
Environment does not exist yet. Creating now ...
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] sh
[workspace] Running shell script
+ curl --fail -s --user '****' -G 'https://bitbucket.example.com/projects/opendevstack/repos/ods-project-quickstarters/raw/ocp-templates/scripts/clone-project.sh?at=refs%2Fheads%2Fproduction' -d raw -o clone-project.sh
[Pipeline] sh
[workspace] Running shell script
+ sh clone-project.sh -o https://openshift.default.svc.cluster.local -b bitbucket.example.com -c '****' -p projectX -s dev -t 42 --debug
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // wrap
[Pipeline] echo
Setting BitBucket build status to FAILED ...
michaelsauter commented
What's the error? Should be at the end of the pipeline output ...
gerardcl commented
there was no more feedback than that (only usual sending email message and so on but no more stack info)