标签:jenkins mode rtm factory wiki oca maven server 资料
artifactory ( 开源版本 )
maven
jenkins
jenkins artifactory plugin (在插件管理安装即可)
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 releaseRepo: ‘aliyun‘, snapshotRepo: ‘aliyun‘, server: server
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
}
}
总的来说还是比较好用的,结合jenkins pipeline 可能方便的进行信息的查看,同时jfrog artifactory 的功能也是比较强大的,可以方便我们进行历史构建信息的查询
https://wiki.jenkins.io/display/JENKINS/Artifactory+Plugin
http://www.jfrogchina.com/open-source
jfrog artifactory jenkins pipeline 集成
标签:jenkins mode rtm factory wiki oca maven server 资料
原文地址:http://www.cnblogs.com/rongfengliang/p/7809612.html