Refactor release-mcp pipelines

  * add possibility to pass source tag for triggerDockerMirrorJob job

Change-Id: I3ad16b1ca3732f279223e18c8c15744279c80fb0
diff --git a/release-mcp-version.groovy b/release-mcp-version.groovy
index 8af3fbe..7c30f30 100644
--- a/release-mcp-version.groovy
+++ b/release-mcp-version.groovy
@@ -39,12 +39,13 @@
   ]
 }
 
-def triggerDockerMirrorJob(dockerCredentials, dockerRegistryUrl, targetTag, imageList) {
+def triggerDockerMirrorJob(dockerCredentials, dockerRegistryUrl, targetTag, imageList, sourceImageTag) {
   build job: "docker-images-mirror", parameters: [
     [$class: 'StringParameterValue', name: 'TARGET_REGISTRY_CREDENTIALS_ID', value: dockerCredentials],
     [$class: 'StringParameterValue', name: 'REGISTRY_URL', value: dockerRegistryUrl],
     [$class: 'StringParameterValue', name: 'IMAGE_TAG', value: targetTag],
-    [$class: 'StringParameterValue', name: 'IMAGE_LIST', value: imageList]
+    [$class: 'StringParameterValue', name: 'IMAGE_LIST', value: imageList],
+    [$class: 'StringParameterValue', name: 'SOURCE_IMAGE_TAG', value: sourceImageTag]
   ]
 }
 
@@ -81,7 +82,7 @@
                 if(RELEASE_DOCKER.toBoolean())
                 {
                     common.infoMsg("Promoting Docker images")
-                    triggerDockerMirrorJob(DOCKER_CREDENTIALS, DOCKER_URL, TARGET_REVISION, DOCKER_IMAGES)
+                    triggerDockerMirrorJob(DOCKER_CREDENTIALS, DOCKER_URL, TARGET_REVISION, DOCKER_IMAGES, SOURCE_REVISION)
                 }
 
                 if(RELEASE_GIT.toBoolean())