Running a Git build inside a ClearCase View in tcsh

自作多情 提交于 2019-12-11 08:35:54

问题


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?


回答1:


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!



来源:https://stackoverflow.com/questions/32021328/running-a-git-build-inside-a-clearcase-view-in-tcsh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!