jenkinsfile.release: add openwrt packaging stage
@@ -312,6 +312,13 @@ def dockerInit() {
"./scripts/docker/website/Dockerfile",
false
)
+
+ /* Image to build openwrt package */
+ DOCKER_IMAGES.openwrt_sdk = dockerUtils.createDockerImageDesc(
+ 'openwrt-sdk', dockerUtils.&idTesting,
+ './scripts/docker/openwrt/sdk',
+ './scripts/docker/openwrt/sdk/Dockerfile'
+ )
}
}
@@ -362,6 +369,8 @@ def generateReleaseStages() {
true // use placeholder dirs
)
+ tasks << buildOpenwrtPackage(DOCKER_IMAGES.openwrt_sdk)
+
return tasks
}
@@ -677,6 +686,21 @@ def buildRelease(stageName, image, packageRevision='1',
}]
}
+
+def buildOpenwrtPackage(image) {
+ def stageName = 'build-openwrt-package'
+ return [(stageName): {
+ stage(stageName) {
+ withDockerEnv(image, [DockerOpts.MOUNT_MIRROR]) {
+ checkout scm
+ sh "./scripts/release/prepare-openwrt-makefile.sh /home/build/openwrt/package/feeds/packages/elektra/Makefile"
+ sh "cd /home/build/openwrt && make package/feeds/packages/elektra/compile V=sc"
+ deleteDir()
+ }
+ }
+ }]
+}
+
/**
* Tests installed packages in docker container and archives results
*
