[JIRA] (JENKINS-59993) post Support for a stage

2 views
Skip to first unread message

ptletski@cox.net (JIRA)

unread,
Oct 30, 2019, 8:41:03 PM10/30/19
to jenkinsc...@googlegroups.com
Paul Tletski created an issue
 
Jenkins / Bug JENKINS-59993
post Support for a stage
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2019-10-31 00:40
Environment: Windows 10 as a service.
Jenkins 2.190.1
Priority: Minor Minor
Reporter: Paul Tletski

According to Jenkins documentation, post should be usable after all steps or a single step

 

The post section defines one or more additional steps that are run upon the completion of a Pipeline's or stage's run (depending on the location of the post section within the Pipeline).

 

From <https://jenkins.io/doc/book/pipeline/syntax/#post>

 

I am encountering this error

 

WorkflowScript: 17: Expected a stage @ line 21, column 3.
                   post
     ^

1 error

 

for the following:

 

pipeline
{
    agent any

    stages
    {
        stage('Some Action')
        {
           steps
           {
             script
             

{                println "do something"              }

           }
        }
        post
        {

             always

           

{                 println "Do some work"             }

        }
   }
}

 

I believe this syntax correct. I can find no examples to show otherwise. Hopefully you do not mean stages' 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