在Jenkins中使用不带引号的构建参数 [英] Using build parameters in Jenkins without quotes

查看:83
本文介绍了在Jenkins中使用不带引号的构建参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是詹金斯的新手.使用构建参数,例如

I'm new to Jenkins. Using build parameters such as

test=my string

然后使用

${test}  gives 'my string'

结果被引用.

我怎么没有报价?

推荐答案

我需要在shell命令中的变量周围加上引号.

I needed to put quotes arround the variable in the shell command.

"${test}"

这篇关于在Jenkins中使用不带引号的构建参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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