JenkinsFile docker configuration

This commit is contained in:
RolandBakunts 2023-01-17 05:56:46 -08:00
parent 3d28f34492
commit cd8b873b79

30
Jenkinsfile vendored
View file

@ -13,19 +13,25 @@ pipeline {
} }
stages { stages {
stage('pull request') { stage('pull request') {
when {
branch 'main'
}
steps { steps {
script { sh "echo 'hello worlsdds'"
if (BRANCH_NAME != 'main' && env.CHANGE_ID){ }
sh "echo 'ndsakmmkdsa'" // steps {
sh "echo 'hfiejrfrei'" // script {
} else if (BRANCH_NAME == 'main') { // if (BRANCH_NAME != 'main' && env.CHANGE_ID){
sh "echo main" // sh "echo 'ndsakmmkdsa'"
} else { // sh "echo 'hfiejrfrei'"
sh "echo $BRANCH_NAME" // } else if (BRANCH_NAME == 'main') {
sh "echo $env.BRANCH_NAME" // sh "echo main"
} // } else {
} // sh "echo $BRANCH_NAME"
} // sh "echo $env.BRANCH_NAME"
// }
// }
// }
} }
} }
// stage('checkstyle') { // stage('checkstyle') {