pull-request - stash Pull Request Builder 插件

标签 pull-request bitbucket-server

有没有人使用过 stash builder 插件。它的文档说它在构建环境中添加了一些环境变量,但是如果我回应它们,它们都是空的

echo "${sourceBranch}"
echo "${targetBranch}"
echo "${sourceRepositoryOwner}"
echo "${sourceRepositoryName}"
echo "${pullRequestId}"
echo "${destinationRepositoryOwner}"
echo "${destinationReposotryName}"
echo "${pullRequestTitle}"
echo "${sourceCommitHash}"

这个插件对我没有任何作用。这是我的配置
我选择 git 作为 SCM [未选择轮询 scm]
RepositoryUrl:ssh://git@stash-eng.abc.com:7999/mytool/my_tools_demo.git
Refspec:\+refs/pull-requests/*:refs/remotes/origin/pr/*
Branch Specifier:-origin/pr/${pullRequestId}/from

然后我标记复选框“Stash Pull Requests Builder”
以下是差异字段的值
Cron:H/2 * * * *
Stash Host:stash-eng.abc.com
Stash Credentials:..........
Project:mytool
Repository Name:my_tools_demo

仍然什么都不做。我也没有在日志中看到任何与插件相关的东西。

最佳答案

我在我的公司使用这个插件,它运行良好。

在我的 Stash 环境中,所有项目名称都是大写的。

如果你有相同类型的项目名称,你可以尝试用大写吗? (在 Stash Pull Requests Builder 部分)

如果您有一个开放的拉取请求,您可以尝试添加此评论以触发新的 Jenkins 构建吗?

test this please

这是一个神奇的注释,可以从 Stash 触发新的 PR 构建。

关于pull-request - stash Pull Request Builder 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34785302/

相关文章:

Github pull 请求显示错误的差异

git - 推送在 GitKraken 中失败,错误消息为 "Push Failed cannot read property ' fullName' of undefined”

templates - Github pull request 模板使用 config.yml 检测 YAML front matter 并应用于字段

docker - 如何在分离模式下将Bitbucket服务器作为容器启动?

用于连接到 Stash 存储库的 Java 客户端

git - 我如何设置 Carthage 以使用我自己的框架,这些框架位于私有(private)存储库中,例如 Stash (Bitbucket)?

search - GitHub 搜索 - 如何从搜索结果中排除(逻辑非)公司或用户

git - 在 - git pull - SSL 例程 :SSL3_GET_RECORD 时出现 fatal error

git - 在 Stash 中 check out 一个 Pull Request

git - 如何仅将单个分支从一个 git repo 复制到另一个?