thi*_*ter 5 pull-request bitbucket-server
有没有人使用过 stash builder 插件。它的文档说它在构建环境中添加了一些环境变量,但是如果我回应它们,它们都是空的
echo "${sourceBranch}"
echo "${targetBranch}"
echo "${sourceRepositoryOwner}"
echo "${sourceRepositoryName}"
echo "${pullRequestId}"
echo "${destinationRepositoryOwner}"
echo "${destinationReposotryName}"
echo "${pullRequestTitle}"
echo "${sourceCommitHash}"
Run Code Online (Sandbox Code Playgroud)
这个插件对我没有任何作用。这是我的配置我选择 git 作为 SCM [poll scm is not selected]
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
Run Code Online (Sandbox Code Playgroud)
然后我标记复选框“Stash Pull Requests Builder”,下面是差异字段的值
Cron:H/2 * * * *
Stash Host:stash-eng.abc.com
Stash Credentials:..........
Project:mytool
Repository Name:my_tools_demo
Run Code Online (Sandbox Code Playgroud)
仍然什么都不做。我也没有在日志中看到任何与插件相关的东西。
我在公司使用这个插件,效果很好。
在我的 Stash 环境中,所有项目名称均为大写。
如果你有同类的项目名,可以尝试用大写吗?(在“Stash Pull Requests Builder”部分中)
如果您有一个开放的拉取请求,您可以尝试添加此评论以触发新的 Jenkins 构建吗?
test this please
Run Code Online (Sandbox Code Playgroud)
这是一个神奇的评论,可以触发 Stash 的新 PR 构建。
归档时间: |
|
查看次数: |
3781 次 |
最近记录: |