我正在研究如何Jenkinsfile
在项目的scm中使用新的Jenkins Pipeline插件(我们使用GIT)。
作业脚本是从SCM加载的(“来自SCM的管道脚本”选项),并且在Jenkinsfile
脚本中执行checkout scm
。
问题是提交是重复的。在build目录中,有2个changelog.xml
具有相同的提交,因此change视图可能非常混乱:
Summary
1. FNC71010 - Ajout des traductions au launcher (details)
Commit 5a676ee1448b72f1b99227e8832b01081aa1bc6d by thierry
The file was modified Deploy_serveur/resources/config/trad.properties
Summary
1.FNC71010 - Ajout des traductions au launcher (details)
Commit 5a676ee1448b72f1b99227e8832b01081aa1bc6d by thierry
The file was modified Deploy_serveur/resources/config/trad.properties
在多分支管道中也会发生此问题。
这里是Jenkinsfile
内容:
#!groovy
node {
stage 'initialisation'
def repertoire = "directory"
def pipeline
dir(repertoire) {
checkout scm
pipeline = load 'pipeline.groovy'
}
pipeline.initialisation(repertoire)
pipeline.build()
pipeline.runTestsRapides()
pipeline.copieResultats()
}
难道我做错了什么 ?
Jenkins版本:1.642.2(docker)管道版本:1.15 Git插件:2.4.3
您是否尝试将Git插件升级到2.4.4?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句