From a9ce722e7fc0e3ee4295a910e2e572d489611cc0 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Wed, 9 Nov 2022 11:08:15 +0400 Subject: [PATCH] fix jenkinsfile --- Jenkinsfile | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) 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