代码之家  ›  专栏  ›  技术社区  ›  Stevko

如何在artifactory maven插件中将-x和-b等命令行参数传递给rtmavenrun?

  •  1
  • Stevko  · 技术社区  · 7 年前

    在我的声明性Jenkinsfile中,我使用源于 https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins

               rtMavenRun (
                    tool: 'maven-3.6.0',
                    pom: 'pom.xml',
                    goals: 'clean test',
                    resolverId: 'maven-resolver-id',
                    deployerId: 'maven-deployer-id',
                    buildNumber: '99',
                    buildName: 'my-build'
                )
    

    当它运行时,输出会充满大量的“进度”条目。 关闭它的方法是在mvn命令行上使用-b。

    如何使用rtmavenrun()?

    我尝试使用找到的“options:”参数 https://jenkins.io/doc/pipeline/steps/artifactory/#rtmavenrun-run-artifactory-maven 但这只定义了JVM参数,而不是Maven参数。

    1 回复  |  直到 7 年前
        1
  •  1
  •   user944849    7 年前

    将“目标”参数更改为具有值 '-B clean test' .