[JIRA] (JENKINS-60929) need explicit message like "You cannot use 'branch' in 'when' in non-multibranch pipeline"

3 views
Skip to first unread message

a.regentov@ftc.ru (JIRA)

unread,
Jan 31, 2020, 3:48:02 AM1/31/20
to jenkinsc...@googlegroups.com
Andrey Regentov created an issue
 
Jenkins / Improvement JENKINS-60929
need explicit message like "You cannot use 'branch' in 'when' in non-multibranch pipeline"
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: core
Created: 2020-01-31 08:47
Priority: Minor Minor
Reporter: Andrey Regentov

According to documentation, in declarative pipelines "when-branch" directive can work only if used in multibranch pipelines. But if you use it in a non-multibranch pipeline it simply states "Stage ... skipped due to when conditional", and you think that the issue is in the condition and replay

It would be better if it says something like "You cannot use 'branch' in 'when' in non-multibranch pipeline" with some red font on job's console output.

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