Fix release s3 sync for md5 files
Change-Id: I019d14c86955a8eaf98ced74c061e7dcab5c52a8
diff --git a/release-mcp-version.groovy b/release-mcp-version.groovy
index c435383..665a170 100644
--- a/release-mcp-version.groovy
+++ b/release-mcp-version.groovy
@@ -21,7 +21,7 @@
* RELEASE_VCP_IMAGES - boolean
* EMAIL_NOTIFY
* NOTIFY_RECIPIENTS
- *
+ *
*/
common = new com.mirantis.mk.Common()
@@ -70,7 +70,7 @@
def triggerGitTagJob(gitRepoList, gitCredentials, tag, sourceTag) {
// There is no `nightly` and `testing` build-IDs` in release process
// for git repos
- if ( sourceTag in ['nightly', 'testing'] ) sourceTag = 'master'
+ if (sourceTag in ['nightly', 'testing']) sourceTag = 'master'
build job: "tag-git-repos-all", parameters: [
[$class: 'TextParameterValue', name: 'GIT_REPO_LIST', value: gitRepoList],
[$class: 'StringParameterValue', name: 'GIT_CREDENTIALS', value: gitCredentials],
@@ -98,11 +98,13 @@
continue
}
common.infoMsg("Replacing SUBS_SOURCE_VCP_IMAGE_TAG => ${targetTag}")
- TargetVcpImageList += image.replace('SUBS_SOURCE_VCP_IMAGE_TAG', targetTag) + '\n'
+ TargetVcpImageList += image.replace('SUBS_SOURCE_VCP_IMAGE_TAG', targetTag) + '\n' +
+ image.replace('SUBS_SOURCE_VCP_IMAGE_TAG', targetTag).trim() + '.md5' + '\n'
+
}
build job: "upload_images_to_s3", parameters: [
- [$class: 'TextParameterValue', name: 'FILENAMES',
- value: TargetVcpImageList + TargetVcpImageList.collect({it + '.md5'})]
+ [$class: 'TextParameterValue', name: 'FILENAMES',
+ value : TargetVcpImageList]
]
}