Fix for test/frontend and equinix-private-infra function
PRODX-30342
Change-Id: I57daa5c01882f4cd2ce49f2e6047e8f7814c260b
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index 2a49dd2..d68b591 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -1431,7 +1431,7 @@
def getImageTag(version, isChanged, imageName) {
def common = new com.mirantis.mk.Common()
def latestTag = env.GERRIT_BRANCH ? env.GERRIT_BRANCH : env.GERRIT_REFSPEC ? env.GERRIT_REFSPEC : 'master'
- if (!(env.GERRIT_EVENT_TYPE == 'ref-updated') && isChanged) {
+ if (!(env.GERRIT_EVENT_TYPE in ['change-merged', 'ref-updated']) && isChanged) {
latestTag = version
} else if (latestTag != 'master') {
latestTag = latestTag.replaceAll('/', '_')