Skip to content

Commit b3ef89d

Browse files
authored
Update pipeline to handle new infra (#1467)
1 parent 656c40d commit b3ef89d

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

eng/pipelines/dotnet-buildtools-prereqs-all.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ parameters:
1313
type: boolean
1414
default: false
1515

16+
- name: sourceBuildPipelineRunId
17+
displayName: >
18+
Source build pipeline run ID. This refers to runs of *this pipeline*.
19+
Override this parameter in combination with disabling the `Build` stage to
20+
test or publish images that were built in a different pipeline run. When
21+
building new images, leave this value alone.
22+
type: string
23+
default: $(Build.BuildId)
24+
1625
schedules:
1726
- cron: "0 5 1,15 * *"
1827
displayName: Monthly rebuild of all images
@@ -32,12 +41,18 @@ variables:
3241
- template: /eng/pipelines/variables/common.yml@self
3342
parameters:
3443
disableMatrixTrimming: ${{ parameters.disableMatrixTrimming }}
44+
sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }}
3545
- name: publishEolAnnotations
3646
value: true
3747

3848
extends:
3949
template: /eng/common/templates/1es-official.yml@self
4050
parameters:
51+
serviceConnections:
52+
- name: $(internal-mirror.serviceConnectionName)
53+
- name: $(build.serviceConnectionName)
54+
- name: $(publish.serviceConnectionName)
55+
- name: $(marStatus.serviceConnectionName)
4156
stages:
4257
- template: /eng/pipelines/stages/build-test-publish-repo.yml@self
4358
parameters:

eng/pipelines/variables/common.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@ parameters:
22
- name: disableMatrixTrimming
33
type: boolean
44
default: false
5+
# sourceBuildPipelineRunId should be overridden when skipping a build to run
6+
# tests or publish images that were produced in a different pipeline run.
7+
- name: sourceBuildPipelineRunId
8+
type: string
9+
default: ""
510

611
variables:
712
- template: /eng/common/templates/variables/dotnet/build-test-publish.yml@self
13+
parameters:
14+
sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }}
815
- name: officialBranches
916
# comma-delimited list of branch names
1017
value: main

src/cbl-mariner/2.0/android/amd64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG ANDROID_SDK_ROOT=/usr/local/android-sdk
22
ARG ANDROID_NDK_VERSION=23.2.8568313
33
ARG ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/$ANDROID_NDK_VERSION
4-
FROM mcr.microsoft.com/openjdk/jdk:17-mariner AS android-sdk-download
4+
FROM mcr.microsoft.com/openjdk/jdk:17-mariner-cm2 AS android-sdk-download
55
ARG ANDROID_SDK_ROOT
66
ARG ANDROID_NDK_VERSION
77
ARG ANDROID_NDK_ROOT
@@ -30,7 +30,7 @@ RUN /usr/local/cmdline-tools/cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_
3030
RUN rm -r ${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/site-packages/ \
3131
&& rm -r ${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-tidy
3232

33-
FROM mcr.microsoft.com/openjdk/jdk:17-mariner
33+
FROM mcr.microsoft.com/openjdk/jdk:17-mariner-cm2
3434
ARG ANDROID_SDK_ROOT
3535
ARG ANDROID_NDK_VERSION
3636
ARG ANDROID_NDK_ROOT

0 commit comments

Comments
 (0)