diff --git a/Dockerfile b/Dockerfile index 25a638a..f5dbac3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,4 @@ RUN add-apt-repository \ stable" RUN apt-get update -RUN apt-get -y install docker-ce +RUN apt-get -y install docker-ce kubernetes diff --git a/Jenkinsfile b/Jenkinsfile index dc6cbf0..9fe5283 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,16 @@ node { - + DISPLAY_BRANCH = sh ( script: "echo $branch|cut -d '/' -f 3", returnStdout:true).trim() stage("Git Checkout"){ - - git credentialsId: '3af5981e-eb43-4b27-a774-e56d46eba935', url: 'https://github.com/WoodProgrammer/dockerJenkinsBlog' + + + currentBuild.displayName = "#${BUILD_NUMBER} - ${DISPLAY_BRANCH}" } stage("Build"){ - sh "docker build -t emirozbir/jdind:latest ." + sh "echo New Branch" + sh "echo New Branch" + sh "echo New Branch" + sh "echo New Branch" + } } diff --git a/newfile b/newfile index bf7e899..b81f197 100644 --- a/newfile +++ b/newfile @@ -1 +1,13 @@ asdasd +helobro! + +asdasd +helobro! +asdasd +helobro! +asdasd +helobro! +asdasd +helobro! +asdasd +helobro!