Cannot use readMavenPom in Jenkinsfile

后端 未结 2 1155
清酒与你
清酒与你 2021-02-05 03:38

I am working on a Jenkinsfile for use with Jenkins 2.0. The readMavenPom method is not recognized. Is there some configuration I am missing to make this available

相关标签:
2条回答
  • 2021-02-05 04:10

    I needed to install the pipeline-utility-steps plugin.

    0 讨论(0)
  • 2021-02-05 04:22

    Before you use this step, note the below from writeMavenPom/readMavenPom documentation:

    Avoid using this step and readMavenPom. It is better to use the sh step to run mvn goals

    https://www.jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#writemavenpom-write-a-maven-project-file

    0 讨论(0)
提交回复
热议问题