Merge remote-tracking branch 'origin/master' into production
This commit is contained in:
commit
3470bf51a5
1 changed files with 14 additions and 1 deletions
|
|
@ -56,7 +56,20 @@ def String checkouttoreporoot(String gitURL) {
|
|||
submoduleCfg: [],
|
||||
])
|
||||
} else {
|
||||
echo "Found ${gitURL} checked out at ${reporootsubfolder}"
|
||||
echo "Found ${gitURL} checked out at ${reporootsubfolder} ... checking status"
|
||||
dir(reporootsubfolder) {
|
||||
if (isUnix()) {
|
||||
sh """
|
||||
git status
|
||||
if [ \$? -ne 0 ]; then exit 1; fi
|
||||
"""
|
||||
} else {
|
||||
bat """
|
||||
git status
|
||||
if errorlevel 1 EXIT /b 1
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return reporootsubfolder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue