diff --git a/Jenkinsfile b/Jenkinsfile index d6afbc5..7b49634 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,10 +21,8 @@ pipeline { TARGET_BUILD_CONTAINER = 'spms-back-build-release' TARGET_RUN_CONTAINER = 'spms-run-release' echo ">>> [PROD Mode] SET Release Container" - } else { - error "This branch(${branchName}) can't set container (USE develop or main branch)" } - else if (branchName == 'staging') { + else if (branchName.startsWith('hotfix/') || branchName.startsWith('release/')) { TARGET_BUILD_CONTAINER = 'spms-back-build-staging' TARGET_RUN_CONTAINER = 'spms-run-staging' echo "[STG Mode] SET STAGING Container"