[JIRA] (JENKINS-59370) post { unsuccessful {}} doesn't fire without a success {}

2 views
Skip to first unread message

brian.murrell@intel.com (JIRA)

unread,
Sep 13, 2019, 2:37:16 PM9/13/19
to jenkinsc...@googlegroups.com
Brian J Murrell created an issue
 
Jenkins / Bug JENKINS-59370
post { unsuccessful {}} doesn't fire without a success {}
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline
Created: 2019-09-13 18:36
Priority: Major Major
Reporter: Brian J Murrell

If I have a:

post {
  unsuccessful {
    println("unsuccessful")
  }
} 

without also having a success block in there, the unsuccessful block fails to run as if it were just not there.

Since empty stages are not allowed I had to write a noop() step in a pipeline library that does nothing in order to have a:

  success { noop() }

in my post stage so that the unsuccessful stage would run.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages