Cannot use readMavenPom in Jenkinsfile

后端 未结 2 1159
清酒与你
清酒与你 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: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

提交回复
热议问题