New branch for production environment with Jenkins with Multibranch pipeline

This commit is contained in:
Dillon Ngo
2023-11-26 19:41:53 +08:00
parent d13746665f
commit a2e294fe3e
Vendored
+2 -2
View File
@@ -22,7 +22,7 @@ pipeline {
git(
url: httpUrl,
credentialsId: 'gitlab-jenkins-localhost',
branch: 'test'
branch: 'vapor/production'
)
}
}
@@ -44,7 +44,7 @@ pipeline {
script{
String gitCommitMessage = getCommitMessage()
println("GIT CommitMessage: " + gitCommitMessage)
sh "vendor/bin/vapor deploy staging --message='${gitCommitMessage}'"
sh "vendor/bin/vapor deploy production --message='${gitCommitMessage}'"
}
}
}