@@ -262,7 +262,20 @@ def k8sTest(Map args = [:]) {
262262}
263263
264264/**
265- * This method runs the packaging
265+ * This method runs the packaging for ARM
266+ */
267+ def packagingArm (Map args = [:]) {
268+ def PLATFORMS = [ ' linux/arm64' ]. join(' ' )
269+ withEnv([
270+ " PLATFORMS=${ PLATFORMS} " ,
271+ " PACKAGES=docker"
272+ ]) {
273+ target(args)
274+ }
275+ }
276+
277+ /**
278+ * This method runs the packaging for Linux
266279*/
267280def packagingLinux (Map args = [:]) {
268281 def PLATFORMS = [ ' +all' ,
@@ -286,7 +299,6 @@ def packagingLinux(Map args = [:]) {
286299 }
287300}
288301
289-
290302/**
291303* Upload the packages to their snapshot or pull request buckets
292304* @param beatsFolder beats folder
@@ -922,6 +934,17 @@ class RunCommand extends co.elastic.beats.BeatsFunction {
922934 if (args?. content?. containsKey(' mage' )) {
923935 steps. target(context : args. context, command : args. content. mage, directory : args. project, label : args. label, withModule : withModule, isMage : true , id : args. id)
924936 }
937+ if (args?. content?. containsKey(' packaging-arm' )) {
938+ steps. packagingArm(context : args. context,
939+ command : args. content. get(' packaging-arm' ),
940+ directory : args. project,
941+ label : args. label,
942+ isMage : true ,
943+ id : args. id,
944+ e2e : args. content. get(' e2e' ),
945+ package : true ,
946+ dockerArch : ' arm64' )
947+ }
925948 if (args?. content?. containsKey(' packaging-linux' )) {
926949 steps. packagingLinux(context : args. context,
927950 command : args. content. get(' packaging-linux' ),
0 commit comments