fix jenkinsfile

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

28
Jenkinsfile vendored
View File

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