9 Star 35 Fork 31

weixiaojin/alinesno-cloud-service-community

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Jenkinsfile 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
Easton 提交于 2020-02-02 09:44 . 初始化版本。
node {
def server
def buildInfo
def rtMaven
stage ('Clone') {
git url: 'https://github.com/JFrog/project-examples.git'
}
stage ('Artifactory configuration') {
// Obtain an Artifactory server instance, defined in Jenkins --> Manage:
server = Artifactory.server SERVER_ID
rtMaven = Artifactory.newMavenBuild()
rtMaven.tool = MAVEN_TOOL // Tool name from Jenkins configuration
rtMaven.deployer releaseRepo: 'libs-release-local', snapshotRepo: 'libs-snapshot-local', server: server
rtMaven.resolver releaseRepo: 'libs-release', snapshotRepo: 'libs-snapshot', server: server
rtMaven.deployer.deployArtifacts = false // Disable artifacts deployment during Maven run
buildInfo = Artifactory.newBuildInfo()
}
stage ('Test') {
rtMaven.run pom: 'maven-example/pom.xml', goals: 'clean test'
}
stage ('Install') {
rtMaven.run pom: 'maven-example/pom.xml', goals: 'install', buildInfo: buildInfo
}
stage ('Deploy') {
rtMaven.deployer.deployArtifacts buildInfo
}
stage ('Publish build info') {
server.publishBuildInfo buildInfo
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/WENDY-W/alinesno-cloud-service-community.git
git@gitee.com:WENDY-W/alinesno-cloud-service-community.git
WENDY-W
alinesno-cloud-service-community
alinesno-cloud-service-community
2.1.0-Alpha

搜索帮助