Jenkins World

Friday, 17 July 2020

In Jenkins, how to checkout a project into a specific directory (using GIT)

node{
    sh"""
    mkdir('foo')
    """
    dir ('foo') {
        git branch: "<ref spec>", changelog: false, poll: false, url: '<clone url>'
        ......
    }
}

from : https://stackoverflow.com/questions/9767919/in-jenkins-how-to-checkout-a-project-into-a-specific-directory-using-git
Posted by Ryoko at 08:29 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, 16 July 2020

passing variable to bash script in a jenkins pipeline job

def UNIQUE = sh(returnStdout: true, script: 'uuidgen').trim()

from : https://stackoverflow.com/questions/40323490/passing-variable-to-bash-script-in-a-jenkins-pipeline-job
Posted by Ryoko at 20:45 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

About Me

Ryoko
View my complete profile

Blog Archive

  • ▼  2020 (15)
    • ▼  July (2)
      • In Jenkins, how to checkout a project into a speci...
      • passing variable to bash script in a jenkins pipel...
    • ►  June (9)
    • ►  May (3)
    • ►  March (1)
Awesome Inc. theme. Powered by Blogger.