-
Bug
-
Resolution: Fixed
-
Minor
-
-
Blue Ocean 1.5 - beta 3
Problem
Steps will appear out of order from where they were defined in the Jenkinsfile.
Jenkinsfile
pipeline { agent any stages { stage ('init') { steps { echo 'Hello World' } } } post { always { script { echo 'echo step before emailext step' emailext(subject: 'Test email', to: 'invalid@invalid.com') } } } }
Screenshot
Original Request
Here the correct classic UI console log:
Here the Blue Ocean UI with different output:
And this is the end of the declarative pipeline code:
post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ...
- relates to
-
JENKINS-49297 input step in post directive is never prompted within Blue Ocean
-
- Closed
-
[JENKINS-47251] Wrong order of steps in 'script' block of 'post' block in Blue Ocean
Sprint | New: Blue Ocean 1.4 - beta 1 [ 401 ] | |
Assignee | New: James Dumay [ jamesdumay ] |
Attachment | New: image-2017-10-05-13-37-18-580.png [ 39946 ] |
Attachment | New: image-2017-10-05-13-38-27-385.png [ 39947 ] |
Description |
Original:
Here the correct classic UI console log: !image-2017-10-03-08-12-06-625.png|thumbnail! Here the Blue Ocean UI with different output: !image-2017-10-03-08-13-28-073.png|thumbnail! And this is the end of the declarative pipeline code: {code:java} post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ... {code} |
New:
*Jenkinsfile* {code} pipeline { agent any stages { stage ('init') { steps { echo 'Hello World' } } } post { always { script { echo 'echo step before emailext step' emailext(subject: 'Test email', to: 'invalid@invalid.com') } } } } {code} *Original Request* Here the correct classic UI console log: !image-2017-10-03-08-12-06-625.png|thumbnail! Here the Blue Ocean UI with different output: !image-2017-10-03-08-13-28-073.png|thumbnail! And this is the end of the declarative pipeline code: {code:java} post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ... {code} |
Sprint | Original: Blue Ocean 1.4 - beta 1 [ 401 ] | New: Blue Ocean 1.4 - beta 2 [ 416 ] |
Assignee | Original: James Dumay [ jamesdumay ] |
Description |
Original:
*Jenkinsfile* {code} pipeline { agent any stages { stage ('init') { steps { echo 'Hello World' } } } post { always { script { echo 'echo step before emailext step' emailext(subject: 'Test email', to: 'invalid@invalid.com') } } } } {code} *Original Request* Here the correct classic UI console log: !image-2017-10-03-08-12-06-625.png|thumbnail! Here the Blue Ocean UI with different output: !image-2017-10-03-08-13-28-073.png|thumbnail! And this is the end of the declarative pipeline code: {code:java} post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ... {code} |
New:
*Problem* Steps will appear out of order from where they were defined in the Jenkinsfile. *Jenkinsfile* {code} pipeline { agent any stages { stage ('init') { steps { echo 'Hello World' } } } post { always { script { echo 'echo step before emailext step' emailext(subject: 'Test email', to: 'invalid@invalid.com') } } } } {code} *Screenshot !image-2017-10-05-13-38-27-385.png|thumbnail! *Original Request* Here the correct classic UI console log: !image-2017-10-03-08-12-06-625.png|thumbnail! Here the Blue Ocean UI with different output: !image-2017-10-03-08-13-28-073.png|thumbnail! And this is the end of the declarative pipeline code: {code:java} post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ... {code} |
Description |
Original:
*Problem* Steps will appear out of order from where they were defined in the Jenkinsfile. *Jenkinsfile* {code} pipeline { agent any stages { stage ('init') { steps { echo 'Hello World' } } } post { always { script { echo 'echo step before emailext step' emailext(subject: 'Test email', to: 'invalid@invalid.com') } } } } {code} *Screenshot !image-2017-10-05-13-38-27-385.png|thumbnail! *Original Request* Here the correct classic UI console log: !image-2017-10-03-08-12-06-625.png|thumbnail! Here the Blue Ocean UI with different output: !image-2017-10-03-08-13-28-073.png|thumbnail! And this is the end of the declarative pipeline code: {code:java} post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ... {code} |
New:
*Problem* Steps will appear out of order from where they were defined in the Jenkinsfile. *Jenkinsfile* {code} pipeline { agent any stages { stage ('init') { steps { echo 'Hello World' } } } post { always { script { echo 'echo step before emailext step' emailext(subject: 'Test email', to: 'invalid@invalid.com') } } } } {code} *Screenshot* !image-2017-10-05-13-38-27-385.png|thumbnail! *Original Request* Here the correct classic UI console log: !image-2017-10-03-08-12-06-625.png|thumbnail! Here the Blue Ocean UI with different output: !image-2017-10-03-08-13-28-073.png|thumbnail! And this is the end of the declarative pipeline code: {code:java} post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ... {code} |
Description |
Original:
*Problem* Steps will appear out of order from where they were defined in the Jenkinsfile. *Jenkinsfile* {code} pipeline { agent any stages { stage ('init') { steps { echo 'Hello World' } } } post { always { script { echo 'echo step before emailext step' emailext(subject: 'Test email', to: 'invalid@invalid.com') } } } } {code} *Screenshot* !image-2017-10-05-13-38-27-385.png|thumbnail! *Original Request* Here the correct classic UI console log: !image-2017-10-03-08-12-06-625.png|thumbnail! Here the Blue Ocean UI with different output: !image-2017-10-03-08-13-28-073.png|thumbnail! And this is the end of the declarative pipeline code: {code:java} post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ... {code} |
New:
*Problem* Steps will appear out of order from where they were defined in the Jenkinsfile. *Jenkinsfile* {code} pipeline { agent any stages { stage ('init') { steps { echo 'Hello World' } } } post { always { script { echo 'echo step before emailext step' emailext(subject: 'Test email', to: 'invalid@invalid.com') } } } } {code} *Screenshot* !image-2017-10-05-13-38-27-385.png! *Original Request* Here the correct classic UI console log: !image-2017-10-03-08-12-06-625.png|thumbnail! Here the Blue Ocean UI with different output: !image-2017-10-03-08-13-28-073.png|thumbnail! And this is the end of the declarative pipeline code: {code:java} post { failure { script { ... } } always { script { ... if (...) { echo 'Keeping this build forever and sending specific email notification with build report...' ... emailext(subject: '... Recovery Build Report', to: toEmails, attachLog: true, body: htmlBody, mimeType: Constants.CONTENT_TYPE_TEXT_HTML) } else { ... } ... {code} |
Sprint | Original: Blue Ocean 1.4 - beta 3 [ 416 ] | New: Blue Ocean 1.4 - beta 4 [ 441 ] |
Labels | New: testing-notes-reviewed |