62 lines
1.4 KiB
Groovy
62 lines
1.4 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 {
|
|
environment {
|
|
imagename = "romanov73/is:ng-tracker-container-11"
|
|
registryCredential = ''
|
|
dockerImage = ''
|
|
}
|
|
agent any
|
|
stages {
|
|
stage('Cloning Git') {
|
|
steps {
|
|
git([url: 'https://git.athene.tech/romanov73/example-web.git', branch: 'master'])
|
|
}
|
|
}
|
|
stage('Building image') {
|
|
steps{
|
|
script {
|
|
app = docker.build("romanov73/is:ng-tracker-container-11")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |