Jenkins startup failed error

I use a windows node. In the existing pipeline I added a new stage, but it throws ```
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: error

stage(‘Liquibase Integration’) {
steps {
bat label:‘’, script: ‘’’
liquibase -version
‘’’
}
}

you have open-singlequote open-doublequote, then close-singlequote close-doublequote

I’m not sure why you have so many quotes, but they should be in pairs, so flip one of them

no, all are single quote, we use that for multiline commands.
I tried below snippet, same error.

stage(‘Liquibase Integration’) {
steps {
script {
liquibase -version
}
}
}

I think @halkeye is right, there’s something odd with your quotes.

What about:

stage('Liquibase Integration') {
  steps {
    bat label:'', script: '''
      liquibase -version
    '''
  }
}

?

I just tried, no luck.

It doesn’t like even when I tried with an empty stage.

stage(‘Liquibase Integration’) {
}

Do you have the very same error each time? :thinking:

yes, that’s right. It throws the same error message.

is that literally what you wrote? those are smart quotes, not real quotes

No real quotes, I verified again.

I have a feeling at this point that the error is outside of the stages. If you’re able to, can you try posting a bit more of your pipeline so we can see that there isn’t another syntax error outside of the stage you’re adding?

I already tested. If I remove the new stage, pipeline works fine.

I figured out the issue. We currently have 15 stages in the pipeline. Normally, we don’t have to run the entire pipeline every time we just abort it. I let it run a build to complete the full cycle. Finally, I modified the jenkinsfile to include a new stage. It did not throw any error this time.