From ff5f340d8c32e990018dde299dc5dd519c86ee45 Mon Sep 17 00:00:00 2001 From: Musselman Date: Fri, 28 Jun 2024 16:42:07 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Chore:=20Remove=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The project no longer uses Jenkins, nor will it ever again --- Jenkinsfile | 70 ----------------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index d4bfe00..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,70 +0,0 @@ -pipeline { - agent { - label 'podman' - } - tools { - go '1.21.1' - } - environment { - registry = "docker.io/notatio/notatio" - registryCredential = 'docker-hub-credentials' - podmanImage = '' - } - stages { - stage('Clone repository') { - steps { - git branch: 'main', credentialsId: 'codeberg-musselman-builder-jenkins', url: 'https://codeberg.org/Musselman/Notatio.git' - } - } - stage('Retrieve Git tag') { - steps { - script { - def tagOutput = sh(script: 'git describe --abbrev=0 --tags || true', returnStdout: true).trim() - if (tagOutput.isEmpty() || tagOutput.equals("fatal: No names found, cannot describe anything.")) { - TAG = 'latest' // Set a default tag if no tags are found - echo "No tags found, using default tag: ${TAG}" - } else { - TAG = tagOutput - echo "Latest tag found: ${TAG}" - } - } - } - } - stage('Build') { - steps { - echo 'Building..' - sh 'go build' - } - } - stage('Test') { - steps { - echo 'Testing..' - echo 'No Testing to do currently..' - } - } - stage('Building image') { - steps { - script { - sh "podman build -t notatio ." - } - } - } - stage('Push image') { - steps { - script { - withCredentials([usernamePassword(credentialsId: registryCredential, passwordVariable: 'REGISTRY_PASSWORD', usernameVariable: 'REGISTRY_USERNAME')]) { - sh "podman login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD docker.io" - sh "podman push notatio $registry:${TAG}" - sh "podman logout $registry" - } - } - } - } - stage('Cleanup') { - steps { - sh "podman rmi -a -f" - } - } - } -} -