From 64417eb7d9c3d8ad597a6ace85c5102e86a170e8 Mon Sep 17 00:00:00 2001 From: Alex Earl Date: Mon, 13 Apr 2020 10:08:49 -0700 Subject: [PATCH] Add tag build and publish for windows --- Jenkinsfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 687cf6ad5..344571677 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,8 +25,6 @@ pipeline { } steps { script { - powershell '& ./make.ps1 build' - powershell '& ./make.ps1 test' def branchName = "${env.BRANCH_NAME}" @@ -38,6 +36,18 @@ pipeline { } } + if(env.TAG_NAME != null) { + def tagItems = env.TAG_NAME.split('-') + if(tagItems.length == 2) { + def remotingVersion = tagItems[0] + def buildNumber = tagItems[1] + // we need to build and publish the tag version + infra.withDockerCredentials { + powershell "& ./make.ps1 -PushVersions -RemotingVersion $remotingVersion -BuildNumber $buildNumber publish" + } + } + } + // cleanup any docker images powershell '& docker system prune --force --all' }