fix jenkinsfile
This commit is contained in:
parent
cc4a61b721
commit
a9ce722e7f
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
// }
|
||||
}
|
Loading…
Reference in New Issue
Block a user