yamlazure-pipelinesazure-pipelines-build-task

Azure pipeline interface


Is there a way to create a form like interface using Azure pipeline like the image shown below So that every time I run the pipeline this form comes up ad let me choose the values for the fields defined

enter image description here

I know the question is very vague, but any help regarding this is greatly appreciated


Solution

  • Is there a way to create a form like interface using Azure pipeline like the image shown below So that every time I run the pipeline this form comes up ad let me choose the values for the fields defined.

    I am afraid that there is no such method could create a form to select the value.

    But Azure Pipeline supports selecting values at runtime.

    You could use parameters to create selection lists.

    Here is an example:

    parameters:
    - name: image
      displayName: Pool Image
      type: string
      default: ubuntu-latest
      values:
      - windows-latest
      - vs2017-win2016
      - ubuntu-latest
      - ubuntu-16.04
      - macOS-latest
      - macOS-10.14
    
    
    - name: test
      displayName: Test for parameters
      type: string
      default: value1
      values:
      - value2
      - value3
      - value4
      - value5
    
    
    trigger: none
    
    jobs:
    - job: build
      displayName: build
      pool: 
        vmImage: ${{ parameters.image }}
      steps:
      - script: echo building $(Build.BuildNumber) with ${{ parameters.image }}
    

    Then when you run the pipeline, you will see the selection lists.

    Run Pipeline

    By the way , when you quote parameters, you can use the following format:${{ parameters.parametername }}

    Here is a doc about parameters.

    Hope this helps.