Closed fuzzmz closed 4 years ago
If in a pipeline you define global (groovy) variables then the script falsely reports that Script must begin with pipeline block.
Script must begin with pipeline block
For example, the bellow code is a valid Jenkinsfile despite the error shown by the plugin.
def SAMPLE_VAR = '' pipeline { agent { label 'master' } stages { stage('build') { steps { echo 'Sample stuff' } } } }
Duplicated - #36 waits for release :)
@fuzzmz can you confirm it works for you now ?
If in a pipeline you define global (groovy) variables then the script falsely reports that
Script must begin with pipeline block
.For example, the bellow code is a valid Jenkinsfile despite the error shown by the plugin.