From 564528bedfde54363eb662ad4da28d3585bcf740 Mon Sep 17 00:00:00 2001 From: Chris Hoban Date: Mon, 22 Jul 2019 10:13:17 -0700 Subject: [PATCH] Removing sample app jenkinsfiles --- jenkins/sample-app-jenkinsfile | 42 ------------------- .../jenkins/sample-app-jenkinsfile | 42 ------------------- 2 files changed, 84 deletions(-) delete mode 100644 jenkins/sample-app-jenkinsfile delete mode 100644 jrcc-access-spring-boot-sample-app/jenkins/sample-app-jenkinsfile diff --git a/jenkins/sample-app-jenkinsfile b/jenkins/sample-app-jenkinsfile deleted file mode 100644 index 61370eb6..00000000 --- a/jenkins/sample-app-jenkinsfile +++ /dev/null @@ -1,42 +0,0 @@ -try { - timeout(time: 20, unit: 'MINUTES') { - - node { - stage("Initialize") { - project = env.BUILD - } - } - - node('maven') { - - stage("Checkout") { - git url: "${GIT_SOURCE_URL}", branch: "${GIT_SOURCE_REF}" - } - - stage("Build JARs") { - sh "mvn clean package -Psample-app -Dmaven.test.skip=true" - sh "ls" - - //stash name:"jars", includes:"target/*.jar" - } - - stage('Push to Nexus'){ - // Read POM xml file using 'readMavenPom' step , this step 'readMavenPom' is included in: https://plugins.jenkins.io/pipeline-utility-steps - pom = readMavenPom file: "pom.xml"; - // Find built artifact under target folder - filesByGlob = findFiles(glob: "**/target/*.jar"); - - echo "Found ${filesByGlob.length} files" - for(file in filesByGlob){ - echo "${file.name} ${file.path} ${file.directory} ${file.length} ${file.lastModified}" - } - } - - } - } -} catch (err) { - echo "in catch block" - echo "Caught: ${err}" - currentBuild.result = 'FAILURE' - throw err -} diff --git a/jrcc-access-spring-boot-sample-app/jenkins/sample-app-jenkinsfile b/jrcc-access-spring-boot-sample-app/jenkins/sample-app-jenkinsfile deleted file mode 100644 index 61370eb6..00000000 --- a/jrcc-access-spring-boot-sample-app/jenkins/sample-app-jenkinsfile +++ /dev/null @@ -1,42 +0,0 @@ -try { - timeout(time: 20, unit: 'MINUTES') { - - node { - stage("Initialize") { - project = env.BUILD - } - } - - node('maven') { - - stage("Checkout") { - git url: "${GIT_SOURCE_URL}", branch: "${GIT_SOURCE_REF}" - } - - stage("Build JARs") { - sh "mvn clean package -Psample-app -Dmaven.test.skip=true" - sh "ls" - - //stash name:"jars", includes:"target/*.jar" - } - - stage('Push to Nexus'){ - // Read POM xml file using 'readMavenPom' step , this step 'readMavenPom' is included in: https://plugins.jenkins.io/pipeline-utility-steps - pom = readMavenPom file: "pom.xml"; - // Find built artifact under target folder - filesByGlob = findFiles(glob: "**/target/*.jar"); - - echo "Found ${filesByGlob.length} files" - for(file in filesByGlob){ - echo "${file.name} ${file.path} ${file.directory} ${file.length} ${file.lastModified}" - } - } - - } - } -} catch (err) { - echo "in catch block" - echo "Caught: ${err}" - currentBuild.result = 'FAILURE' - throw err -}