jenkins管道脚本中的重复变更日志 [英] Duplicate changelogs in jenkins pipeline script
问题描述
我正在研究如何将新的Jenkins Pipeline插件与项目scm中的Jenkinsfile
一起使用(我们使用GIT).
I am working on how to use the new Jenkins Pipeline Plugin with the Jenkinsfile
in the scm of the project (we use GIT).
作业脚本是从SCM加载的(来自SCM的管道脚本"选项)
然后在Jenkinsfile
脚本中执行checkout scm
.
The job script is loaded from the SCM ('Pipeline script from SCM' option)
and in the Jenkinsfile
script I do a checkout scm
.
问题在于提交是重复的.在build目录中,有2个changelog.xml
具有相同的提交,因此更改视图可能非常混乱:
The problem is that the commits are duplicated. In the build directory, there is 2 changelog.xml
with the same commits and so the changes view can be very messy :
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
问题也出现在多分支管道中.
The problem occurs also with in the multibranch pipeline.
这是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
Jenkins version : 1.642.2 (docker) Pipeline version : 1.15 Git plugin : 2.4.3
推荐答案
您是否尝试将Git插件升级到2.4.4?
Did you try upgrading the Git plugin to 2.4.4?
这篇关于jenkins管道脚本中的重复变更日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!