diff --git a/Jenkinsfile b/Jenkinsfile index 9c25827..21f15a0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } + } + } } - } - } + // } + // } } \ No newline at end of file