-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
workflow-api 2.39
Jenkins ver. 2.204.2
When executing a simple code, I observe a logging sequence error, those as we see on this piece of code playbook will be executed, and after the sh script. However, in the log we see the execution of the sh script before the completion of the playbook
Pipeline code:
stage("Run custom playbook") {stage("Run custom playbook") { prettyPrint("Выполняется плейбук $playbook с тегами $tags" as String) dir("distr") { withCredentials([file(credentialsId: vault_cred, variable: 'passfile')]) { ansiColor('xterm') { ansiblePlaybook colorized: true, extras: "--vault-password-file $passfile $only_on_host", installation: ansible_version, inventory: "inventories/$kontur/inventory", playbook: playbook, sudoUser: null, tags: tags } sh "test -e status && cat status || echo" } }}
log
TASK [control_plane : Start control-plane via script] ************************** Tuesday 12 May 2020 04:05:12 +0300 (0:00:05.214) 0:00:27.970 *********** changed: [tklea-snaps0001.vm.esrt.cloud.sbrf.ru] TASK [control_plane : Wait for port open] ************************************** Tuesday 12 May 2020 04:05:13 +0300 (0:00:00.643) 0:00:28.614 *********** [Pipeline] } [Pipeline] // ansiColor [Pipeline] sh 04:05:23 + test -e status 04:05:23 + echo 04:05:23 ok: [tklea-snaps0001.vm.esrt.cloud.sbrf.ru] PLAY RECAP ********************************************************************* tklea-snaps0001.vm.esrt.cloud.sbrf.ru : ok=17 changed=7 unreachable=0 failed=0