These are chat archives for jenkinsci/jenkins

17th
Feb 2018
Nir Tal
@nirtal85
Feb 17 00:00
How to git pull from master using the jenkinspipline syntax?
Rushikesh Jawali
@hrushie
Feb 17 00:05
Can you elaborate your question
Nir Tal
@nirtal85
Feb 17 20:17
``` pipeline {
agent {
    label {
        label ""
        customWorkspace "C:/Users/User/eclipse-workspace/AutomationExample"
    }
}
stages {
stage('Checkout') {
steps {
git(
url: 'https://github.com/nirtal85/AutomationExample.git',
branch: 'master'
)
bat '''git pull'''
}
}
```
what is the alternative for bat '''git pull''' --> is there a built in command to pull from the master branch ?