From 683fa05dc4c46601de606a0c26dad7bb0374c9b4 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 4 Oct 2022 12:39:37 -0400 Subject: [PATCH 01/44] attempt at a jenkins file, next to no attributes --- Jenkinsfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..9ba19e3 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,36 @@ +pipeline { + agent { label 'pipes-docker-agent' } + parameters { + string(name: 'GIT_URL', defaultValue: '', description: 'Url of helm chart git repo') + string(name: 'BRANCH_NAME', defaultValue: '', description: 'Branch name from helm repo') + string(name: 'TAG_NAME', defaultValue: '', description: 'Latest tag') + string(name: 'REPO_PATH', defaultValue: '', description: 'Path in acr') + } + environment { + // URL of helm repo + GIT_URL = "${params.GIT_URL}" + BRANCH_NAME= "${params.BRANCH_NAME}" + + GITHUB = credentials('github_credential') + GITHUB_USERNAME = "${env.GITHUB_USR}" + GITHUB_PASSWORD = "${env.GITHUB_PSW}" + + + + EMAIL = "nathan_wagner@gap.com" + } +stages { + stage('GitCheckOut') { + checkout([$class: 'GitSCM', branches: [[name: "${env.CHECKOUT}"]], extensions: [], userRemoteConfigs: [[credentialsId: 'gitea', url: "$GIT_URL"]]]) + +} + stage('buildPush') { + sh(''' + docker buildx create docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=insecure=true + docker buildx build . -t registry.local:/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 + ''') + } + +} + +} From 99ab96ab9e3ebf4fcbb5555c55b4b240615c7b0f Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 5 Oct 2022 14:05:41 +0000 Subject: [PATCH 02/44] Update 'Dockerfile' --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 53b7d0e..02be550 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,3 +12,4 @@ RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/ #FROM alpine:latest #COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/ + From 506925f8d41e6e600877f14e0a23847e1af8df8e Mon Sep 17 00:00:00 2001 From: nathan wagner Date: Wed, 5 Oct 2022 10:07:30 -0400 Subject: [PATCH 03/44] force pol --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 02be550..069c06e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,3 +13,4 @@ RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/ #COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/ + From a4aff9684974b09316f65e28250deb199f9f34f5 Mon Sep 17 00:00:00 2001 From: nathan wagner Date: Wed, 5 Oct 2022 10:09:31 -0400 Subject: [PATCH 04/44] more --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 069c06e..aed092d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,3 +14,4 @@ RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/ #COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/ + From b8207ff3d42eb9d5dfbfb33a04bfa9fd5a6567ae Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 5 Oct 2022 14:19:18 +0000 Subject: [PATCH 05/44] wtf --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index aed092d..5f9af4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,3 +15,4 @@ RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/ + From 10e43a5d6ce6bf5cc3bf409cc3dfea957a4e82a0 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 13:20:57 -0400 Subject: [PATCH 06/44] adasdas --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 5f9af4a..02b6b78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,3 +16,4 @@ RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/ + From 71ef6c7b162c9e4ad85bf9998a65d33ade9adb50 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 13:25:46 -0400 Subject: [PATCH 07/44] iasdsadsd --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 02b6b78..1fda46b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,3 +17,4 @@ RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/ + From e3dc58c4fc5d396f7399450e6943a40ddbe3e7c3 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 13:33:18 -0400 Subject: [PATCH 08/44] debug print --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 9ba19e3..961a827 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,6 +26,7 @@ stages { } stage('buildPush') { sh(''' + echo "ADASDASDSADSADASD" docker buildx create docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=insecure=true docker buildx build . -t registry.local:/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') From 708775f2130e3ae94e19099ff858a3f8d0f1418a Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:06:07 -0400 Subject: [PATCH 09/44] doing it --- Jenkinsfile | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 961a827..7abc44d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,23 +1,5 @@ pipeline { - agent { label 'pipes-docker-agent' } - parameters { - string(name: 'GIT_URL', defaultValue: '', description: 'Url of helm chart git repo') - string(name: 'BRANCH_NAME', defaultValue: '', description: 'Branch name from helm repo') - string(name: 'TAG_NAME', defaultValue: '', description: 'Latest tag') - string(name: 'REPO_PATH', defaultValue: '', description: 'Path in acr') - } environment { - // URL of helm repo - GIT_URL = "${params.GIT_URL}" - BRANCH_NAME= "${params.BRANCH_NAME}" - - GITHUB = credentials('github_credential') - GITHUB_USERNAME = "${env.GITHUB_USR}" - GITHUB_PASSWORD = "${env.GITHUB_PSW}" - - - - EMAIL = "nathan_wagner@gap.com" } stages { stage('GitCheckOut') { From 11a4d9a0ec40c37e31e85b24ed83453ee7d479b8 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:09:19 -0400 Subject: [PATCH 10/44] more --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 7abc44d..0c5a215 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,10 +3,13 @@ pipeline { } stages { stage('GitCheckOut') { + steps{ checkout([$class: 'GitSCM', branches: [[name: "${env.CHECKOUT}"]], extensions: [], userRemoteConfigs: [[credentialsId: 'gitea', url: "$GIT_URL"]]]) + } } stage('buildPush') { + steps{ sh(''' echo "ADASDASDSADSADASD" docker buildx create docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=insecure=true @@ -14,6 +17,8 @@ stages { ''') } + } } +} From 03efabc4c128f08216a4797e5cf082243343f71d Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:11:17 -0400 Subject: [PATCH 11/44] doing more --- Jenkinsfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c5a215..cfdc12d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,4 @@ pipeline { - environment { - } stages { stage('GitCheckOut') { steps{ From fe8070fa208c11e65ba4031c24ab1424ac686282 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:12:48 -0400 Subject: [PATCH 12/44] ugh --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index cfdc12d..c4d4281 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,5 @@ pipeline { +agent {any} stages { stage('GitCheckOut') { steps{ From 85ffee66c440681479755427b6d13bb683893c0d Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:13:44 -0400 Subject: [PATCH 13/44] just awful --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c4d4281..05cbf9d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { -agent {any} +agent any stages { stage('GitCheckOut') { steps{ From a0c66135180160ec774a86dd7eb0e6ce6f488b15 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:21:29 -0400 Subject: [PATCH 14/44] movinb out --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 05cbf9d..e41ef5c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,12 @@ pipeline { agent any stages { - stage('GitCheckOut') { + /*stage('GitCheckOut') { steps{ checkout([$class: 'GitSCM', branches: [[name: "${env.CHECKOUT}"]], extensions: [], userRemoteConfigs: [[credentialsId: 'gitea', url: "$GIT_URL"]]]) } -} +}*/ stage('buildPush') { steps{ sh(''' From 23121307b8e7738e86cd7b4b55e205c23553c354 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:23:13 -0400 Subject: [PATCH 15/44] asdas --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e41ef5c..74fd2d6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh(''' echo "ADASDASDSADSADASD" - docker buildx create docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=insecure=true + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=insecure=true docker buildx build . -t registry.local:/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') } From 1e0a4bf3a8a55a4acce7ed9b74758d64bbecb761 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:29:04 -0400 Subject: [PATCH 16/44] doing it --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 74fd2d6..1d95306 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh(''' echo "ADASDASDSADSADASD" - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=insecure=true + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true docker buildx build . -t registry.local:/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') } From 72829b8660f06066b0d959677a4e28cb4e14ed44 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:33:20 -0400 Subject: [PATCH 17/44] working girl --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1d95306..43f3e50 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh(''' echo "ADASDASDSADSADASD" - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" docker buildx build . -t registry.local:/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') } From 93fb04f0a18cb1b9d433a6c32c4fd6a14ad863f8 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:34:27 -0400 Subject: [PATCH 18/44] hack and slash --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 43f3e50..6ddadc2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,6 +11,7 @@ stages { steps{ sh(''' echo "ADASDASDSADSADASD" + docker buildx rm jenkins-agent docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" docker buildx build . -t registry.local:/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') From 02b98006de2dffe53aaaf79d1a19deaa3b363345 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:35:28 -0400 Subject: [PATCH 19/44] duh --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6ddadc2..df46740 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ stages { sh(''' echo "ADASDASDSADSADASD" docker buildx rm jenkins-agent - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --use docker buildx build . -t registry.local:/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') } From c5805e48323e15f4e816da1c59e35adba6f6f0ec Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:36:14 -0400 Subject: [PATCH 20/44] that was dumb --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index df46740..3c93cd8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ stages { echo "ADASDASDSADSADASD" docker buildx rm jenkins-agent docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --use - docker buildx build . -t registry.local:/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 + docker buildx build . -t registry.local/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') } From 1d7eabc306bd217035f5ae2b034eda207fbbb1c8 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 14:36:54 -0400 Subject: [PATCH 21/44] agasdfas --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3c93cd8..6fe0e89 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ stages { echo "ADASDASDSADSADASD" docker buildx rm jenkins-agent docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --use - docker buildx build . -t registry.local/rgbBoard:v0.0.1 --push --platform=linux/arm64,linux/amd64 + docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') } From 8b33ccfc88c02cc558b9f0056d197c028c3b143f Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:02:09 -0400 Subject: [PATCH 22/44] crazy --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6fe0e89..d586eb9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ stages { sh(''' echo "ADASDASDSADSADASD" docker buildx rm jenkins-agent - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry."registry.local"]" "insecure = true" ) --use docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') } From 89906fb7b4ef0fe8a1dcf5c8bb3c6c6474fed08a Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:03:29 -0400 Subject: [PATCH 23/44] asdasdsad --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d586eb9..dd90ccc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ stages { sh(''' echo "ADASDASDSADSADASD" docker buildx rm jenkins-agent - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry."registry.local"]" "insecure = true" ) --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry.\"registry.local\"]" "insecure = true" ) --use docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64 ''') } From 4ecdcdcd387cdb920448630c2d16ddd215582670 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:04:32 -0400 Subject: [PATCH 24/44] it continutes --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index dd90ccc..02257ec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,9 +11,9 @@ stages { steps{ sh(''' echo "ADASDASDSADSADASD" - docker buildx rm jenkins-agent docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry.\"registry.local\"]" "insecure = true" ) --use docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64 + docker buildx rm jenkins-agent ''') } From 6af174b0e59bb1ec21d9b43f0f8bf5170178a93d Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:12:16 -0400 Subject: [PATCH 25/44] more escpaing --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 02257ec..ea995ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh(''' echo "ADASDASDSADSADASD" - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry.\"registry.local\"]" "insecure = true" ) --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry.\\"registry.local\\"]" "insecure = true" ) --use docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64 docker buildx rm jenkins-agent ''') From 610ca3e8f73545809678b1ea0447a464fd99d88d Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:18:24 -0400 Subject: [PATCH 26/44] dumb maybe --- Jenkinsfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ea995ca..a1ffa03 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,12 +9,10 @@ stages { }*/ stage('buildPush') { steps{ - sh(''' - echo "ADASDASDSADSADASD" - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry.\\"registry.local\\"]" "insecure = true" ) --use - docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64 - docker buildx rm jenkins-agent - ''') + sh 'echo "ADASDASDSADSADASD"' + sh 'docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry.\\"registry.local\\"]" "insecure = true" ) --use' + sh 'docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64' + sh 'docker buildx rm jenkins-agent' } From f1e5f6fad0762b9b7be435905a234d3dc5bb328f Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:19:53 -0400 Subject: [PATCH 27/44] asdas --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a1ffa03..7a17f44 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ stages { stage('buildPush') { steps{ sh 'echo "ADASDASDSADSADASD"' - sh 'docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --config=<( echo "[registry.\\"registry.local\\"]" "insecure = true" ) --use' + sh 'docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --config=<( echo "[registry.\\"registry.local\\"]" "insecure = true" ) --use' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' } From 3cde23714a9946cec22e1519ec3d908985e0f563 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:20:51 -0400 Subject: [PATCH 28/44] asd --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7a17f44..54b9523 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ stages { stage('buildPush') { steps{ sh 'echo "ADASDASDSADSADASD"' - sh 'docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --config=<( echo "[registry.\\"registry.local\\"]" "insecure = true" ) --use' + sh 'docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --config=<( echo \"[registry.\\"registry.local\\"]\" \"insecure = true\" ) --use' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' } From a4d8873e7f2cbcfd5eca56e8a8c682295371655e Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:22:01 -0400 Subject: [PATCH 29/44] asd --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 54b9523..0fa5a78 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ stages { stage('buildPush') { steps{ sh 'echo "ADASDASDSADSADASD"' - sh 'docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --config=<( echo \"[registry.\\"registry.local\\"]\" \"insecure = true\" ) --use' + sh 'bash -c docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --config=<( echo \"[registry.\\"registry.local\\"]\" \"insecure = true\" ) --use' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' } From 36b31296e4fe1c26d72ac1d0daf587c0ebbbec45 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:24:15 -0400 Subject: [PATCH 30/44] asd --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0fa5a78..f794d7c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,9 @@ stages { stage('buildPush') { steps{ sh 'echo "ADASDASDSADSADASD"' - sh 'bash -c docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --config=<( echo \"[registry.\\"registry.local\\"]\" \"insecure = true\" ) --use' + sh '''#!/bin/bash + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --config=<( echo \"[registry.\\"registry.local\\"]\" \"insecure = true\" ) --use + ''' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' } From 4f1f52b1883fcd05c725167ac9cce5c7989f55bd Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 15:57:05 -0400 Subject: [PATCH 31/44] asd --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index f794d7c..ca8d8a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,3 +22,4 @@ stages { } } + From 3df87c76420e27459bb4b4ca2e7e873a75a3b1fb Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 16:04:42 -0400 Subject: [PATCH 32/44] asd --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index ca8d8a2..c7b76c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,3 +23,4 @@ stages { } } + From b8dd4d97de56d76e65469970e76723c0ad1c70ca Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 16:06:31 -0400 Subject: [PATCH 33/44] asd --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index c7b76c3..a2011bf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,3 +24,4 @@ stages { } + From 9db2460b7238144d2b00be9c80e84f2d2dee4915 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 16:12:09 -0400 Subject: [PATCH 34/44] asd --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index a2011bf..a5e1238 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,3 +25,4 @@ stages { + From f22096392876e165af5a73adf0a9a787a4faa9e5 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 16:16:25 -0400 Subject: [PATCH 35/44] asd --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index a5e1238..a49b7de 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,3 +26,4 @@ stages { + From 18b2e172f54b8c2dfa0c967363661606430aa734 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 5 Oct 2022 16:18:46 -0400 Subject: [PATCH 36/44] asd --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index a49b7de..05dd3a1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,3 +27,4 @@ stages { + From cf2ee4f80d6c221655d4059eb8fcef7c4a40942f Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 5 Oct 2022 23:55:52 +0000 Subject: [PATCH 37/44] Update 'Jenkinsfile' --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 05dd3a1..e775313 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,3 +28,4 @@ stages { + From 20cd758426d854d549c380a32f6a53a26923b0ba Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 6 Oct 2022 00:01:53 +0000 Subject: [PATCH 38/44] Update 'Jenkinsfile' --- Jenkinsfile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e775313..f794d7c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,10 +22,3 @@ stages { } } - - - - - - - From 3465901f59f0e8ac33f70130a614a8f8c7206d7b Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 11 Oct 2022 08:47:05 -0400 Subject: [PATCH 39/44] testing --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 05dd3a1..78f4157 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,9 +11,9 @@ stages { steps{ sh 'echo "ADASDASDSADSADASD"' sh '''#!/bin/bash - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --config=<( echo \"[registry.\\"registry.local\\"]\" \"insecure = true\" ) --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1 ) --use ''' - sh 'docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64' + sh 'docker buildx build . -t registry.local/rgbboard:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' } From 8578b418cf0a10a9cf45a049e8e138433de33209 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 11 Oct 2022 13:21:54 +0000 Subject: [PATCH 40/44] Update 'Jenkinsfile' --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9d519ff..5a40962 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh 'echo "ADASDASDSADSADASD"' sh '''#!/bin/bash - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1 ) --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1 --use ''' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' From d294d31ddb441a7e3a7bdee1958109f509415907 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 11 Oct 2022 09:29:30 -0400 Subject: [PATCH 41/44] QUOTES --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5a40962..d36c24f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh 'echo "ADASDASDSADSADASD"' sh '''#!/bin/bash - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1 --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1\\" --use ''' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' From 7d1f5c6fb8ad8cacf399be9ffe21399e452bc013 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 6 Dec 2022 18:37:04 +0000 Subject: [PATCH 42/44] Update 'Jenkinsfile' --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d36c24f..4cb16b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh 'echo "ADASDASDSADSADASD"' sh '''#!/bin/bash - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1\\" --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1-rootless\\" --use ''' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' From 222c39229abc1ca1cdf9bac0ed70d247bbbdbca8 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 6 Dec 2022 19:18:29 +0000 Subject: [PATCH 43/44] Update 'Jenkinsfile' --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4cb16b3..8d39d23 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh 'echo "ADASDASDSADSADASD"' sh '''#!/bin/bash - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-1-rootless\\" --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-2-rootless\\" --use ''' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent' From aeb78aa6b6bdcf6a6470a086da12953e9e8bd2f1 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 6 Dec 2022 19:39:27 +0000 Subject: [PATCH 44/44] Update 'Jenkinsfile' --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8d39d23..b79c79e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ stages { steps{ sh 'echo "ADASDASDSADSADASD"' sh '''#!/bin/bash - docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-2-rootless\\" --use + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-3-rootless\\" --use ''' sh 'docker buildx build . -t registry.local/rgbboard:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64' sh 'docker buildx rm jenkins-agent'