mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
with condition
This commit is contained in:
@@ -42,9 +42,15 @@ pipeline {
|
||||
return;
|
||||
}
|
||||
sh "docker login --username=$dockerUser --password=$dockerPassword"
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
|
||||
sh "docker manifest inspect scrolltech/bridge:$TAGNAME > /dev/null"
|
||||
}
|
||||
def condition = sh(returnStdout: true, script: 'echo $?')
|
||||
echo condition
|
||||
// skip the building part if the tag already existed
|
||||
if condition == 0 {
|
||||
return;
|
||||
}
|
||||
// sh "docker login --username=${dockerUser} --password=${dockerPassword}"
|
||||
// sh "make -C bridge docker"
|
||||
// sh "make -C coordinator docker"
|
||||
|
||||
Reference in New Issue
Block a user