https://pantsbuild.org/ logo
#general
Title
# general
a

adorable-glass-89507

04/26/2016, 8:58 PM
we also do something like
Copy code
def get_git_hash() {
    sh "git rev-parse HEAD > githash"
    readFile("githash").replace("\n", "")
}

def get_git_branch() {
    sh "echo ${env.JOB_NAME} | cut -d/ -f 2 > gitbranch"
    readFile("gitbranch").replace("\n", "")
}