English 中文(简体)
我如何能够在jenkins管道(以前称为工作流程)中开始支气弹。
原标题:How can I start a bash login shell in jenkins pipeline (formerly known as workflow)?

我刚刚开始将我的Jenkins职位转换为新的Jenkins管道(工作流程)工具,我很麻烦地看到了<条码>sh的指挥系统,以使用一种ash木。

我受审

sh    
#!/bin/bash -l
echo $0
   

但是,<代码>echo 0的指挥始终以互动的手法实施,而不是按仪表标。

最佳回答

! 谢谢你!

因此,略微说明正在做些什么。 I used sh with , which indicated a multi line script. HOWEVER, 由此形成的向jenkins node倾销的手稿将成为一条线,而后是一条线。 因此,我能够这样做。

sh    #!/bin/bash -l
echo $0
# more stuff I needed to do,
# like use rvm, which doesn t work with shell, it needs bash.
   
问题回答

暂无回答




相关问题
Reuse agent without needing to declare it multiple times

I m trying to define a agent in a jenkinsfile once, but use it in multiple stages without needing to fully declare it for each stage. As can be seen, I am using a stage to figure out which docker ...

在Jenkins Templating引擎实施版本

我们正计划利用JTE(Jenkins Templating的发动机)在我们org建造管道。 有许多管道将使用这一模板。 可能的话,模板的任何改动都会中断......

Hudson gitorious plugin?

Has anyone integrated a local copy of gitorious with Hudson? Specifically, linking the sha1 on Hudson web page back to the gitorious web page.

Problem with Hudson-JIRA-Perforce integration

I m looking at using the Hudson JIRA plugin to post a JIRA comment on each build. The SCM I m using is perforce which is already linked to the JIRA tasks using perforce jobs. I can see that the JIRA ...

Two Hudson Masters on the same Windows Server

I want to setup two Hudson Masters on the same Hardware. This will make administering Hudson easier, since both servers are used by two different (and independent) teams. So far I tried to install ...

Using Hudson and build steps with multiple git repositories

I m trying out Hudson to replace our current Buildbot setup. I installed the git plugin. Our current setup is like: ssh://server:/repo/test_framework.git ssh://server:/repo/project_a.git Now, to ...

热门标签