[JIRA] (JENKINS-41530) Allow empty stages

0 views
Skip to first unread message

kzantow@cloudbees.com (JIRA)

unread,
Jan 28, 2017, 10:34:01 AM1/28/17
to jenkinsc...@googlegroups.com
Keith Zantow created an issue
 
Jenkins / Bug JENKINS-41530
Allow empty stages
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2017/Jan/28 3:33 PM
Priority: Minor Minor
Reporter: Keith Zantow

We should remove the requirement for stages to have steps. Despite being silly to do, is this really an invalid Jenkinsfile?

pipeline {
  agent any
  stages {
    stage('Do nothing') { }
  }
}

Right now, it fails with a message that there's "nothing to do". Similarly, the JSON validations include errors for stages that have no steps. But I don't know if it matters, it's not really an error, it's just the user doing something pointless. Adding an echo 'hello' is equally pointless.

Unless there's a technical reason there need to be steps, we should remove this validation.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:56 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Won't Fix
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages