gpt4 book ai didi

jenkins - jenkins 管道脚本中的重复变更日志

转载 作者:行者123 更新时间:2023-12-03 19:53:38 24 4
gpt4 key购买 nike

我正在研究如何将新的 Jenkins 管道插件与 Jenkinsfile 一起使用在项目的 scm 中(我们使用 GIT)。

作业脚本从 SCM 加载(“来自 SCM 的管道脚本”选项)
并在 Jenkinsfile脚本我做了一个checkout scm .

问题是提交是重复的。在build目录下,有2个changelog.xml具有相同的提交,因此更改 View 可能非常困惑:

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?

关于jenkins - jenkins 管道脚本中的重复变更日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36197131/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com