stash Pull Request Builder Plugin

时光总嘲笑我的痴心妄想 提交于 2019-12-10 15:56:42

问题


Has any one used stash builder plugin.Its documentation says that it adds some environment variables in to the build environment but if i echo them,they all are empty

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

This plugin is doing nothing for me.Here is my configuration I am selecting git as 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

Then i mark the checkbox "Stash Pull Requests Builder" and below is the value for diff fields

Cron:H/2 * * * *
Stash Host:stash-eng.abc.com
Stash Credentials:..........
Project:mytool
Repository Name:my_tools_demo

Still its doing nothing.Nor i ma seeing any thing related to plugin in logs.


回答1:


I'm using this plugin in my company and it's working well.

In my Stash environment, all the project names are in uppercase.

If you have the same kind of project name, can you try to use them in uppercase? (in the Stash Pull Requests Builder section)

If you have one open pull request, can you try to add this comment to trigger a new Jenkins build?

test this please

This is a magic comment to trigger a new PR build from Stash.




回答2:


I have got the same issue with Jenkins 2.7

According to below issue tracking in Github

https://github.com/nemccarthy/stash-pullrequest-builder-plugin/issues/84

it is fixed in one of the branch

https://github.com/eirikwang/stash-pullrequest-builder-plugin/tree/newChange

And will be merged into master soon..



来源:https://stackoverflow.com/questions/34785302/stash-pull-request-builder-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!