Deploy only in main branch
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -95,6 +95,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy frontend & backend') {
|
stage('Deploy frontend & backend') {
|
||||||
|
when {
|
||||||
|
branch 'main'
|
||||||
|
}
|
||||||
|
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
|||||||
Reference in New Issue
Block a user