From a42baf5600d066f4be5da9b906394fe32aae3398 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Fri, 27 Jan 2023 18:24:32 +0000 Subject: [PATCH] Delete Jenkinsfile --- Jenkinsfile | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index dce948a4..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,33 +0,0 @@ -pipeline { - agent any - stages { - stage('Build') { - steps { - sh 'chmod 755 gradlew' - sh './gradlew build' - } - } - stage('Docker Build') { - steps { - script { - def appVersion = sh(returnStdout: true, script: './gradlew printVersion -q').trim() - def image = "frooodle/s-pdf:$appVersion" - sh "docker build -t $image ." - } - } - } - stage('Docker Push') { - steps { - script { - def appVersion = sh(returnStdout: true, script: './gradlew printVersion -q').trim() - def image = "frooodle/s-pdf:$appVersion" - withCredentials([string(credentialsId: 'docker_hub_access_token', variable: 'DOCKER_HUB_ACCESS_TOKEN')]) { - sh "docker login --username frooodle --password $DOCKER_HUB_ACCESS_TOKEN" - sh "docker push $image" - } - } - } - - } - } -} \ No newline at end of file