stash Pull Request Builder 插件 [英] stash Pull Request Builder Plugin

查看:96
本文介绍了stash Pull Request Builder 插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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}"

这个插件对我没有任何作用.这是我的配置我选择 git 作为 SCM [poll scm is not selected]

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

然后我标记复选框Stash Pull Requests Builder"以下是差异字段的值

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.

推荐答案

我在 Jenkins 2.7 中遇到了同样的问题

I have got the same issue with Jenkins 2.7

根据以下 Github 中的问题跟踪

According to below issue tracking in Github

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

固定在其中一个分支

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

并且很快就会合并到master..

And will be merged into master soon..

这篇关于stash Pull Request Builder 插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆