This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ pipeline {
7474 sh ' make -f docker.Makefile gradle-test'
7575 }
7676 }
77+ post {
78+ always {
79+ deleteDir()
80+ }
81+ }
7782 }
7883 stage(" Test Linux" ) {
7984 agent {
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ build_dev_image:
2121shell : build_dev_image
2222 docker run -ti --rm $(IMAGE_NAME ) -dev bash
2323
24+ bin/$(BIN_NAME ) -linux : create_bin
25+ docker build --target=$(BIN_NAME ) -t $(IMAGE_NAME ) -bin $(IMAGE_BUILD_ARGS ) .
26+ $(eval containerID=$(shell docker create $(IMAGE_NAME ) -bin noop) )
27+ docker cp $(containerID ) :$(PKG_PATH ) /bin/$(BIN_NAME ) $@
28+ docker rm $(containerID )
29+ @chmod +x $@
30+
2431cross : create_bin
2532 docker build --target=$* -t $(IMAGE_NAME ) -cross $(IMAGE_BUILD_ARGS ) .
2633 $(eval containerID=$(shell docker create $(IMAGE_NAME ) -cross noop) )
@@ -67,7 +74,7 @@ coverage: build_dev_image
6774 docker cp $(containerID ) :$(PKG_PATH ) /_build/cov/ ./_build/ci-cov
6875 docker rm $(containerID )
6976
70- gradle-test : cross
77+ gradle-test : bin/ $( BIN_NAME ) -linux
7178 docker build -t $(IMAGE_NAME ) -bin -f Dockerfile.gradle .
7279 docker run --rm $(IMAGE_NAME ) -bin bash -c " ./gradlew --stacktrace build && cd example && gradle renderIt"
7380
You can’t perform that action at this time.
0 commit comments