Skip to content

Commit

Permalink
Publish cumulative docker image (eclipse-archived#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephca authored Oct 2, 2019
1 parent 0a5c74c commit 65af7c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ pipeline {
echo "Publishing docker images for Eclipse Codewind Che Sidecar..."
echo "publish.sh eclipse $TAG"
./scripts/publish.sh eclipse $TAG
if [[ $GIT_BRANCH =~ ^([0-9]+\\.[0-9]+) ]]; then
IFS='.' # set '.' as delimiter
read -ra TOKENS <<< "$GIT_BRANCH"
IFS=' ' # reset delimiter
export TAG_CUMULATIVE=${TOKENS[0]}.${TOKENS[1]}
echo "publish.sh eclipse $TAG_CUMULATIVE"
./scripts/publish.sh eclipse $TAG_CUMULATIVE
fi
else
echo "Skip publishing docker images for $GIT_BRANCH branch"
fi
Expand Down

0 comments on commit 65af7c2

Please sign in to comment.