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. |