y23335793 发表于 2018-1-9 07:51:01

jfrog artifactory jenkins pipeline 集成

node("docker-64") {  def server = Artifactory.newServer url: "http://xxxxxx:8081/artifactory", credentialsId: 'jfrog-artifactory'
  def rtMaven = Artifactory.newMavenBuild()
  def buildInfo
  stage ('Clone') {
  git url: 'https://github.com/jfrogdev/project-examples.git'
  }
  stage ('Artifactory configuration') {
  rtMaven.tool = '64maven' // Tool name from Jenkins configuration

  rtMaven.deployer>  buildInfo = Artifactory.newBuildInfo()
  }
  stage ('Exec Maven') {
  rtMaven.run pom: 'maven-example/pom.xml', goals: 'clean install', buildInfo: buildInfo
  }
  stage ('Publish build info') {
  server.publishBuildInfo buildInfo
  }
  }

小张同学ok 发表于 2025-5-14 15:31:35

了解一下
页: [1]
查看完整版本: jfrog artifactory jenkins pipeline 集成