在tcsh中的ClearCase视图内运行Git构建 [英] Running a Git build inside a ClearCase View in tcsh

查看:170
本文介绍了在tcsh中的ClearCase视图内运行Git构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个存储在git中的项目,必须在clearcase之外构建,然后在Clearcase视图中执行。由于对外部脚本的限制,所有构建和执行必须在 tcsh 内完成。



Clearcase视图需要 tcsh 才能成功执行这些命令。



要使这个过程自动化,我想使用jenkins。 >>

这怎么可能?

解决方案

将它记录在某处。



要在jenkins中的 Execute shell 构建步骤中执行不同的shell,我使用以下脚本:

 #!/ usr / bin / tcsh -xF 
source env.csh
make
echo DONE

注意:每个脚本的结尾以确保最后的命令被执行。我通常只是 echo DONE 以确保每一步都被执行。



运行Clearcase视图内的命令在`tcsh``中,我使用以下脚本:

 #!/ usr / bin / tcsh -xF 
setenv SHELL / bin / tcsh
cleartool setview -login -execcommand 1; command 2; command 3view_tag
echo DONE

希望这有助于!


I have a project stored in git that must be built outside of clearcase and then executed inside of a Clearcase view. All of the builds and execution must be done inside of tcsh due to restrictions on external scripts.

The Clearcase view requires tcsh to successfully execute the commands.

To automate this process, I would like to use jenkins.

How is this possible?

解决方案

I figured this out and wanted to record it somewhere.

To execute a different shell inside of the Execute shell build step in jenkins, I use the following script:

#!/usr/bin/tcsh -xF
source env.csh
make
echo DONE

NOTE: a newline is required at the end of each script to make sure that the last command is executed. I usually just echo DONE to make sure that every step is executed.

To run commands inside of the Clearcase view in `tcsh``, I use the following script:

#!/usr/bin/tcsh -xF
setenv SHELL /bin/tcsh
cleartool setview -login -exec "command 1; command 2; command 3" view_tag
echo DONE

Hope this helps!

这篇关于在tcsh中的ClearCase视图内运行Git构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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