Perform checkout before committing in pipeline.
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -25,6 +25,7 @@ pipeline {
|
|||||||
branch '**/develop'
|
branch '**/develop'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
sh "git checkout origin/develop"
|
||||||
sh "git clean -dfX"
|
sh "git clean -dfX"
|
||||||
sh "git add mods/**"
|
sh "git add mods/**"
|
||||||
sh "git add config/**"
|
sh "git add config/**"
|
||||||
|
Reference in New Issue
Block a user