From f6f86689fdbdf08052fc16cc3eba0b9fc51ac310 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 15:30:52 +0530 Subject: [PATCH 01/14] 21 --- jenkinsfile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 000000000..d15f679f5 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,49 @@ + +pipeline { + agent { label 'JDK-17' } + options { + timeout(time: 30, unit: 'MINUTES') + } + triggers { + pollSCM('* * * * *') + } + tools { + jdk 'JDK-17' + } + stages { + stage('vcs') { + steps { + git url: 'https://github.com/uday1g/spring-petclinic.git', + branch: 'main' + } + } + stage('build and package') { + steps { + rtMavenDeployer ( + id: "SPC_DEPLOYER", + serverId: "JFROG_CLOUD", + releaseRepo: 'qt-app-libs-snapshot-local', + snapshotRepo: 'qt-app-libs-snapshot-local' + ) + rtMavenRun ( + tool: 'MAVEN 3.9', // Tool name from Jenkins configuration + pom: 'pom.xml', + goals: 'clean install', + deployerId: "SPC_DEPLOYER" + //, + //buildName: "${JOB_NAME}", + //buildNumber: "${BUILD_ID}" + ) + rtPublishBuildInfo ( + serverId: "JFROG_CLOUD" + ) + } + } + stage('reporting') { + steps { + junit testResults: '**/target/surefire-reports/TEST-*.xml' + } + } + } + +} \ No newline at end of file From 9c7bc898c983fb7323720e946535ce8d63624027 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 15:37:54 +0530 Subject: [PATCH 02/14] 21 --- jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index d15f679f5..129f70a94 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,4 +1,3 @@ - pipeline { agent { label 'JDK-17' } options { @@ -46,4 +45,4 @@ pipeline { } } -} \ No newline at end of file +} From 179b26d9c2fc1f16b2c7f43a5df0074e7fe56a50 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 15:43:13 +0530 Subject: [PATCH 03/14] 23 --- jenkinsfile | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 129f70a94..e69de29bb 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,48 +0,0 @@ -pipeline { - agent { label 'JDK-17' } - options { - timeout(time: 30, unit: 'MINUTES') - } - triggers { - pollSCM('* * * * *') - } - tools { - jdk 'JDK-17' - } - stages { - stage('vcs') { - steps { - git url: 'https://github.com/uday1g/spring-petclinic.git', - branch: 'main' - } - } - stage('build and package') { - steps { - rtMavenDeployer ( - id: "SPC_DEPLOYER", - serverId: "JFROG_CLOUD", - releaseRepo: 'qt-app-libs-snapshot-local', - snapshotRepo: 'qt-app-libs-snapshot-local' - ) - rtMavenRun ( - tool: 'MAVEN 3.9', // Tool name from Jenkins configuration - pom: 'pom.xml', - goals: 'clean install', - deployerId: "SPC_DEPLOYER" - //, - //buildName: "${JOB_NAME}", - //buildNumber: "${BUILD_ID}" - ) - rtPublishBuildInfo ( - serverId: "JFROG_CLOUD" - ) - } - } - stage('reporting') { - steps { - junit testResults: '**/target/surefire-reports/TEST-*.xml' - } - } - } - -} From 4c10f0a3b6e72b18421d1ca50d6f461aca7710fd Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 15:59:51 +0530 Subject: [PATCH 04/14] 22 --- jenkinsfile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/jenkinsfile b/jenkinsfile index e69de29bb..bed4d8d6d 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -0,0 +1,48 @@ +pipeline { + agent { label 'JDK-17' } + options { + timeout(time: 30, unit: 'MINUTES') + } + triggers { + pollSCM('* * * * *') + } + tools { + jdk 'JDK-17' + } + stages { + stage('vcs') { + steps { + git url: 'https://github.com/uday1g/spring-petclinic.git', + branch: 'main' + } + } + stage('build and package') { + steps { + rtMavenDeployer ( + id: "SPC_DEPLOYER", + serverId: "JFROG_CLOUD", + releaseRepo: 'qt-app-libs-snapshot-local', + snapshotRepo: 'qt-app-libs-snapshot-local' + ) + rtMavenRun ( + tool: 'MAVEN_3.9', // Tool name from Jenkins configuration + pom: 'pom.xml', + goals: 'clean install', + deployerId: "SPC_DEPLOYER" + //, + //buildName: "${JOB_NAME}", + //buildNumber: "${BUILD_ID}" + ) + rtPublishBuildInfo ( + serverId: "JFROG_CLOUD" + ) + } + } + stage('reporting') { + steps { + junit testResults: '**/target/surefire-reports/TEST-*.xml' + } + } + } + +} From 3b415e2988e20d60da413ce124805f441f410883 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 16:03:07 +0530 Subject: [PATCH 05/14] 25 --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index bed4d8d6d..129f70a94 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -25,7 +25,7 @@ pipeline { snapshotRepo: 'qt-app-libs-snapshot-local' ) rtMavenRun ( - tool: 'MAVEN_3.9', // Tool name from Jenkins configuration + tool: 'MAVEN 3.9', // Tool name from Jenkins configuration pom: 'pom.xml', goals: 'clean install', deployerId: "SPC_DEPLOYER" From 51b513f602f2ccc0e63893ee7bbb84ae6c139870 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 16:06:17 +0530 Subject: [PATCH 06/14] 15 --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 129f70a94..a6f17f519 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -25,7 +25,7 @@ pipeline { snapshotRepo: 'qt-app-libs-snapshot-local' ) rtMavenRun ( - tool: 'MAVEN 3.9', // Tool name from Jenkins configuration + tool: 'maven 3.9', // Tool name from Jenkins configuration pom: 'pom.xml', goals: 'clean install', deployerId: "SPC_DEPLOYER" From cad51ac516f5c62fb5b6f0ac5a660a1fa28ae070 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 16:17:34 +0530 Subject: [PATCH 07/14] 85 --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index a6f17f519..2825af962 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -21,7 +21,7 @@ pipeline { rtMavenDeployer ( id: "SPC_DEPLOYER", serverId: "JFROG_CLOUD", - releaseRepo: 'qt-app-libs-snapshot-local', + releaseRepo: 'qt-app-libs-release-local', snapshotRepo: 'qt-app-libs-snapshot-local' ) rtMavenRun ( From fb01b3b4ca51715911bba70ea5a603683bb3a4ae Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 16:18:33 +0530 Subject: [PATCH 08/14] 95 --- jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 2825af962..9cc831270 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -21,8 +21,8 @@ pipeline { rtMavenDeployer ( id: "SPC_DEPLOYER", serverId: "JFROG_CLOUD", - releaseRepo: 'qt-app-libs-release-local', - snapshotRepo: 'qt-app-libs-snapshot-local' + releaseRepo: 'yadu-app-libs-release-local', + snapshotRepo: 'yadu-app-libs-snapshot-local' ) rtMavenRun ( tool: 'maven 3.9', // Tool name from Jenkins configuration From 9f0e3de48d132cb80ff5a2b47ccab4a3329bd1ac Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 16:22:11 +0530 Subject: [PATCH 09/14] 96 --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 9cc831270..0b233bb3e 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -18,7 +18,7 @@ pipeline { } stage('build and package') { steps { - rtMavenDeployer ( + rtMavenDeployer ( id: "SPC_DEPLOYER", serverId: "JFROG_CLOUD", releaseRepo: 'yadu-app-libs-release-local', From 19df9bff78171959dc297800c0ba5a213d432cc5 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 16:26:53 +0530 Subject: [PATCH 10/14] 976 --- jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 0b233bb3e..c3f289d54 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -21,8 +21,8 @@ pipeline { rtMavenDeployer ( id: "SPC_DEPLOYER", serverId: "JFROG_CLOUD", - releaseRepo: 'yadu-app-libs-release-local', - snapshotRepo: 'yadu-app-libs-snapshot-local' + releaseRepo: 'yadu-libs-release-local', + snapshotRepo: 'yadu-libs-snapshot-local' ) rtMavenRun ( tool: 'maven 3.9', // Tool name from Jenkins configuration From 69faf3d59be2398cbccab3944f3381114beaf798 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 17:21:53 +0530 Subject: [PATCH 11/14] 9765 --- jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index c3f289d54..daff347f8 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,9 +6,6 @@ pipeline { triggers { pollSCM('* * * * *') } - tools { - jdk 'JDK-17' - } stages { stage('vcs') { steps { @@ -25,7 +22,8 @@ pipeline { snapshotRepo: 'yadu-libs-snapshot-local' ) rtMavenRun ( - tool: 'maven 3.9', // Tool name from Jenkins configuration + tool: {" maven 3.9" + 'JDK-17'} pom: 'pom.xml', goals: 'clean install', deployerId: "SPC_DEPLOYER" From d85bc7f497717667e9957f347d446efa0e2e4975 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 17:37:52 +0530 Subject: [PATCH 12/14] 97658 --- jenkinsfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index daff347f8..0559948e3 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,6 +6,9 @@ pipeline { triggers { pollSCM('* * * * *') } + tool { + jdk 'JDK-17' + } stages { stage('vcs') { steps { @@ -18,18 +21,14 @@ pipeline { rtMavenDeployer ( id: "SPC_DEPLOYER", serverId: "JFROG_CLOUD", - releaseRepo: 'yadu-libs-release-local', - snapshotRepo: 'yadu-libs-snapshot-local' + releaseRepo: 'uday-libs-release-local', + snapshotRepo: 'uday-libs-snapshot-local' ) rtMavenRun ( - tool: {" maven 3.9" - 'JDK-17'} + tool: 'maven 3.9', pom: 'pom.xml', goals: 'clean install', - deployerId: "SPC_DEPLOYER" - //, - //buildName: "${JOB_NAME}", - //buildNumber: "${BUILD_ID}" + deployerId: "SPC_DEPLOYER ) rtPublishBuildInfo ( serverId: "JFROG_CLOUD" From 4f2e49ac7f272c71e7076bce84a7e408d65f9c85 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 17:40:00 +0530 Subject: [PATCH 13/14] 976585 --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 0559948e3..5688cba2f 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -28,7 +28,7 @@ pipeline { tool: 'maven 3.9', pom: 'pom.xml', goals: 'clean install', - deployerId: "SPC_DEPLOYER + deployerId: "SPC_DEPLOYER" ) rtPublishBuildInfo ( serverId: "JFROG_CLOUD" From 434f8b0dd3e3306711b8a8dcc288491c938bc354 Mon Sep 17 00:00:00 2001 From: udaykiran Date: Wed, 9 Aug 2023 17:41:34 +0530 Subject: [PATCH 14/14] 9765852 --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 5688cba2f..3d03f2f9a 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,7 +6,7 @@ pipeline { triggers { pollSCM('* * * * *') } - tool { + tools { jdk 'JDK-17' } stages {