詹金斯(Jenkins)的“项目路径"单片机 [英] Jenkins "Project Path" SCM

查看:145
本文介绍了詹金斯(Jenkins)的“项目路径"单片机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立一个参数化的版本. 构建参数之一是分支名称,我希望TFS插件从那里获取项目.

I'm trying to set up a parameterized build. One of the build parameters is the branchname, where I want the TFS plugin to get the project from.

是否可以将构建参数传递到TFS SCM插件的项目路径"变量. (如果是,如何?我已经尝试了几种方法,但是似乎没有用)

Is it possible to pass an build parameter to the "project path" variable of the TFS SCM plugin. (If yes, how? I have tried several ways, but it doesn't seem to work)

此变量: TFS项目路径

推荐答案

我认为无法在Jenkins中将变量用于Project路径.项目路径需要在服务器上注册的项目名称.没有定义变量的地方.

I don't think it's possible to use variable for Project path in Jenkins. The Project Path requires the name of the project as it is registered on the server. There is nowhere to define the variable.

项目路径的描述为:

团队项目和要从服务器检索的路径.该项目 路径必须以$/开头,并包含存在于 项目存储库.

The Team Project and path to retrieve from the server. The project path must start with $/, and contain any sub path that exists in the project repository.

检查: https://github.com/jenkinsci/tfs-插件/blob/master/README.md

这篇关于詹金斯(Jenkins)的“项目路径"单片机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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