From c56d0f65a5483e5571d3d57f3de9b95d292f3dc3 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 24 Sep 2025 17:59:16 -0600 Subject: [PATCH 001/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 591e42d..ac73883 100644 --- a/deploy.yml +++ b/deploy.yml @@ -39,7 +39,7 @@ items: name: hello-java-spring-boot spec: containers: - - image: monodot/hello-java-spring-boot:latest + - image: m1k3dcdc/hello-java-spring-boot:latest imagePullPolicy: IfNotPresent name: hello-java-spring-boot env: From 9fa6f7f876a46500248649ecfdd3c53d39d314cc Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 24 Sep 2025 17:59:43 -0600 Subject: [PATCH 002/100] Update openshift-build.yml --- openshift-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift-build.yml b/openshift-build.yml index afa9a53..31fde07 100644 --- a/openshift-build.yml +++ b/openshift-build.yml @@ -11,7 +11,7 @@ items: output: to: kind: DockerImage - name: docker.io/monodot/hello-java-spring-boot:latest + name: docker.io/m1k3dcdc/hello-java-spring-boot:latest source: # Expect a local directory to be streamed to OpenShift as a build source type: Binary From e01adf5ad903cf503594865d06b200d6250bdefd Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 09:20:47 -0600 Subject: [PATCH 003/100] Update Jenkinsfile --- Jenkinsfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b9893e6..c80db04 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,13 +1,7 @@ // Based on: // https://raw.githubusercontent.com/redhat-cop/container-pipelines/master/basic-spring-boot/Jenkinsfile -library identifier: "pipeline-library@v1.5", -retriever: modernSCM( - [ - $class: "GitSCMSource", - remote: "https://github.com/redhat-cop/pipeline-library.git" - ] -) + // The name you want to give your Spring Boot application // Each resource related to your app will be given this name From a0361d8b8e0ecbb781e04b6bd0eefad8cb5ef30a Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:01:41 -0600 Subject: [PATCH 004/100] Update Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ccae302..3e59894 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Build the application first using Maven -FROM maven:3.8-openjdk-11 as build +#FROM maven:3.8-openjdk-11 as build +FROM 3.9.11-sapmachine-11 as build WORKDIR /app COPY . . RUN mvn install From 2b1448d1db6b71b5a53ba4887fb71df832bf4ef5 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:07:40 -0600 Subject: [PATCH 005/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c80db04..ca742fa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ appName = "hello-java-spring-boot" pipeline { // Use the 'maven' Jenkins agent image which is provided with OpenShift - agent { label "maven" } + //agent { label "maven" } stages { stage("Checkout") { steps { From 2006d11f125353c99b5044f314ac342dca653f0b Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:09:40 -0600 Subject: [PATCH 006/100] Update Jenkinsfile --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ca742fa..6f3d59f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,6 +10,8 @@ appName = "hello-java-spring-boot" pipeline { // Use the 'maven' Jenkins agent image which is provided with OpenShift //agent { label "maven" } + agent any + stages { stage("Checkout") { steps { From 7b1ab41a419eb42d1fc6798ddfe398f61d9c0a0f Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:23:53 -0600 Subject: [PATCH 007/100] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f3d59f..291eab5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,8 @@ pipeline { // This uploads your application's source code and performs a binary build in OpenShift // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) - binaryBuild(buildConfigName: appName, buildFromPath: ".") + //binaryBuild(buildConfigName: appName, buildFromPath: ".") + sh 'mvn clean install' } } From faf5eec3975232b0151dfd32ce98f40690f3a9ff Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:29:15 -0600 Subject: [PATCH 008/100] Update openshift-build.yml --- openshift-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift-build.yml b/openshift-build.yml index 31fde07..1c88a0d 100644 --- a/openshift-build.yml +++ b/openshift-build.yml @@ -11,7 +11,7 @@ items: output: to: kind: DockerImage - name: docker.io/m1k3dcdc/hello-java-spring-boot:latest + name: m1k3dcdc/hello-java-spring-boot:latest source: # Expect a local directory to be streamed to OpenShift as a build source type: Binary From 044bbe51f9fa0ad73e07dd90123f610cb8cc0d58 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:36:26 -0600 Subject: [PATCH 009/100] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 291eab5..ad0f58d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,8 @@ pipeline { // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: appName, buildFromPath: ".") - sh 'mvn clean install' + //sh 'mvn clean install' + sh 'oc start-build appName --from-file=target/appName.jar --follow' } } From 821f2b2b89324a85da4414629476b921dedf8d45 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:47:30 -0600 Subject: [PATCH 010/100] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ad0f58d..6f3ddf8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ // The name you want to give your Spring Boot application // Each resource related to your app will be given this name -appName = "hello-java-spring-boot" +//appName = "hello-java-spring-boot" pipeline { // Use the 'maven' Jenkins agent image which is provided with OpenShift @@ -25,7 +25,7 @@ pipeline { // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' - sh 'oc start-build appName --from-file=target/appName.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' } } From b67a56a0eb76998fd05531105a1ebd78f8e2c1ce Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:49:21 -0600 Subject: [PATCH 011/100] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3e59894..0845b10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM 3.9.11-sapmachine-11 as build WORKDIR /app COPY . . -RUN mvn install +RUN mvn clean install # Inject the JAR file into a new container to keep the file small FROM openjdk:11-jre-slim From 48c2080c0282f6c02f0b925da2df7987d26a46f1 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:50:48 -0600 Subject: [PATCH 012/100] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f3ddf8..ec81cba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,8 @@ pipeline { // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' - sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' + //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=/app/app.jar --follow' } } From f96a4492227d3b44b7101f2ab31b52b156c14b4a Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:52:32 -0600 Subject: [PATCH 013/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ec81cba..34644d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=/app/app.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=/app/target/hello-java-spring-boot.jar --follow' } } From 3527303b059dd681512b1adfc60ff0870009fd47 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 10:56:03 -0600 Subject: [PATCH 014/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 34644d1..52b9e3a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=/app/target/hello-java-spring-boot.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=/app/hello-java-spring-boot.jar --follow' } } From ca0dd5557856900e7be2c83ccd72503f38268754 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 11:00:29 -0600 Subject: [PATCH 015/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 52b9e3a..ec81cba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=/app/hello-java-spring-boot.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=/app/app.jar --follow' } } From 19b32b02f85237c418c1ef9cd51f3b90952d30e6 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 11:03:11 -0600 Subject: [PATCH 016/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ec81cba..1a28004 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=/app/app.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=/app/target/hello-java-spring-boot-*.jar --follow' } } From b6ccd6041ef1c6ccce189f335e1d7f66761c674d Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 11:15:10 -0600 Subject: [PATCH 017/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1a28004..0e459ac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=/app/target/hello-java-spring-boot-*.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=./hello-java-spring-boot.jar --follow' } } From fba1dc395abbae0a2abab0a7c99ec2efd69d59f1 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 11:16:30 -0600 Subject: [PATCH 018/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0e459ac..c85fb82 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=./hello-java-spring-boot.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=./app.jar --follow' } } From e1973ef8b45f2b9830e9ca2d7ec4040c95aa50fb Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 11:23:05 -0600 Subject: [PATCH 019/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c85fb82..cad3ee4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=./app.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=target/app.jar --follow' } } From 5d72be3614b7cce41506bb33380eaa4e8879c2cf Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 11:24:42 -0600 Subject: [PATCH 020/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cad3ee4..4af0435 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=target/app.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' } } From ed51aad4c168bbc06e063c4d89c6333463f29445 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 11:32:27 -0600 Subject: [PATCH 021/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4af0435..0c7f588 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' + sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' } } From 1fe97b50593fa1de89811671010774be20391bae Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 11:41:36 -0600 Subject: [PATCH 022/100] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0845b10..e33de74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Build the application first using Maven -#FROM maven:3.8-openjdk-11 as build -FROM 3.9.11-sapmachine-11 as build +FROM maven:3.8-openjdk-11 as build +#FROM 3.9.11-sapmachine-11 as build WORKDIR /app COPY . . RUN mvn clean install From 31bf8bc2c8f773e973403262e3539c1a568faef9 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 12:42:48 -0600 Subject: [PATCH 023/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index ac73883..ecb7635 100644 --- a/deploy.yml +++ b/deploy.yml @@ -39,7 +39,7 @@ items: name: hello-java-spring-boot spec: containers: - - image: m1k3dcdc/hello-java-spring-boot:latest + - image: docker.io/m1k3dcdc/hello-java-spring-boot:latest imagePullPolicy: IfNotPresent name: hello-java-spring-boot env: From a5de764530c84e4439a2eee9b6dd3245af8a9023 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 12:43:29 -0600 Subject: [PATCH 024/100] Update openshift-build.yml --- openshift-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift-build.yml b/openshift-build.yml index 1c88a0d..31fde07 100644 --- a/openshift-build.yml +++ b/openshift-build.yml @@ -11,7 +11,7 @@ items: output: to: kind: DockerImage - name: m1k3dcdc/hello-java-spring-boot:latest + name: docker.io/m1k3dcdc/hello-java-spring-boot:latest source: # Expect a local directory to be streamed to OpenShift as a build source type: Binary From c8beea92b0b1752e3e8deec562eab7db6da05645 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 13:01:30 -0600 Subject: [PATCH 025/100] Update openshift-build.yml --- openshift-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift-build.yml b/openshift-build.yml index 31fde07..6af7abd 100644 --- a/openshift-build.yml +++ b/openshift-build.yml @@ -11,7 +11,7 @@ items: output: to: kind: DockerImage - name: docker.io/m1k3dcdc/hello-java-spring-boot:latest + name: docker.io/m1k3pjem/hello-java-spring-boot:latest source: # Expect a local directory to be streamed to OpenShift as a build source type: Binary From 450cc72e218f2c419f6fd57a36b6e849b9d9ef90 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 13:02:26 -0600 Subject: [PATCH 026/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index ecb7635..f785568 100644 --- a/deploy.yml +++ b/deploy.yml @@ -39,7 +39,7 @@ items: name: hello-java-spring-boot spec: containers: - - image: docker.io/m1k3dcdc/hello-java-spring-boot:latest + - image: docker.io/m1k3pjem/hello-java-spring-boot:latest imagePullPolicy: IfNotPresent name: hello-java-spring-boot env: From 7e28e2ab6eeab64869a698a729546c7df4a7478f Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 25 Sep 2025 14:36:39 -0600 Subject: [PATCH 027/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index f785568..9a798fb 100644 --- a/deploy.yml +++ b/deploy.yml @@ -40,7 +40,7 @@ items: spec: containers: - image: docker.io/m1k3pjem/hello-java-spring-boot:latest - imagePullPolicy: IfNotPresent + imagePullPolicy: Always #IfNotPresent name: hello-java-spring-boot env: - name: FAVOURITE_CHEESE From 5022e4411d31a41f6d939f1a3329b9db76b7a350 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 13:30:48 -0600 Subject: [PATCH 028/100] Update Jenkinsfile --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c7f588..fd97bb0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,9 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' + //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' + //openshift.selector("bc", "hello-java-spring-boot").startBuild("--follow") + openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } From b7d5594f714af7cc06aa44f836a892a6561d076a Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 13:32:22 -0600 Subject: [PATCH 029/100] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fd97bb0..8eeaede 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,9 +26,9 @@ pipeline { //binaryBuild(buildConfigName: appName, buildFromPath: ".") //sh 'mvn clean install' //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' + sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--follow") - openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") + //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } From fe116dbb80c2defe2435cdf126a73dd377fb5651 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 14:15:24 -0600 Subject: [PATCH 030/100] Update Jenkinsfile --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 8eeaede..bf50cce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,5 +34,12 @@ pipeline { // You could extend the pipeline by tagging the image, // or deploying it to a production environment, etc...... + stage('Deploy to OpenShift') { + steps { + script { + sh "oc rollout latest dc/hello-java-spring-boot -n mavc23-dev" + } + } + } } } From 45e8744409257d64eb0bdbbf26b60964b32b1dd5 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 14:27:13 -0600 Subject: [PATCH 031/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 9a798fb..581866d 100644 --- a/deploy.yml +++ b/deploy.yml @@ -40,7 +40,7 @@ items: spec: containers: - image: docker.io/m1k3pjem/hello-java-spring-boot:latest - imagePullPolicy: Always #IfNotPresent + imagePullPolicy: IfNotPresent #Always name: hello-java-spring-boot env: - name: FAVOURITE_CHEESE From 4ec66f9c2b45f6be1d63ba77687b355dca3526c1 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 14:30:42 -0600 Subject: [PATCH 032/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bf50cce..d91432f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,7 +37,7 @@ pipeline { stage('Deploy to OpenShift') { steps { script { - sh "oc rollout latest dc/hello-java-spring-boot -n mavc23-dev" + sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" } } } From ec8cb30ad7ccc0a2623c7d119b58999e2b4e22c0 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 14:36:14 -0600 Subject: [PATCH 033/100] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d91432f..b14be76 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,7 +37,8 @@ pipeline { stage('Deploy to OpenShift') { steps { script { - sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" + //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" + sh "oc apply -f ." } } } From 7f25778fd089a5bcffa1eab417e5825bd1d1ab01 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 14:40:39 -0600 Subject: [PATCH 034/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b14be76..4d859f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,7 +38,7 @@ pipeline { steps { script { //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" - sh "oc apply -f ." + sh "oc create --save-config -f ." } } } From ba4914f1c69a923f391f9628d2e400af86bbb522 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 14:54:39 -0600 Subject: [PATCH 035/100] Update deploy.yml --- deploy.yml | 94 +++++++++++++++++++++++++++--------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/deploy.yml b/deploy.yml index 581866d..59caa28 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,53 +1,53 @@ apiVersion: v1 kind: List items: -- apiVersion: v1 - kind: Service - metadata: - labels: - app: hello-java-spring-boot - app.kubernetes.io/component: hello-java-spring-boot - app.kubernetes.io/instance: hello-java-spring-boot - name: hello-java-spring-boot - spec: - ports: - - name: 8080-tcp - port: 8080 - protocol: TCP - targetPort: 8080 - selector: - deployment: hello-java-spring-boot - sessionAffinity: None - type: ClusterIP -- apiVersion: apps/v1 - kind: Deployment - metadata: - labels: - app: hello-java-spring-boot - app.kubernetes.io/component: hello-java-spring-boot - app.kubernetes.io/instance: hello-java-spring-boot - name: hello-java-spring-boot - spec: - replicas: 1 - selector: - matchLabels: + - apiVersion: v1 + kind: Service + metadata: + labels: app: hello-java-spring-boot - template: - metadata: - labels: + app.kubernetes.io/component: hello-java-spring-boot + app.kubernetes.io/instance: hello-java-spring-boot + name: hello-java-spring-boot + spec: + ports: + - name: 8080-tcp + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + deployment: hello-java-spring-boot + sessionAffinity: None + type: ClusterIP + - apiVersion: apps/v1 + kind: Deployment + metadata: + labels: + app: hello-java-spring-boot + app.kubernetes.io/component: hello-java-spring-boot + app.kubernetes.io/instance: hello-java-spring-boot + name: hello-java-spring-boot + spec: + replicas: 1 + selector: + matchLabels: app: hello-java-spring-boot - name: hello-java-spring-boot - spec: - containers: - - image: docker.io/m1k3pjem/hello-java-spring-boot:latest - imagePullPolicy: IfNotPresent #Always + template: + metadata: + labels: + app: hello-java-spring-boot name: hello-java-spring-boot - env: - - name: FAVOURITE_CHEESE - valueFrom: - configMapKeyRef: my-configmap - key: thefavourite.cheese - ports: - - containerPort: 8080 - protocol: TCP - restartPolicy: Always + spec: + containers: + - image: docker.io/m1k3pjem/hello-java-spring-boot:latest + imagePullPolicy: IfNotPresent #Always + name: hello-java-spring-boot + env: + - name: FAVOURITE_CHEESE + valueFrom: + configMapKeyRef: my-configmap + key: thefavourite.cheese + ports: + - containerPort: 8080 + protocol: TCP + restartPolicy: Always From 4618403b5d1ea2c0263f76993d4c1e1e4389eb87 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 15:07:15 -0600 Subject: [PATCH 036/100] Update deploy.yml --- deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 59caa28..6c7eb92 100644 --- a/deploy.yml +++ b/deploy.yml @@ -19,7 +19,7 @@ items: deployment: hello-java-spring-boot sessionAffinity: None type: ClusterIP - - apiVersion: apps/v1 + - apiVersion: v1 kind: Deployment metadata: labels: @@ -45,6 +45,7 @@ items: env: - name: FAVOURITE_CHEESE valueFrom: + #ConfigMapKeySelector configMapKeyRef: my-configmap key: thefavourite.cheese ports: From 4f7141f10a026224c6e9e1d4859a4b0b32e5a00b Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 15:59:26 -0600 Subject: [PATCH 037/100] Update deploy.yml --- deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.yml b/deploy.yml index 6c7eb92..8f64507 100644 --- a/deploy.yml +++ b/deploy.yml @@ -45,9 +45,9 @@ items: env: - name: FAVOURITE_CHEESE valueFrom: - #ConfigMapKeySelector - configMapKeyRef: my-configmap - key: thefavourite.cheese + configMapKeyRef: + name: my-configmap + key: thefavourite.cheese ports: - containerPort: 8080 protocol: TCP From f8e2db30eef3b4f84fbb7f2daf9f5372e15f876c Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 16:13:03 -0600 Subject: [PATCH 038/100] Delete renovate.json --- renovate.json | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 renovate.json diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 39a2b6e..0000000 --- a/renovate.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" - ] -} From 1a2e8ea0841cf52d13b2c40000a71ddef62e24b5 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 16:18:01 -0600 Subject: [PATCH 039/100] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4d859f8..e273283 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,7 +38,8 @@ pipeline { steps { script { //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" - sh "oc create --save-config -f ." + //sh "oc create --save-config -f ." + sh "oc apply -f ." } } } From 8bc3b54acde7105edff126072c2d25fcb4506104 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 16:21:46 -0600 Subject: [PATCH 040/100] Delete openshift-build.yml --- openshift-build.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 openshift-build.yml diff --git a/openshift-build.yml b/openshift-build.yml deleted file mode 100644 index 6af7abd..0000000 --- a/openshift-build.yml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v1 -kind: List -items: -- apiVersion: build.openshift.io/v1 - kind: BuildConfig - metadata: - labels: - app.kubernetes.io/name: hello-java-spring-boot - name: hello-java-spring-boot - spec: - output: - to: - kind: DockerImage - name: docker.io/m1k3pjem/hello-java-spring-boot:latest - source: - # Expect a local directory to be streamed to OpenShift as a build source - type: Binary - binary: {} - strategy: - type: Docker - dockerStrategy: - # Find the image build instructions in ./Dockerfile - dockerfilePath: Dockerfile From 0b8c9e8a642620f4da0d126f6bd8650582440aee Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 16:24:35 -0600 Subject: [PATCH 041/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 8f64507..b7fe150 100644 --- a/deploy.yml +++ b/deploy.yml @@ -19,7 +19,7 @@ items: deployment: hello-java-spring-boot sessionAffinity: None type: ClusterIP - - apiVersion: v1 + - apiVersion: apps/v1 kind: Deployment metadata: labels: From 932f61a002de0a2c8d75213f083e68bf65feb61b Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 16:40:44 -0600 Subject: [PATCH 042/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index b7fe150..4095a23 100644 --- a/deploy.yml +++ b/deploy.yml @@ -46,7 +46,7 @@ items: - name: FAVOURITE_CHEESE valueFrom: configMapKeyRef: - name: my-configmap + name: hello-java-spring-boot key: thefavourite.cheese ports: - containerPort: 8080 From 0587f169c3147e18871924a91917a2e9e473f053 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 16:58:48 -0600 Subject: [PATCH 043/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 4095a23..b7fe150 100644 --- a/deploy.yml +++ b/deploy.yml @@ -46,7 +46,7 @@ items: - name: FAVOURITE_CHEESE valueFrom: configMapKeyRef: - name: hello-java-spring-boot + name: my-configmap key: thefavourite.cheese ports: - containerPort: 8080 From 833909143fd97ab0ee34452982c3df97fc167f41 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 17:36:23 -0600 Subject: [PATCH 044/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index b7fe150..765d320 100644 --- a/deploy.yml +++ b/deploy.yml @@ -46,7 +46,7 @@ items: - name: FAVOURITE_CHEESE valueFrom: configMapKeyRef: - name: my-configmap + #name: my-configmap key: thefavourite.cheese ports: - containerPort: 8080 From c9d94f1d791e44f38dc4983b697a8e1a34d3f443 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 26 Sep 2025 17:39:10 -0600 Subject: [PATCH 045/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 765d320..b7fe150 100644 --- a/deploy.yml +++ b/deploy.yml @@ -46,7 +46,7 @@ items: - name: FAVOURITE_CHEESE valueFrom: configMapKeyRef: - #name: my-configmap + name: my-configmap key: thefavourite.cheese ports: - containerPort: 8080 From 81a659305f9c501ace92fe7c69cccdda6aa5c552 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 09:45:00 -0600 Subject: [PATCH 046/100] Update deploy.yml --- deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy.yml b/deploy.yml index b7fe150..3798c19 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,6 +1,12 @@ apiVersion: v1 kind: List items: + - apiVersion: v1 + kind: ConfigMap + metadata: + name: my-configmap + data: + key: thefavourite.cheese - apiVersion: v1 kind: Service metadata: From 18bf1d588a5abe64d5da1e7a1fd118cb6aeab18c Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 09:52:00 -0600 Subject: [PATCH 047/100] Update deploy.yml --- deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 3798c19..ffd977e 100644 --- a/deploy.yml +++ b/deploy.yml @@ -6,7 +6,8 @@ items: metadata: name: my-configmap data: - key: thefavourite.cheese + thefavourite.cheese: OAXACA + #key: thefavourite.cheese - apiVersion: v1 kind: Service metadata: From 0603b50c21e32c022d04ca5289ad24f0f41ffa2a Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 09:59:32 -0600 Subject: [PATCH 048/100] Update deploy.yml --- deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy.yml b/deploy.yml index ffd977e..0bdd9c5 100644 --- a/deploy.yml +++ b/deploy.yml @@ -5,9 +5,8 @@ items: kind: ConfigMap metadata: name: my-configmap - data: - thefavourite.cheese: OAXACA - #key: thefavourite.cheese + data: + thefavourite.cheese: OAXACA - apiVersion: v1 kind: Service metadata: From a65faf64689e55bb5548b8d4eca9b6272d468637 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 14:24:37 -0600 Subject: [PATCH 049/100] Update deploy.yml --- deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy.yml b/deploy.yml index 0bdd9c5..6e8b269 100644 --- a/deploy.yml +++ b/deploy.yml @@ -25,6 +25,15 @@ items: deployment: hello-java-spring-boot sessionAffinity: None type: ClusterIP + - apiVersion: route.openshift.io/v1 + kind: Route + metadata: + name: hello-java-spring-boot-route-unsecured + spec: + host: www.example.com + to: + kind: Service + name: hello-java-spring-boot - apiVersion: apps/v1 kind: Deployment metadata: From 7f8c8a3b28224decd47ee034abf14f0af2bbccb9 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 14:33:20 -0600 Subject: [PATCH 050/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 6e8b269..a148763 100644 --- a/deploy.yml +++ b/deploy.yml @@ -30,7 +30,7 @@ items: metadata: name: hello-java-spring-boot-route-unsecured spec: - host: www.example.com + #host: www.example.com to: kind: Service name: hello-java-spring-boot From fedae9196db8ee939a97ef7fcf6c08397ff490bb Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 14:54:43 -0600 Subject: [PATCH 051/100] Update deploy.yml --- deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index a148763..1e47725 100644 --- a/deploy.yml +++ b/deploy.yml @@ -30,10 +30,15 @@ items: metadata: name: hello-java-spring-boot-route-unsecured spec: - #host: www.example.com + host: www.example.com + path: "/cheese" + port: 8080 to: kind: Service name: hello-java-spring-boot + tls: + termination: edge + insecureEdgeTerminationPolicy: Allow - apiVersion: apps/v1 kind: Deployment metadata: From 89d6a349e25fca741ce7e306ce38291c48098963 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:15:55 -0600 Subject: [PATCH 052/100] Update deploy.yml --- deploy.yml | 80 +++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/deploy.yml b/deploy.yml index 1e47725..1d84133 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,44 +1,6 @@ apiVersion: v1 kind: List items: - - apiVersion: v1 - kind: ConfigMap - metadata: - name: my-configmap - data: - thefavourite.cheese: OAXACA - - apiVersion: v1 - kind: Service - metadata: - labels: - app: hello-java-spring-boot - app.kubernetes.io/component: hello-java-spring-boot - app.kubernetes.io/instance: hello-java-spring-boot - name: hello-java-spring-boot - spec: - ports: - - name: 8080-tcp - port: 8080 - protocol: TCP - targetPort: 8080 - selector: - deployment: hello-java-spring-boot - sessionAffinity: None - type: ClusterIP - - apiVersion: route.openshift.io/v1 - kind: Route - metadata: - name: hello-java-spring-boot-route-unsecured - spec: - host: www.example.com - path: "/cheese" - port: 8080 - to: - kind: Service - name: hello-java-spring-boot - tls: - termination: edge - insecureEdgeTerminationPolicy: Allow - apiVersion: apps/v1 kind: Deployment metadata: @@ -60,15 +22,53 @@ items: spec: containers: - image: docker.io/m1k3pjem/hello-java-spring-boot:latest - imagePullPolicy: IfNotPresent #Always + imagePullPolicy: IfNotPresent name: hello-java-spring-boot env: - name: FAVOURITE_CHEESE valueFrom: configMapKeyRef: - name: my-configmap + name: hello-java-spring-boot-configmap key: thefavourite.cheese ports: - containerPort: 8080 protocol: TCP restartPolicy: Always + - apiVersion: v1 + kind: Service + metadata: + labels: + app: hello-java-spring-boot-service + app.kubernetes.io/component: hello-java-spring-boot-service + app.kubernetes.io/instance: hello-java-spring-boot-service + name: hello-java-spring-boot-service + spec: + ports: + - name: 8080-tcp + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + deployment: hello-java-spring-boot + sessionAffinity: None + type: ClusterIP + - apiVersion: route.openshift.io/v1 + kind: Route + metadata: + name: hello-java-spring-boot-route + spec: + #host: www.example.com + #path: /cheese + port: 8080 + to: + kind: Service + name: hello-java-spring-boot-service + tls: + termination: edge + insecureEdgeTerminationPolicy: Allow + - apiVersion: v1 + kind: ConfigMap + metadata: + name: hello-java-spring-boot-configmap + data: + thefavourite.cheese: OAXACA From e25bf7154efa88daa6bae6f396f9b043eacfbabc Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:33:38 -0600 Subject: [PATCH 053/100] Update deploy.yml --- deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/deploy.yml b/deploy.yml index 1d84133..4c37e41 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,6 +1,26 @@ apiVersion: v1 kind: List items: +- apiVersion: build.openshift.io/v1 + kind: BuildConfig + metadata: + labels: + app.kubernetes.io/name: hello-java-spring-boot + name: hello-java-spring-boot + spec: + output: + to: + kind: DockerImage + name: docker.io/m1k3dcdc/hello-java-spring-boot:latest + source: + # Expect a local directory to be streamed to OpenShift as a build source + type: Binary + binary: {} + strategy: + type: Docker + dockerStrategy: + # Find the image build instructions in ./Dockerfile + dockerfilePath: Dockerfile - apiVersion: apps/v1 kind: Deployment metadata: From 42125e3f51ebb50db9279e022bc4c4e24f1c6199 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:36:29 -0600 Subject: [PATCH 054/100] Update deploy.yml --- deploy.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/deploy.yml b/deploy.yml index 4c37e41..1d84133 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,26 +1,6 @@ apiVersion: v1 kind: List items: -- apiVersion: build.openshift.io/v1 - kind: BuildConfig - metadata: - labels: - app.kubernetes.io/name: hello-java-spring-boot - name: hello-java-spring-boot - spec: - output: - to: - kind: DockerImage - name: docker.io/m1k3dcdc/hello-java-spring-boot:latest - source: - # Expect a local directory to be streamed to OpenShift as a build source - type: Binary - binary: {} - strategy: - type: Docker - dockerStrategy: - # Find the image build instructions in ./Dockerfile - dockerfilePath: Dockerfile - apiVersion: apps/v1 kind: Deployment metadata: From 2c66c9c6b5faedf149c420db5f2d17070d29f93c Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:37:16 -0600 Subject: [PATCH 055/100] Create build.yaml --- build.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build.yaml diff --git a/build.yaml b/build.yaml new file mode 100644 index 0000000..8f30dbd --- /dev/null +++ b/build.yaml @@ -0,0 +1,20 @@ + apiVersion: build.openshift.io/v1 + kind: BuildConfig + metadata: + labels: + app.kubernetes.io/name: hello-java-spring-boot + name: hello-java-spring-boot + spec: + output: + to: + kind: DockerImage + name: docker.io/m1k3dcdc/hello-java-spring-boot:latest + source: + # Expect a local directory to be streamed to OpenShift as a build source + type: Binary + binary: {} + strategy: + type: Docker + dockerStrategy: + # Find the image build instructions in ./Dockerfile + dockerfilePath: Dockerfile From f77b822eea6222360e35b0334666d93957ee189a Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:40:28 -0600 Subject: [PATCH 056/100] Update build.yaml --- build.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.yaml b/build.yaml index 8f30dbd..31fde07 100644 --- a/build.yaml +++ b/build.yaml @@ -1,4 +1,7 @@ - apiVersion: build.openshift.io/v1 +apiVersion: v1 +kind: List +items: +- apiVersion: build.openshift.io/v1 kind: BuildConfig metadata: labels: From f504cd283eebbbedde8d2d342ac9648aaf6ef99e Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:44:34 -0600 Subject: [PATCH 057/100] Rename build.yaml to openshift-build.yaml --- build.yaml => openshift-build.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename build.yaml => openshift-build.yaml (100%) diff --git a/build.yaml b/openshift-build.yaml similarity index 100% rename from build.yaml rename to openshift-build.yaml From dc6ee7df8a198aad632afb7c3b0959899d5f096d Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:48:48 -0600 Subject: [PATCH 058/100] Update Jenkinsfile --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e273283..26873d8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,10 +23,8 @@ pipeline { // This uploads your application's source code and performs a binary build in OpenShift // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) - //binaryBuild(buildConfigName: appName, buildFromPath: ".") - //sh 'mvn clean install' - //sh 'oc start-build hello-java-spring-boot --from-file=target/hello-java-spring-boot.jar --follow' - sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' + binaryBuild(buildConfigName: hello-java-spring-boot, buildFromPath: ".") + //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--follow") //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } From a5df751c0b5c881e7b71b8329dd861944c9b6b61 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:51:04 -0600 Subject: [PATCH 059/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 26873d8..6a797d0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,7 @@ pipeline { // This uploads your application's source code and performs a binary build in OpenShift // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) - binaryBuild(buildConfigName: hello-java-spring-boot, buildFromPath: ".") + binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--follow") //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") From 42d8b38b4ec49110d078de0e564e3058815302a7 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 16:59:35 -0600 Subject: [PATCH 060/100] Update Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6a797d0..a006029 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,9 +23,8 @@ pipeline { // This uploads your application's source code and performs a binary build in OpenShift // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) - binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") - //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' - //openshift.selector("bc", "hello-java-spring-boot").startBuild("--follow") + //binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") + sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } From 5e92f0796dd7b0ab07fac5b065562dd8abbc3a29 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 17:08:55 -0600 Subject: [PATCH 061/100] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a006029..109089d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ pipeline { // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") - sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' + sh 'oc start-build hello-java-spring-boot --from-dir . --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } @@ -36,7 +36,7 @@ pipeline { script { //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" //sh "oc create --save-config -f ." - sh "oc apply -f ." + sh "oc create -f ." } } } From 0eabf2d8b98b8415804c3ec737435dfdaa41370e Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 17:10:32 -0600 Subject: [PATCH 062/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 109089d..f9ce3dc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ pipeline { // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") - sh 'oc start-build hello-java-spring-boot --from-dir . --follow' + sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } From a0f0d7e25ebfe9dd798e4c86fd020a8c3d5373e1 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 17:27:19 -0600 Subject: [PATCH 063/100] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f9ce3dc..2d1a3c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,8 @@ pipeline { // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") - sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' + //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' + sh 'oc start-build hello-java-spring-boot --from-file=./openshift-build.yaml --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } From 86e0c85ee5f95a667dae58ab2c3f60bbe0855a84 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 17:36:01 -0600 Subject: [PATCH 064/100] Update Jenkinsfile apco si --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2d1a3c5..9095bf4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,7 @@ pipeline { // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' - sh 'oc start-build hello-java-spring-boot --from-file=./openshift-build.yaml --follow' + sh 'oc start-build hello-java-spring-boot --from-file="openshift-build.yaml" --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } From 9f7f1eb1a0561c730870239000145d829da6312c Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 17:46:33 -0600 Subject: [PATCH 065/100] Update openshift-build.yaml --- openshift-build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openshift-build.yaml b/openshift-build.yaml index 31fde07..32990ce 100644 --- a/openshift-build.yaml +++ b/openshift-build.yaml @@ -4,14 +4,14 @@ items: - apiVersion: build.openshift.io/v1 kind: BuildConfig metadata: - labels: - app.kubernetes.io/name: hello-java-spring-boot name: hello-java-spring-boot + labels: + app.kubernetes.io/name: hello-java-spring-boot spec: output: to: kind: DockerImage - name: docker.io/m1k3dcdc/hello-java-spring-boot:latest + name: docker.io/m1k3pjem/hello-java-spring-boot:latest source: # Expect a local directory to be streamed to OpenShift as a build source type: Binary From 366ba3b2503f37d35c28659544e7aa0e611c8b73 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Wed, 1 Oct 2025 17:56:32 -0600 Subject: [PATCH 066/100] Update Jenkinsfile www --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9095bf4..f9ce3dc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,8 +24,7 @@ pipeline { // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") - //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' - sh 'oc start-build hello-java-spring-boot --from-file="openshift-build.yaml" --follow' + sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } From 099bc633758e14f04daf9007442e7bb43fb2d731 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 09:42:06 -0600 Subject: [PATCH 067/100] Update Jenkinsfile 2 --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f9ce3dc..7f722f5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,8 +24,12 @@ pipeline { // This is a step defined in the shared library (see the top for the URL) // (Or you could invoke this step using 'oc' commands!) //binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") - sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' + //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") + sh ''' + #oc start-build --from-build= + oc start-build -F hello-java-spring-boot --from-dir=./api/ + ''' } } @@ -36,7 +40,7 @@ pipeline { script { //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" //sh "oc create --save-config -f ." - sh "oc create -f ." + //sh "oc create -f ." } } } From 7ca5eacb69cf27843e043ccb758f2dd51348ba74 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 09:45:47 -0600 Subject: [PATCH 068/100] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f722f5..75dce0e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,14 +35,14 @@ pipeline { // You could extend the pipeline by tagging the image, // or deploying it to a production environment, etc...... - stage('Deploy to OpenShift') { + /* stage('Deploy to OpenShift') { steps { script { //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" //sh "oc create --save-config -f ." - //sh "oc create -f ." + sh "oc create -f ." } } - } + }*/ } } From d40fcd8be79c095b9e246f043ad2f97ff7e3adf5 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 09:49:01 -0600 Subject: [PATCH 069/100] Update Jenkinsfile --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 75dce0e..41ad0d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,21 +28,22 @@ pipeline { //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") sh ''' #oc start-build --from-build= - oc start-build -F hello-java-spring-boot --from-dir=./api/ + #oc start-build -F hello-java-spring-boot --from-dir=./api/ + oc start-build hello-java-spring-boot --from-dir=. --follow ''' } } // You could extend the pipeline by tagging the image, // or deploying it to a production environment, etc...... - /* stage('Deploy to OpenShift') { + stage('Deploy to OpenShift') { steps { script { //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" //sh "oc create --save-config -f ." - sh "oc create -f ." + sh "oc create --save-config -f . -n mavc23-dev" } } - }*/ + } } } From f2497eda62108772ea2df884c9c9321d1a3affd2 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 10:36:40 -0600 Subject: [PATCH 070/100] Delete openshift-build.yaml --- openshift-build.yaml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 openshift-build.yaml diff --git a/openshift-build.yaml b/openshift-build.yaml deleted file mode 100644 index 32990ce..0000000 --- a/openshift-build.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v1 -kind: List -items: -- apiVersion: build.openshift.io/v1 - kind: BuildConfig - metadata: - name: hello-java-spring-boot - labels: - app.kubernetes.io/name: hello-java-spring-boot - spec: - output: - to: - kind: DockerImage - name: docker.io/m1k3pjem/hello-java-spring-boot:latest - source: - # Expect a local directory to be streamed to OpenShift as a build source - type: Binary - binary: {} - strategy: - type: Docker - dockerStrategy: - # Find the image build instructions in ./Dockerfile - dockerfilePath: Dockerfile From 6d59017d55046d5c9a228ca0173c00ee4c666e6f Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 10:48:35 -0600 Subject: [PATCH 071/100] Update deploy.yml --- deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy.yml b/deploy.yml index 1d84133..674384e 100644 --- a/deploy.yml +++ b/deploy.yml @@ -59,13 +59,15 @@ items: spec: #host: www.example.com #path: /cheese - port: 8080 + port: + targetPort: 8080-tcp to: kind: Service name: hello-java-spring-boot-service + weight: 100 tls: termination: edge - insecureEdgeTerminationPolicy: Allow + insecureEdgeTerminationPolicy: Redirect - apiVersion: v1 kind: ConfigMap metadata: From 2cea57bec744dabef8df5c013d29ebdbf761972d Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 10:59:31 -0600 Subject: [PATCH 072/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 41ad0d3..a3477b4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,7 +41,7 @@ pipeline { script { //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" //sh "oc create --save-config -f ." - sh "oc create --save-config -f . -n mavc23-dev" + sh "oc apply -f . -n mavc23-dev" } } } From bd5a0680be8f87331f939663b33c7a8c03dc1e96 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 11:11:41 -0600 Subject: [PATCH 073/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 674384e..e1cfc68 100644 --- a/deploy.yml +++ b/deploy.yml @@ -60,7 +60,7 @@ items: #host: www.example.com #path: /cheese port: - targetPort: 8080-tcp + targetPort: 8080 to: kind: Service name: hello-java-spring-boot-service From 01d74c6d2742ddde0a8210b2dd75619438cde54e Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 11:33:39 -0600 Subject: [PATCH 074/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index e1cfc68..9840f74 100644 --- a/deploy.yml +++ b/deploy.yml @@ -47,7 +47,7 @@ items: - name: 8080-tcp port: 8080 protocol: TCP - targetPort: 8080 + targetPort: "8080-tcp" selector: deployment: hello-java-spring-boot sessionAffinity: None From 0710b1b63abed850c04c233b8909c6fbb0c1197d Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 11:50:53 -0600 Subject: [PATCH 075/100] Update deploy.yml --- deploy.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/deploy.yml b/deploy.yml index 9840f74..7d8f856 100644 --- a/deploy.yml +++ b/deploy.yml @@ -52,22 +52,6 @@ items: deployment: hello-java-spring-boot sessionAffinity: None type: ClusterIP - - apiVersion: route.openshift.io/v1 - kind: Route - metadata: - name: hello-java-spring-boot-route - spec: - #host: www.example.com - #path: /cheese - port: - targetPort: 8080 - to: - kind: Service - name: hello-java-spring-boot-service - weight: 100 - tls: - termination: edge - insecureEdgeTerminationPolicy: Redirect - apiVersion: v1 kind: ConfigMap metadata: From 49dc5fefe359439c0e0b69903630a844d66c5f85 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 12:31:47 -0600 Subject: [PATCH 076/100] Update Jenkinsfile --- Jenkinsfile | 52 ++++++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a3477b4..193ff36 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,39 +1,43 @@ // Based on: // https://raw.githubusercontent.com/redhat-cop/container-pipelines/master/basic-spring-boot/Jenkinsfile - - - -// The name you want to give your Spring Boot application -// Each resource related to your app will be given this name -//appName = "hello-java-spring-boot" - pipeline { - // Use the 'maven' Jenkins agent image which is provided with OpenShift - //agent { label "maven" } - agent any + agent { + label "maven" + } stages { + stage('Build') { + steps { + echo 'Building..' + sh 'mvn clean package' + } + } + stage("Checkout") { steps { checkout scm } } - stage("Docker Build") { - steps { - // This uploads your application's source code and performs a binary build in OpenShift - // This is a step defined in the shared library (see the top for the URL) - // (Or you could invoke this step using 'oc' commands!) - //binaryBuild(buildConfigName: "openshift-build.yaml", buildFromPath: ".") - //sh 'oc start-build hello-java-spring-boot --from-dir=. --follow' - //openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") - sh ''' - #oc start-build --from-build= - #oc start-build -F hello-java-spring-boot --from-dir=./api/ - oc start-build hello-java-spring-boot --from-dir=. --follow - ''' + + stage('Create Container Image') { + steps { + echo 'Create Container Image..' + + script { + openshift.withCluster() { + openshift.withProject("mavc23-dev") { + def buildConfigExists = openshift.selector("bc", "hello-java-spring-boot").exists() + + if(!buildConfigExists){ + openshift.newBuild("--name=hello-java-spring-boot", "--docker-image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") + } + openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") + } + } } + } } - + // You could extend the pipeline by tagging the image, // or deploying it to a production environment, etc...... stage('Deploy to OpenShift') { From 15837abf8d07bc452e57761a96fc39e52bfcb58d Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 12:36:38 -0600 Subject: [PATCH 077/100] Update Jenkinsfile --- Jenkinsfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 193ff36..0055ad6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,7 @@ // Based on: // https://raw.githubusercontent.com/redhat-cop/container-pipelines/master/basic-spring-boot/Jenkinsfile pipeline { - agent { - label "maven" - } + agent any stages { stage('Build') { From 58219703423fb39b5b0ec4780b594ce69457dd17 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 12:37:51 -0600 Subject: [PATCH 078/100] Update Jenkinsfile --- Jenkinsfile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0055ad6..554f7b7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,13 +4,6 @@ pipeline { agent any stages { - stage('Build') { - steps { - echo 'Building..' - sh 'mvn clean package' - } - } - stage("Checkout") { steps { checkout scm From 1f86e81e620eee5ebcbb304ad6426925eb7a2981 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 12:57:27 -0600 Subject: [PATCH 079/100] Update Jenkinsfile --- Jenkinsfile | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 554f7b7..e7efbfc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,23 +22,36 @@ pipeline { if(!buildConfigExists){ openshift.newBuild("--name=hello-java-spring-boot", "--docker-image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") } - openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") + openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-file=target/app.jar", "--follow") } } } } } - - // You could extend the pipeline by tagging the image, - // or deploying it to a production environment, etc...... - stage('Deploy to OpenShift') { - steps { - script { - //sh "oc rollout latest deploy/hello-java-spring-boot -n mavc23-dev" - //sh "oc create --save-config -f ." - sh "oc apply -f . -n mavc23-dev" + + stage('Deploy') { + steps { + echo 'Deploying....' + script { + openshift.withCluster() { + openshift.withProject("mavc23-dev") { + + def deployment = openshift.selector("dc", "hello-java-spring-boot") + + if(!deployment.exists()){ + openshift.newApp('hello-java-spring-boot', "--as-deployment-config").narrow('svc').expose() + } + + timeout(5) { + openshift.selector("dc", "hello-java-spring-boot").related('pods').untilEach(1) { + return (it.object().status.phase == "Running") + } + } } + } } + } } + } } From 7067fe5660d0253a79d6ae622e392c8536b7ffce Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 12:58:17 -0600 Subject: [PATCH 080/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e7efbfc..af28f6a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { if(!buildConfigExists){ openshift.newBuild("--name=hello-java-spring-boot", "--docker-image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") } - openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-file=target/app.jar", "--follow") + openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-file=/app/app.jar", "--follow") } } } From 124a72a1330deb270ed87c2d9732035f1210a605 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 13:05:40 -0600 Subject: [PATCH 081/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index af28f6a..72dd5aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { if(!buildConfigExists){ openshift.newBuild("--name=hello-java-spring-boot", "--docker-image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") } - openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-file=/app/app.jar", "--follow") + openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") } } } From 66abb8d28565305a36d355e778411fecd2442604 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 13:38:57 -0600 Subject: [PATCH 082/100] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 72dd5aa..9bcb15b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,14 +36,14 @@ pipeline { openshift.withCluster() { openshift.withProject("mavc23-dev") { - def deployment = openshift.selector("dc", "hello-java-spring-boot") + def deployment = openshift.selector("deployment", "hello-java-spring-boot") if(!deployment.exists()){ - openshift.newApp('hello-java-spring-boot', "--as-deployment-config").narrow('svc').expose() + openshift.newApp('hello-java-spring-boot', "--as-deployment").narrow('svc').expose() } timeout(5) { - openshift.selector("dc", "hello-java-spring-boot").related('pods').untilEach(1) { + openshift.selector("deployment", "hello-java-spring-boot").related('pods').untilEach(1) { return (it.object().status.phase == "Running") } } From 708e496f923025f02c0d79aed4634a0bf6524e1c Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 13:52:38 -0600 Subject: [PATCH 083/100] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9bcb15b..7f7c026 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,14 +36,14 @@ pipeline { openshift.withCluster() { openshift.withProject("mavc23-dev") { - def deployment = openshift.selector("deployment", "hello-java-spring-boot") + def deployment = openshift.selector("deploy", "hello-java-spring-boot") if(!deployment.exists()){ openshift.newApp('hello-java-spring-boot', "--as-deployment").narrow('svc').expose() } timeout(5) { - openshift.selector("deployment", "hello-java-spring-boot").related('pods').untilEach(1) { + openshift.selector("deploy", "hello-java-spring-boot").related('pods').untilEach(1) { return (it.object().status.phase == "Running") } } From f24baa9bf5baf8aa3abe624d3cc2defd301feb1d Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 13:57:44 -0600 Subject: [PATCH 084/100] Update deploy.yml --- deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.yml b/deploy.yml index 7d8f856..2b2c1f1 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,8 +1,8 @@ apiVersion: v1 kind: List items: - - apiVersion: apps/v1 - kind: Deployment + - apiVersion: apps.openshift.io/v1 + kind: DeploymentConfig metadata: labels: app: hello-java-spring-boot From d1a819bbcabfb446cca35160407b3db6748d0595 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 13:58:11 -0600 Subject: [PATCH 085/100] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f7c026..f99216f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,14 +36,14 @@ pipeline { openshift.withCluster() { openshift.withProject("mavc23-dev") { - def deployment = openshift.selector("deploy", "hello-java-spring-boot") + def deployment = openshift.selector("dc", "hello-java-spring-boot") if(!deployment.exists()){ openshift.newApp('hello-java-spring-boot', "--as-deployment").narrow('svc').expose() } timeout(5) { - openshift.selector("deploy", "hello-java-spring-boot").related('pods').untilEach(1) { + openshift.selector("dc", "hello-java-spring-boot").related('pods').untilEach(1) { return (it.object().status.phase == "Running") } } From 6c2591c690bdb9473d87ea25922d8bf50d1dd61e Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 14:01:47 -0600 Subject: [PATCH 086/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f99216f..72dd5aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,7 +39,7 @@ pipeline { def deployment = openshift.selector("dc", "hello-java-spring-boot") if(!deployment.exists()){ - openshift.newApp('hello-java-spring-boot', "--as-deployment").narrow('svc').expose() + openshift.newApp('hello-java-spring-boot', "--as-deployment-config").narrow('svc').expose() } timeout(5) { From 645756549e3295a907f7880378095b1ad09385db Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 14:03:46 -0600 Subject: [PATCH 087/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 2b2c1f1..f5ed55a 100644 --- a/deploy.yml +++ b/deploy.yml @@ -49,7 +49,7 @@ items: protocol: TCP targetPort: "8080-tcp" selector: - deployment: hello-java-spring-boot + deploymentconfig: hello-java-spring-boot sessionAffinity: None type: ClusterIP - apiVersion: v1 From 550c06525f05b91f438b41351932db82136083d9 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 14:22:15 -0600 Subject: [PATCH 088/100] Update Jenkinsfile --- Jenkinsfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 72dd5aa..d06e04a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,14 +39,10 @@ pipeline { def deployment = openshift.selector("dc", "hello-java-spring-boot") if(!deployment.exists()){ - openshift.newApp('hello-java-spring-boot', "--as-deployment-config").narrow('svc').expose() + //openshift.newApp('hello-java-spring-boot', "--as-deployment-config").narrow('svc').expose() + sh "oc apply -f . -n mavc23-dev" } - timeout(5) { - openshift.selector("dc", "hello-java-spring-boot").related('pods').untilEach(1) { - return (it.object().status.phase == "Running") - } - } } } } From f1f6e638c764cc22bf7502d510d9908b295c79b0 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 14:30:46 -0600 Subject: [PATCH 089/100] Update deploy.yml --- deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.yml b/deploy.yml index f5ed55a..7d8f856 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,8 +1,8 @@ apiVersion: v1 kind: List items: - - apiVersion: apps.openshift.io/v1 - kind: DeploymentConfig + - apiVersion: apps/v1 + kind: Deployment metadata: labels: app: hello-java-spring-boot @@ -49,7 +49,7 @@ items: protocol: TCP targetPort: "8080-tcp" selector: - deploymentconfig: hello-java-spring-boot + deployment: hello-java-spring-boot sessionAffinity: None type: ClusterIP - apiVersion: v1 From d3ecb6013216f36a6ea846752d7d09a7ab52c3f7 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Thu, 2 Oct 2025 14:41:21 -0600 Subject: [PATCH 090/100] Update deploy.yml --- deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deploy.yml b/deploy.yml index 7d8f856..cfe8b5f 100644 --- a/deploy.yml +++ b/deploy.yml @@ -38,9 +38,9 @@ items: kind: Service metadata: labels: - app: hello-java-spring-boot-service - app.kubernetes.io/component: hello-java-spring-boot-service - app.kubernetes.io/instance: hello-java-spring-boot-service + app: hello-java-spring-boot + app.kubernetes.io/component: hello-java-spring-boot + app.kubernetes.io/instance: hello-java-spring-boot name: hello-java-spring-boot-service spec: ports: @@ -55,6 +55,10 @@ items: - apiVersion: v1 kind: ConfigMap metadata: + labels: + app: hello-java-spring-boot + app.kubernetes.io/component: hello-java-spring-boot + app.kubernetes.io/instance: hello-java-spring-boot name: hello-java-spring-boot-configmap data: thefavourite.cheese: OAXACA From 31ede541b278ac9307ff112ef986cf7acf916e2f Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Fri, 3 Oct 2025 17:35:22 -0600 Subject: [PATCH 091/100] Update Jenkinsfile --- Jenkinsfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d06e04a..4dbae63 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,12 +4,6 @@ pipeline { agent any stages { - stage("Checkout") { - steps { - checkout scm - } - } - stage('Create Container Image') { steps { echo 'Create Container Image..' From 17926dc7a892325a55e99ad342035d7ebc55c657 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 09:51:58 -0600 Subject: [PATCH 092/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index cfe8b5f..b45ebe2 100644 --- a/deploy.yml +++ b/deploy.yml @@ -8,7 +8,7 @@ items: app: hello-java-spring-boot app.kubernetes.io/component: hello-java-spring-boot app.kubernetes.io/instance: hello-java-spring-boot - name: hello-java-spring-boot + name: hello-java-spring-boot-deploy spec: replicas: 1 selector: From 44a889eaf77245939ee707c33533f4fcd517a3df Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 10:11:17 -0600 Subject: [PATCH 093/100] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4dbae63..3c663d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,12 +11,12 @@ pipeline { script { openshift.withCluster() { openshift.withProject("mavc23-dev") { - def buildConfigExists = openshift.selector("bc", "hello-java-spring-boot").exists() + def buildConfigExists = openshift.selector("bc", "hello-java-spring-boot-bc").exists() if(!buildConfigExists){ - openshift.newBuild("--name=hello-java-spring-boot", "--docker-image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") + openshift.newBuild("--name=hello-java-spring-boot-bc", "--image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") } - openshift.selector("bc", "hello-java-spring-boot").startBuild("--from-dir=.", "--follow") + openshift.selector("bc", "hello-java-spring-boot-bc").startBuild("--from-dir=.", "--follow") } } } From 6fd90230c2d599b946e0f7d23b905ef5d5c724dd Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 10:53:27 -0600 Subject: [PATCH 094/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index b45ebe2..7b7839b 100644 --- a/deploy.yml +++ b/deploy.yml @@ -47,7 +47,7 @@ items: - name: 8080-tcp port: 8080 protocol: TCP - targetPort: "8080-tcp" + targetPort: 8080 selector: deployment: hello-java-spring-boot sessionAffinity: None From 72025eb9648673546f0eba3dca71f09c077c48ad Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 11:39:13 -0600 Subject: [PATCH 095/100] Update Jenkinsfile --- Jenkinsfile | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3c663d3..52d7e6d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,32 @@ // Based on: // https://raw.githubusercontent.com/redhat-cop/container-pipelines/master/basic-spring-boot/Jenkinsfile pipeline { + options { + // set a timeout of 60 minutes for this pipeline + timeout(time: 10, unit: 'MINUTES') + } + + environment { + DEV_PROJECT = "mavc23-dev" + APP_NAME = "hello-java-spring-boot" + APP_GIT_URL = "https://github.com/m1k3dcdc/hello-java-spring-boot.git" + } + agent any stages { stage('Create Container Image') { steps { - echo 'Create Container Image..' + echo '### Create Container Image... ###' script { openshift.withCluster() { - openshift.withProject("mavc23-dev") { + openshift.withProject("$DEV_PROJECT") { + echo "### Using project: ${openshift.project()}" def buildConfigExists = openshift.selector("bc", "hello-java-spring-boot-bc").exists() - - if(!buildConfigExists){ + + echo "BuildConfig " + APP_NAME + " exists, start new build to update app ..." + if (!buildConfigExists) { openshift.newBuild("--name=hello-java-spring-boot-bc", "--image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") } openshift.selector("bc", "hello-java-spring-boot-bc").startBuild("--from-dir=.", "--follow") From 8438f72c40b3ff266af731daa19295d9dfb1d0d2 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 11:42:08 -0600 Subject: [PATCH 096/100] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 52d7e6d..ea77f4b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,7 @@ pipeline { echo "### Using project: ${openshift.project()}" def buildConfigExists = openshift.selector("bc", "hello-java-spring-boot-bc").exists() - echo "BuildConfig " + APP_NAME + " exists, start new build to update app ..." + echo "### BuildConfig: " + APP_NAME + " exists, start new build to update app ..." if (!buildConfigExists) { openshift.newBuild("--name=hello-java-spring-boot-bc", "--image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") } From 60053c592d6fca137139aab1d52a69bf24033ac3 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 12:15:08 -0600 Subject: [PATCH 097/100] Update Dockerfile --- Dockerfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index e33de74..67dedc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,15 @@ # Build the application first using Maven -FROM maven:3.8-openjdk-11 as build +#FROM maven:3.8-openjdk-11 as build #FROM 3.9.11-sapmachine-11 as build -WORKDIR /app -COPY . . -RUN mvn clean install +#WORKDIR /app +#COPY . . +#RUN mvn clean install # Inject the JAR file into a new container to keep the file small -FROM openjdk:11-jre-slim -WORKDIR /app -COPY --from=build /app/target/hello-java-spring-boot-*.jar /app/app.jar -EXPOSE 8080 -ENTRYPOINT ["sh", "-c"] -CMD ["java -jar app.jar"] +#FROM openjdk:11-jre-slim +#WORKDIR /app +#COPY --from=build /app/target/hello-java-spring-boot-*.jar /app/app.jar +#EXPOSE 8080 +#ENTRYPOINT ["sh", "-c"] +#CMD ["java -jar app.jar"] +FROM m1k3pjem/hello-java-spring-boot:latest From d943b2c38d352edc04b869a09f52e4f716e7e3f9 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 14:11:23 -0600 Subject: [PATCH 098/100] Update deploy.yml --- deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.yml b/deploy.yml index 7b7839b..a816e9f 100644 --- a/deploy.yml +++ b/deploy.yml @@ -61,4 +61,4 @@ items: app.kubernetes.io/instance: hello-java-spring-boot name: hello-java-spring-boot-configmap data: - thefavourite.cheese: OAXACA + thefavourite.cheese: GOUDA From a8f5e2a741d143c19d73a809568b203c4278a6b4 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 17:22:00 -0600 Subject: [PATCH 099/100] Update Jenkinsfile --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ea77f4b..df0627c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { options { // set a timeout of 60 minutes for this pipeline - timeout(time: 10, unit: 'MINUTES') + timeout(time: 5, unit: 'MINUTES') } environment { @@ -28,6 +28,12 @@ pipeline { echo "### BuildConfig: " + APP_NAME + " exists, start new build to update app ..." if (!buildConfigExists) { openshift.newBuild("--name=hello-java-spring-boot-bc", "--image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") + + if (!openshift.selector("route", APP_NAME).exists()) { + echo "### Route " + APP_NAME + " does not exist, exposing service ..." + //def service = openshift.selector("service", APP_NAME) + //service.expose() + } } openshift.selector("bc", "hello-java-spring-boot-bc").startBuild("--from-dir=.", "--follow") } From 521f5caf32440a924551cbb72e479644872f5523 Mon Sep 17 00:00:00 2001 From: M1K3 PJEM Date: Tue, 7 Oct 2025 17:41:47 -0600 Subject: [PATCH 100/100] Update Jenkinsfile --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index df0627c..66a9a0c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,13 +27,16 @@ pipeline { echo "### BuildConfig: " + APP_NAME + " exists, start new build to update app ..." if (!buildConfigExists) { + echo "### newBuild " + APP_NAME + " does not exist" openshift.newBuild("--name=hello-java-spring-boot-bc", "--image=docker.io/m1k3pjem/hello-java-spring-boot", "--binary") if (!openshift.selector("route", APP_NAME).exists()) { echo "### Route " + APP_NAME + " does not exist, exposing service ..." //def service = openshift.selector("service", APP_NAME) //service.expose() - } + } else { + echo "### Route " + APP_NAME + " exist" + } } openshift.selector("bc", "hello-java-spring-boot-bc").startBuild("--from-dir=.", "--follow") }