Running a Git build inside a ClearCase View in tcsh

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.

  • Best known method to replace ClearCase dynamic views in GIT
  • Searching ClearCase for a checkin with a specific comment
  • Clearcase is so slow on checkin: how quickly checkin a large set of modified files?
  • Does another version control system have a ClearCase-like filesystem access to file versions?
  • Version control with MVFS
  • git - handling many similar-yet-slightly-different applications?
  • To automate this process, I would like to use jenkins.

    How is this possible?

  • Git - Cleanup squashed branches?
  • git svn ignore paths use ignore file
  • How to make sure what I commit does not contain whitespace error
  • How to verify the current git branch in a Windows BAT file
  • ls-remote reports phantom tags ending with “^{}”
  • Is there an upper limit to the number of commits a git repository can handle?
  • One Solution collect form web for “Running a Git build inside a ClearCase View in tcsh”

    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!

    Git Baby is a git and github fan, let's start git clone.