[JIRA] (JENKINS-58151) Invalid condition "unsuccessful" in post block

2 views
Skip to first unread message

eric.anderson@readytalk.com (JIRA)

unread,
Jun 21, 2019, 5:50:04 PM6/21/19
to jenkinsc...@googlegroups.com
Eric Anderson created an issue
 
Jenkins / Bug JENKINS-58151
Invalid condition "unsuccessful" in post block
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline
Created: 2019-06-21 21:49
Priority: Major Major
Reporter: Eric Anderson

In Jenkins version 2.169 the condition blocks supported in "post" do not match those in the documentation. Some of the supported ones are not documented.

According to the documentation] "post can support any of of the following post-condition blocks: alwayschangedfixedregressionabortedfailuresuccessunstableunsuccessful, and cleanup. "

However 

 {{post {
  success {
    script

{       // stuff     }
  }
  unsuccessful {
    script {       // stuff     }

  }
  cleanup {
    script

{       // stuff     }

  }
}

}}

results in this error: 
WorkflowScript: 128: Invalid condition "unsuccessful" - valid conditions are [always, changed, fixed, regression, aborted, success, unstable, failure, notBuilt, cleanup] @ line 128, column 5.
unsuccessful {

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages