|
| 1 | +# Copyright 2025 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +timeout: 7200s # 2 hours |
| 16 | +substitutions: |
| 17 | + _SHARED_DEPENDENCIES_VERSION: '3.30.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} |
| 18 | + _JAVA_SHARED_CONFIG_VERSION: '1.15.4' |
| 19 | +options: |
| 20 | + machineType: 'E2_HIGHCPU_8' |
| 21 | + logging: CLOUD_LOGGING_ONLY |
| 22 | +steps: |
| 23 | + - name: gcr.io/cloud-builders/docker |
| 24 | + args: [ |
| 25 | + "build", |
| 26 | + "-t", "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:${_SHARED_DEPENDENCIES_VERSION}", |
| 27 | + "--file", "graalvm_c.Dockerfile", |
| 28 | + "--build-arg", "JAVA_SHARED_CONFIG_VERSION=$_JAVA_SHARED_CONFIG_VERSION", |
| 29 | + "." |
| 30 | + ] |
| 31 | + dir: .cloudbuild/graalvm |
| 32 | + id: graalvm-c-build |
| 33 | + waitFor: ["-"] |
| 34 | + |
| 35 | + - name: gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:${_SHARED_DEPENDENCIES_VERSION} |
| 36 | + waitFor: [ "graalvm-c-build" ] |
| 37 | + entrypoint: java |
| 38 | + args: [ '-version' ] |
| 39 | + id: java-version |
| 40 | + |
| 41 | + - name: gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:${_SHARED_DEPENDENCIES_VERSION} |
| 42 | + entrypoint: bash |
| 43 | + args: [ './.kokoro/presubmit/downstream-build.sh' ] |
| 44 | + waitFor: [ "graalvm-c-build" ] |
| 45 | + id: native-java-kmsinventory |
| 46 | + env: |
| 47 | + - 'MODULES_UNDER_TEST=java-kmsinventory' |
| 48 | + - 'GOOGLE_CLOUD_PROJECT=java-graalvm-ci-prod' |
0 commit comments