gpt4 book ai didi

git - Jenkins Pipeline 忽略 git checkout 的 exludeMessage 选项

转载 作者:太空狗 更新时间:2023-10-29 14:17:43 30 4
gpt4 key购买 nike

我的 jenkins 管道在第一阶段检查 GIT 存储库,因此我正在使用

checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'MessageExclusion', excludedMessage: '.*\\[Gradle-Release-Plugin\\].*'], [$class: 'LocalBranch', localBranch: 'master']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '48b64fd8-f0c8-4bcd-91e8-58f763e9be0c', url: 'https://bitbucket.org/private/private.git']]])

为了防止自动版本更改提交的构建,使用了 excludeMessage 选项。尽管如此,如果使用这种模式进行提交,Jenkins 就会开始构建。正则表达式模式是正确的,我仔细检查了它。有人面临同样的问题吗?

最佳答案

这确实是一个尚未解决的错误。

参见 issue JENKINS-36195 "Pipeline polling ignores special polling rules" .
在“JENKINS-35988 Organization job "Branch Indexing" ignores excluded regions defined in jenkinsfile”中可以看到同样的问题

目前的评估是:

Since the git plugin doesn't read the contents of Jenkinsfile when performing polling, I'm not sure how it would honor the polling settings inside the Jenkinsfile in the repository.
It seems like it would be even more challenging in a repository with more than one branch, since the polling settings might differ between branches within the same repository.

关于git - Jenkins Pipeline 忽略 git checkout 的 exludeMessage 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38103758/

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