|
44 | 44 | - name: RECIPE_IMAGE |
45 | 45 | description: The image from the build recipe to use |
46 | 46 | - name: BUILD_TOOL |
47 | | - description: The build tool to use. |
| 47 | + description: The build tool to use (ant, gradle, maven, sbt). |
| 48 | + - name: BUILD_TOOL_VERSION |
| 49 | + description: The build tool version to use (e.g. 3.9.5) |
| 50 | + - name: JAVA_VERSION |
| 51 | + description: Java version to use (7, 8, 9, 11, 17, 21, 22, 23) |
48 | 52 | - name: BUILD_PLUGINS |
49 | | - description: Comma separated list of build plugins that should be disabled. |
| 53 | + description: Optional comma separated list of build plugins that should be disabled. |
50 | 54 | default: "" |
51 | 55 | - name: BUILD_SCRIPT |
52 | 56 | description: The build script to embed with the Containerfile |
|
77 | 81 | cpu: 10m |
78 | 82 | memory: 512Mi |
79 | 83 | script: | |
80 | | - $(params.BUILD_SCRIPT) |
81 | | - /opt/jboss/container/java/run/run-java.sh $(params.BUILD_TOOL)-prepare $(workspaces.source.path)/source --recipe-image=$(params.RECIPE_IMAGE) --request-processor-image=$(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE) --disabled-plugins=$(params.BUILD_PLUGINS) |
| 84 | + /opt/jboss/container/java/run/run-java.sh $(params.BUILD_TOOL)-prepare --java-version=$(params.JAVA_VERSION) --build-tool-version=$(params.BUILD_TOOL_VERSION) --recipe-image=$(params.RECIPE_IMAGE) --request-processor-image=$(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE) --disabled-plugins=$(params.BUILD_PLUGINS) $(workspaces.source.path)/source |
| 85 | + env: |
| 86 | + - name: BUILD_SCRIPT |
| 87 | + value: $(params.BUILD_SCRIPT) |
82 | 88 | # TODO: Look at making this optional until we know whether we need to store source |
83 | 89 | - name: create-pre-build-source |
84 | 90 | image: $(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE) |
@@ -111,6 +117,8 @@ spec: |
111 | 117 | - --git-reuse-repository=$(params.GIT_REUSE_REPOSITORY) |
112 | 118 | - name: create-pre-build-image |
113 | 119 | image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:bc10298bff7805d8bc98211cd4534b9720f365f35ce0ef263dd65802de7ff036 |
| 120 | + # The build-trusted-artifacts container doesn't handle REGISTRY_TOKEN but the actual .docker/config.json. |
| 121 | + # Setting ORAS_OPTIONS to ensure the archive is compatible with jib (for OCIRepositoryClient) (to be removed) |
114 | 122 | script: | |
115 | 123 | echo "Creating pre-build-image archive with ORAS_OPTIONS $ORAS_OPTIONS" |
116 | 124 | export ORAS_OPTIONS="$ORAS_OPTIONS --image-spec=v1.0 --artifact-type application/vnd.oci.image.config.v1+json" |
|
0 commit comments