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
}
} 了解一下
页:
[1]