commit 42df0b46cda48e7e5a63318119741fa465561948
parent 3628a917949ede5868b587c6691383e0abeac5be
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Wed, 25 Feb 2026 22:50:24 +0100
feat(Jenkinsfile): build for arm and amd
Diffstat:
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
@@ -1,18 +1,28 @@
@Library('in0rdr-jenkins-lib@master') _
-//def buildahbud = new BuildahBud(this)
-//def buildahpush = new BuildahPush(this)
+def build() {
+ /*
+ def buildahbud = new BuildahBud(this)
+ def buildahpush = new BuildahPush(this)
+
+ // build with image context and name
+ buildahbud.execute(
+ [uid: 1312, gid: 1312],
+ 'docker/docker-jenkins-inbound-agent',
+ 'jenkins-inbound-agent',
+ '3327.v868139a_d00e0-v4')
+ buildahpush.execute('jenkins-inbound-agent', '3327.v868139a_d00e0-v4')
+ */
+}
-// only build for arm64
node('podman&&arm64'){
checkout scm
gitleaks()
+ build()
+}
- // build with image context and name
- //buildahbud.execute(
- // [uid: 1312, gid: 1312],
- // 'docker/docker-jenkins-inbound-agent',
- // 'jenkins-inbound-agent',
- // '3327.v868139a_d00e0-v4')
- //buildahpush.execute('jenkins-inbound-agent', '3327.v868139a_d00e0-v4')
+node('podman&&amd64'){
+ checkout scm
+ gitleaks()
+ build()
}