[JIRA] (JENKINS-52745) Stage input runs before when conditional

5 views
Skip to first unread message

rsandell@cloudbees.com (JIRA)

unread,
Jul 25, 2018, 10:48:05 AM7/25/18
to jenkinsc...@googlegroups.com
rsandell created an issue
 
Jenkins / Bug JENKINS-52745
Stage input runs before when conditional
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2018-07-25 14:46
Priority: Minor Minor
Reporter: rsandell

The input step in below example will run even if the pipeline isn't building a matching tag

But the steps won't execute, so the input is kinda void anyway.

pipeline {
    agent any
    stages {
        stage ("First") {
            steps {
                echo "Hello"
            }
        }
        stage ("Second") {
            options {
                timeout 15
            }
            when {
                tag "release-*"
            }
            input {
                message 'Deploy to production?'
                ok 'Fire zee missiles!'
            }
            steps {
                echo "World"
            }
        }
    }
}
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

andrew.bayer@gmail.com (JIRA)

unread,
Aug 9, 2018, 2:02:02 PM8/9/18
to jenkinsc...@googlegroups.com
Change By: Andrew Bayer
Status: Open Fixed but Unreleased
Resolution: Duplicate

msneller@omnitracs.com (JIRA)

unread,
Jan 24, 2020, 11:29:02 AM1/24/20
to jenkinsc...@googlegroups.com
Matt Sneller commented on Bug JENKINS-52745
 
Re: Stage input runs before when conditional

When will this fix be released?

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