我可以使用Putty从Rancher Stack中获取URL。 如何使用Jenkins中的shell命令从Rancher Stack中获取相同的URL
setenv RANCHER_SECRET_KEY xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx setenv RANCHER_ACCESS_KEY xxxxxxxxxxxxxxxxxx setenv RANCHER_URL http://xxxxxxxx.xxxxx.com:8080 cd /local/mnt/workspace/username/xxxxxxx/ make cluster-up make idcluster | tail -1 | cut -d' ' -f1
输出: http : //10.10.120.90 : 23884
我需要相同的URL作为Jenkins的Pre步骤构build的输出。 我能够从Putty手动执行此操作。
[无法评论,因此回复,将更新一旦我有更多的信息]
在Jenkins上运行脚本的RANCHER_SECRET_KEY,RANCHER_ACCESS_KEY环境variables是否可用?