我正在研究如何在项目的单片机中使用新的Jenkins管道插件和Jenkinsfile
(我们使用GIT)。
作业脚本从SCM (‘管道脚本从SCM’选项)加载,在Jenkinsfile
脚本中,我执行一个checkout scm
。
问题是提交是重复的。在build目录中,有两个具有相同提交的changelog.xml
,因此更改视图可能非常混乱:
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 (码头)管道版本: 1.15 Git插件: 2.4.3
发布于 2016-03-25 14:55:30
你试过将Git插件升级到2.4.4吗?
https://stackoverflow.com/questions/36197131
复制相似问题