example-web/Jenkinsfile

74 lines
1.9 KiB
Plaintext
Raw Normal View History

2022-11-09 10:08:13 +04:00
// node {
// def app
//
// stage('Clone repository') {
// checkout scm
// }
//
// stage('Build image') {
// app = docker.build("romanov73/is:ng-tracker-container-11")
// }
//
// stage('Test image') {
// sh ./gradlew bootRun -Dng-tracker.check-run=true
// app.inside {
// sh 'echo "Tests passed"'
// }
// }
// }
//
// pipeline {
// agent none stages {
// stage('Maven Install') {
// agent {
// docker {
// image 'romanov73/is:ng-tracker-container-11'
// }
// }
// steps {
// sh 'sh ./gradlew bootRun -Dng-tracker.check-run=true'
// }
// }
// stage('Docker Build') {
// agent any
// steps {
// sh 'docker build -t shanem/spring-petclinic:latest .'
// }
// }
// }
// }
2022-11-08 12:58:35 +04:00
2022-11-09 10:08:13 +04:00
pipeline {
2022-11-09 11:08:15 +04:00
/*agent any
2022-11-09 10:08:13 +04:00
stages {
stage('Cloning Git') {
steps {
git([url: 'https://git.athene.tech/romanov73/example-web.git', branch: 'master'])
}
}
2022-11-09 11:08:15 +04:00
stage('Build') {
2022-11-09 10:08:13 +04:00
steps{
script {
2022-11-09 10:43:53 +04:00
docker.image('romanov73/is:ng-tracker-container-11').inside {
2022-11-09 10:51:02 +04:00
sh 'bash ./gradlew test'
2022-11-09 10:43:53 +04:00
}
2022-11-09 10:08:13 +04:00
}
2022-11-09 11:08:15 +04:00
}*/
agent { docker { image 'romanov73/is:ng-tracker-container-11' } }
stages {
2022-11-09 11:09:22 +04:00
stage('Cloning Git') {
steps {
git([url: 'https://git.athene.tech/romanov73/example-web.git', branch: 'master'])
2022-11-09 11:08:15 +04:00
}
2022-11-09 11:09:22 +04:00
}
2022-11-09 11:08:15 +04:00
stage('log version info') {
steps {
sh 'bash ./gradlew test'
}
}
}
2022-11-09 11:09:22 +04:00
//}
2022-11-09 11:08:15 +04:00
// }
// }
2022-11-08 13:01:33 +04:00
}