首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >jenkins管道脚本中的重复changelogs

jenkins管道脚本中的重复changelogs
EN

Stack Overflow用户
提问于 2016-03-24 09:44:55
回答 1查看 2.9K关注 0票数 4

我正在研究如何在项目的单片机中使用新的Jenkins管道插件和Jenkinsfile (我们使用GIT)。

作业脚本从SCM (‘管道脚本从SCM’选项)加载,在Jenkinsfile脚本中,我执行一个checkout scm

问题是提交是重复的。在build目录中,有两个具有相同提交的changelog.xml,因此更改视图可能非常混乱:

代码语言:javascript
运行
复制
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内容:

代码语言:javascript
运行
复制
#!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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-25 14:55:30

你试过将Git插件升级到2.4.4吗?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36197131

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档