[JIRA] (JENKINS-49515) Misspelled version of `stages` appears in error message for malformed sequential pipeline

0 views
Skip to first unread message

kshultz@cloudbees.com (JIRA)

unread,
Feb 12, 2018, 2:03:03 PM2/12/18
to jenkinsc...@googlegroups.com
Karl Shultz created an issue
 
Jenkins / Bug JENKINS-49515
Misspelled version of `stages` appears in error message for malformed sequential pipeline
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2018-02-12 19:02
Environment: Jenkins:
- Core 2.105, running on Ubuntu
- Snapshot builds of declarative, uploaded from the "Advanced" tab, built from the jenkins-45455 branch

Client:
- Fedora Workstation 27
- Some old version of jenkins-cli.jar that I happened to have
Priority: Trivial Trivial
Reporter: Karl Shultz

Summary:
There's a misspelled word, stasges, in one of the error messages. Should be stages. It reads as follows:

WorkflowScript: 17: No "steps", "stasges", or "parallel" to execute within stage "2. second-sequential-stage" @ line 17, column 29.
                               stage('2. second-sequential-stage') {
                               ^

Steps to recreate:
1. Create a Jenkinsfile for testing JENKINS-46809. It needs to be missing the steps section inside one of the sequential {{stage}}s. Like this one:

    pipeline {
        stages {
            stage('parallel-wrapper') {
                parallel {
                    stage('sequential-stages-1') {
                        stages {
                            stage('1. first-sequential-stage') { 
                                sh "touch file-1"
                            }
                            stage('2. second-sequential-stage') {
                                sh "touch file-2"
                            }
                        }
                    }

                    // What happens if we have two of these? 
                    stage('sequential-stages-2') {
                        stages {
                            // If we can't find the files created in `multiple-stages-1`, 
                            // this won't work and the pipeline will fail.
                            stage('1. looks-for-file-1') { 
                                sh "ls file-1"
                            }
                            stage('2. looks-for-file-2') {
                                sh "ls file-2"
                            }
                        }
                    }                    
                }
            }
        }
        post {
            success {
                echo "--> SUCCESS"
            }
            failure {
                echo "--> FAILURE"
            }
        }
    }

2. Run this pipeline however you like. I used the CLI linter, but the misspelling shows up in console output too.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Feb 12, 2018, 3:05:03 PM2/12/18
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Fixed
 

Fixed in latest push to the branch. =)

Change By: Andrew Bayer
Status: Open Resolved
Resolution: Fixed

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:51 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

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