fix jenkinsfile

This commit is contained in:
Anton Romanov 2022-11-09 11:08:15 +04:00
parent cc4a61b721
commit a9ce722e7f

24
Jenkinsfile vendored
View File

@ -39,26 +39,36 @@
// } // }
pipeline { pipeline {
environment { /*agent any
imagename = "romanov73/is:ng-tracker-container-11"
registryCredential = ''
dockerImage = ''
}
agent any
stages { stages {
stage('Cloning Git') { stage('Cloning Git') {
steps { steps {
git([url: 'https://git.athene.tech/romanov73/example-web.git', branch: 'master']) git([url: 'https://git.athene.tech/romanov73/example-web.git', branch: 'master'])
} }
} }
stage('Building image') { stage('Build') {
steps{ steps{
script { script {
docker.image('romanov73/is:ng-tracker-container-11').inside { docker.image('romanov73/is:ng-tracker-container-11').inside {
sh 'bash ./gradlew test' 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'
} }
} }
} }
}
// }
// }
} }