example-web/Jenkinsfile
2022-11-09 11:09:22 +04:00

74 lines
1.9 KiB
Groovy

// 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 .'
// }
// }
// }
// }
pipeline {
/*agent any
stages {
stage('Cloning Git') {
steps {
git([url: 'https://git.athene.tech/romanov73/example-web.git', branch: 'master'])
}
}
stage('Build') {
steps{
script {
docker.image('romanov73/is:ng-tracker-container-11').inside {
sh 'bash ./gradlew test'
}
}
}*/
agent { docker { image 'romanov73/is:ng-tracker-container-11' } }
stages {
stage('Cloning Git') {
steps {
git([url: 'https://git.athene.tech/romanov73/example-web.git', branch: 'master'])
}
}
stage('log version info') {
steps {
sh 'bash ./gradlew test'
}
}
}
//}
// }
// }
}