Compare commits

..

2 Commits

Author SHA1 Message Date
vincent
af942bef61 fix 2023-02-28 23:05:01 +08:00
vincent
2ed812322f with condition 2023-02-28 22:56:47 +08:00

View File

@@ -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"