Compare commits

...

13 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
vincent
1134eee175 finish 2023-02-28 22:45:04 +08:00
vincent
e4699d2a51 fix and trty 2023-02-28 22:32:57 +08:00
vincent
6ce5b6dad0 fix and fix 2023-02-28 22:23:26 +08:00
vincent
7732b0c3f8 test 1.4 2023-02-28 22:14:34 +08:00
vincent
c9c849a56e try and try 2023-02-28 22:03:26 +08:00
vincent
257bc88a87 make variable 2023-02-28 21:45:16 +08:00
vincent
04552240e3 try to fix 2023-02-28 21:35:07 +08:00
vincent
2aff8a1ad1 test 2023-02-28 21:24:51 +08:00
vincent
f75f4afb60 fix 2023-02-28 21:23:25 +08:00
vincent
f979964d04 fix 2023-02-28 21:11:50 +08:00
vincent
3507c419b4 fix 2023-02-28 21:00:19 +08:00

View File

@@ -1,6 +1,6 @@
imagePrefix = 'scrolltech'
credentialDocker = 'dockerhub'
TAGNAME = ''
pipeline {
agent any
options {
@@ -41,11 +41,16 @@ pipeline {
if (TAGNAME == ""){
return;
}
sh'''
docker login --username=${dockerUser} --password=${dockerPassword}"
docker manifest inspect scrolltech/bridge:${TAGNAME} > /dev/null"
echo $?
'''
sh "docker login --username=$dockerUser --password=$dockerPassword"
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"