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>'
        ......
    }
}

No comments:

Post a Comment