From c3f59c30039bd05d010c57c7feea4818c47230cd Mon Sep 17 00:00:00 2001 From: Davis Goodin Date: Wed, 8 Jul 2026 13:44:10 -0700 Subject: [PATCH] Include default value for _info, use template --- ...cleanup-acr-images-pipeline-unofficial.yml | 1 + eng/pipeline/cleanup-acr-images-pipeline.yml | 1 + eng/pipeline/cleanup-acr-images.gen.yml | 7 ++--- ...r-rolling-internal-pipeline-unofficial.yml | 1 + .../go-docker-rolling-internal-pipeline.yml | 1 + .../go-docker-rolling-internal.gen.yml | 7 ++--- ...nternal-validation-pipeline-unofficial.yml | 1 + .../rolling-internal-validation-pipeline.yml | 1 + .../rolling-internal-validation.gen.yml | 7 ++--- eng/pipeline/util/info.gen.yml | 26 +++++++++++++++++++ 10 files changed, 38 insertions(+), 15 deletions(-) create mode 100644 eng/pipeline/util/info.gen.yml diff --git a/eng/pipeline/cleanup-acr-images-pipeline-unofficial.yml b/eng/pipeline/cleanup-acr-images-pipeline-unofficial.yml index ab62de73..43cdaa4d 100644 --- a/eng/pipeline/cleanup-acr-images-pipeline-unofficial.yml +++ b/eng/pipeline/cleanup-acr-images-pipeline-unofficial.yml @@ -16,6 +16,7 @@ parameters: type: string values: - "\U0001F535 cleanup-acr-images-pipeline-unofficial.yml \U0001F535 \U0001F535" + default: "\U0001F535 cleanup-acr-images-pipeline-unofficial.yml \U0001F535 \U0001F535" - name: enableDryRun displayName: Dry run. Use this to see what would be deleted without performing the deletion. default: true diff --git a/eng/pipeline/cleanup-acr-images-pipeline.yml b/eng/pipeline/cleanup-acr-images-pipeline.yml index 44d82594..03ab3238 100644 --- a/eng/pipeline/cleanup-acr-images-pipeline.yml +++ b/eng/pipeline/cleanup-acr-images-pipeline.yml @@ -16,6 +16,7 @@ parameters: type: string values: - "\U0001F535 cleanup-acr-images-pipeline.yml \U0001F535 \U0001F535" + default: "\U0001F535 cleanup-acr-images-pipeline.yml \U0001F535 \U0001F535" - name: enableDryRun displayName: Dry run. Use this to see what would be deleted without performing the deletion. default: false diff --git a/eng/pipeline/cleanup-acr-images.gen.yml b/eng/pipeline/cleanup-acr-images.gen.yml index 5a67e794..fc031600 100644 --- a/eng/pipeline/cleanup-acr-images.gen.yml +++ b/eng/pipeline/cleanup-acr-images.gen.yml @@ -19,11 +19,8 @@ trigger: none pr: none parameters: - - name: _info - displayName: ℹ️ This pipeline cleans up old images in our Azure Container Registries. - type: string - values: - - ${ cat "🔵 " .output " 🔵 🔵" } + - ${ inlinetemplate "util/info.gen.yml" }: + desc: This pipeline cleans up old images in our Azure Container Registries. - name: enableDryRun displayName: Dry run. Use this to see what would be deleted without performing the deletion. diff --git a/eng/pipeline/go-docker-rolling-internal-pipeline-unofficial.yml b/eng/pipeline/go-docker-rolling-internal-pipeline-unofficial.yml index 19fcad5c..003e6d1c 100644 --- a/eng/pipeline/go-docker-rolling-internal-pipeline-unofficial.yml +++ b/eng/pipeline/go-docker-rolling-internal-pipeline-unofficial.yml @@ -17,6 +17,7 @@ parameters: type: string values: - "\U0001F535 go-docker-rolling-internal-pipeline-unofficial.yml \U0001F535 \U0001F535" + default: "\U0001F535 go-docker-rolling-internal-pipeline-unofficial.yml \U0001F535 \U0001F535" - name: sourceBuildPipelineRunId displayName: > The run ID (build ID) that produced the images that this run should publish. Use the default value to build and publish new images during this run. diff --git a/eng/pipeline/go-docker-rolling-internal-pipeline.yml b/eng/pipeline/go-docker-rolling-internal-pipeline.yml index a7cbd182..26a7d23b 100644 --- a/eng/pipeline/go-docker-rolling-internal-pipeline.yml +++ b/eng/pipeline/go-docker-rolling-internal-pipeline.yml @@ -23,6 +23,7 @@ parameters: type: string values: - "\U0001F535 go-docker-rolling-internal-pipeline.yml \U0001F535 \U0001F535" + default: "\U0001F535 go-docker-rolling-internal-pipeline.yml \U0001F535 \U0001F535" - name: sourceBuildPipelineRunId displayName: > The run ID (build ID) that produced the images that this run should publish. Use the default value to build and publish new images during this run. diff --git a/eng/pipeline/go-docker-rolling-internal.gen.yml b/eng/pipeline/go-docker-rolling-internal.gen.yml index 228b4cb5..52206d60 100644 --- a/eng/pipeline/go-docker-rolling-internal.gen.yml +++ b/eng/pipeline/go-docker-rolling-internal.gen.yml @@ -29,11 +29,8 @@ schedules: always: true parameters: - - name: _info - displayName: ℹ️ This pipeline builds and publishes the Microsoft build of Go images. - type: string - values: - - ${ cat "🔵 " .output " 🔵 🔵" } + - ${ inlinetemplate "util/info.gen.yml" }: + desc: This pipeline builds and publishes the Microsoft build of Go images. - name: sourceBuildPipelineRunId displayName: > diff --git a/eng/pipeline/rolling-internal-validation-pipeline-unofficial.yml b/eng/pipeline/rolling-internal-validation-pipeline-unofficial.yml index b60be04b..bfa33dd6 100644 --- a/eng/pipeline/rolling-internal-validation-pipeline-unofficial.yml +++ b/eng/pipeline/rolling-internal-validation-pipeline-unofficial.yml @@ -16,6 +16,7 @@ parameters: type: string values: - "\U0001F535 rolling-internal-validation-pipeline-unofficial.yml \U0001F535 \U0001F535" + default: "\U0001F535 rolling-internal-validation-pipeline-unofficial.yml \U0001F535 \U0001F535" - name: enableCodeQL displayName: > [Debug input] Force CodeQL to run, ignoring its built-in skip cadence. Use this to try modifications in dev branches. diff --git a/eng/pipeline/rolling-internal-validation-pipeline.yml b/eng/pipeline/rolling-internal-validation-pipeline.yml index 63ecd08b..105a7482 100644 --- a/eng/pipeline/rolling-internal-validation-pipeline.yml +++ b/eng/pipeline/rolling-internal-validation-pipeline.yml @@ -16,6 +16,7 @@ parameters: type: string values: - "\U0001F535 rolling-internal-validation-pipeline.yml \U0001F535 \U0001F535" + default: "\U0001F535 rolling-internal-validation-pipeline.yml \U0001F535 \U0001F535" - name: enableCodeQL displayName: > [Debug input] Force CodeQL to run, ignoring its built-in skip cadence. Use this to try modifications in dev branches. diff --git a/eng/pipeline/rolling-internal-validation.gen.yml b/eng/pipeline/rolling-internal-validation.gen.yml index 469bed75..c977662c 100644 --- a/eng/pipeline/rolling-internal-validation.gen.yml +++ b/eng/pipeline/rolling-internal-validation.gen.yml @@ -19,11 +19,8 @@ trigger: none pr: none parameters: - - name: _info - displayName: ℹ️ This pipeline runs rolling validation, like CodeQL. - type: string - values: - - ${ cat "🔵 " .output " 🔵 🔵" } + - ${ inlinetemplate "util/info.gen.yml" }: + desc: This pipeline runs rolling validation, like CodeQL. - name: enableCodeQL displayName: > diff --git a/eng/pipeline/util/info.gen.yml b/eng/pipeline/util/info.gen.yml new file mode 100644 index 00000000..156ddf34 --- /dev/null +++ b/eng/pipeline/util/info.gen.yml @@ -0,0 +1,26 @@ +# Copyright (c) Microsoft Corporation. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +# This pipelineymlgen template creates a placeholder parameter object that shows +# important information to the user who hit the "Run" button so they can make a +# more informed decision about whether they should use this pipeline. +# +# data inputs: +# - desc - The description text to include. +# - output - An output file of the template. Generally a pipeline .gen.yml file +# will automatically populate this data. +# +# The value is chosen to make it seem less out of place: +# +# The emoji fits in with the radio selection that shows up in the Run dialog to +# obscure the oddity of a single-option choice. The yml filename is included +# because it's technically potentially useful and fits in, even though it's +# likely not important. + +name: _info +displayName: ${ cat "ℹ️" .desc } +type: string +values: + - ${ cat "🔵 " .output " 🔵 🔵" } +default: ${ cat "🔵 " .output " 🔵 🔵" }