gpt4 book ai didi

Github pull 请求插件

转载 作者:太空狗 更新时间:2023-10-29 14:07:42 25 4
gpt4 key购买 nike

我正在尝试设置 pull 请求插件。我已经按照文档中的建议配置了它,但是如果我将要构建的分支指定为 ${sha1} 那么该变量似乎没有被解析。所以在我的日志中:

Building in workspace /Users/sat/.jenkins/jobs/JenkinsTest/workspace
> /usr/local/bin/git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
> /usr/local/bin/git config remote.origin.url git@githubenterprise.parc.com:stucker/tester.git
Fetching upstream changes from git@githubenterprise.parc.com:stucker/tester.git
> /usr/local/bin/git --version
> /usr/local/bin/git fetch --tags --progress git@githubenterprise.parc.com:stucker/tester.git +refs/pull/*:refs/remotes/origin/pr/*
> /usr/local/bin/git rev-parse origin/${sha1}^{commit}
> /usr/local/bin/git rev-parse ${sha1}^{commit}

但我不知道为什么那行不通。这是由标准网络 Hook 触发的推送

最佳答案

我发现您不能在同一作业上运行常规构建 Hook 和 pull 请求 - 我必须有不同的作业 - 一个用于执行常规构建,另一个用于执行 pull 请求构建。一切正常。

关于Github pull 请求插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24086849/

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