Browse Source

Remove Jenkinsfile

Florian Hoss 2 years ago
parent
commit
0010a7eaa0
1 changed files with 0 additions and 32 deletions
  1. 0 32
      Jenkinsfile

+ 0 - 32
Jenkinsfile

@@ -1,32 +0,0 @@
-pipeline {
-    environment {
-        VERSION = "v2.0.4"
-        PROJECT_NAME = JOB_NAME.split('/')
-        IMAGE_NAME = "unjxde/${PROJECT_NAME[0]}"
-        IMAGE = ''
-    }
-    agent any
-    stages {
-        stage('Building') {
-            steps {
-                script {
-                    IMAGE = docker.build IMAGE_NAME
-                }
-            }
-        }
-        stage('Deploying') {
-            steps {
-                script {
-                    docker.withRegistry( 'https://registry.hub.docker.com', 'dockerHub' ) {
-                        if (BRANCH_NAME == "main") {
-                            IMAGE.push("${VERSION}")
-                            IMAGE.push("latest")
-                        } else {
-                            IMAGE.push("${BRANCH_NAME}")
-                        }
-                    }
-                }
-            }
-        }
-    }
-}