Issue/question with Pipeline and SCM

20 views
Skip to first unread message

Samuel Lopez

unread,
May 9, 2017, 1:57:55 PM5/9/17
to Jenkins Developers

Hello Folks

I have this simple Pipeline script

pipeline {
    agent none

    stages {
        stage ('Check out the Code') {
            agent { label 'Axis' }
            steps {  
                echo 'Checking out Source from Mercurial'
                checkout changelog: true, scm: [$class: 'MercurialSCM', browser: [$class: 'HgWeb', url: MercUrl], clean: true, credentialsId: '', installation: '(Default)', revision: myRev, source: MercRepo]
            }
        }
    }
}

I expected it to do the checkout on the agent  but it does not; it is doing the checkout on  the Master.

What I am missing, or am I trying to do something is not possible.

Thank you very much for your help.

Sam

Samuel Lopez

unread,
May 9, 2017, 1:57:56 PM5/9/17
to Jenkins Developers
Reply all
Reply to author
Forward
0 new messages