小编Mak*_*eev的帖子

Jenkins 管道:仅在有新提交时如何构建新工件

stage('Checkout repo'){
    git branch: 'mybranch', 
    credentialsId: '6b83e39e-1c8c-44c2-9165-b1f5a857f6cb', 
    url: 'git@gitlab.com:myproject.git'}

stage('run tests'){
    sh 'mvn test'
}

stage('build artefact'){
    sh 'mvn clean package'
}
Run Code Online (Sandbox Code Playgroud)

仅当有新提交时如何运行测试并制作新工件?没有触发器

git maven jenkins

2
推荐指数
1
解决办法
4714
查看次数

标签 统计

git ×1

jenkins ×1

maven ×1