diff --git a/tools/sdk-generation-pipeline/.github/workflows/ci.yml b/tools/sdk-generation-pipeline/.github/workflows/ci.yml index 5eb57796fa6..77a94014717 100644 --- a/tools/sdk-generation-pipeline/.github/workflows/ci.yml +++ b/tools/sdk-generation-pipeline/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: branches: [ "main" ] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 with: diff --git a/tools/sdk-generation-pipeline/Dockerfile b/tools/sdk-generation-pipeline/Dockerfile index 45805f8f419..13ba52a5a66 100644 --- a/tools/sdk-generation-pipeline/Dockerfile +++ b/tools/sdk-generation-pipeline/Dockerfile @@ -31,7 +31,7 @@ RUN apt install python3-pip -y && apt install python3-venv -y && pip3 install -- RUN add-apt-repository ppa:deadsnakes/ppa -y && apt-get install python3.10 -y && apt-get install python3.10-venv -y # install powershell -RUN wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb +RUN wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb RUN dpkg -i packages-microsoft-prod.deb RUN apt-get update && apt-get install -y powershell RUN rm packages-microsoft-prod.deb diff --git a/tools/sdk-generation-pipeline/ci.yml b/tools/sdk-generation-pipeline/ci.yml index 9bb7eadd008..b278182bc29 100644 --- a/tools/sdk-generation-pipeline/ci.yml +++ b/tools/sdk-generation-pipeline/ci.yml @@ -42,8 +42,8 @@ variables: value: $(Build.ArtifactStagingDirectory) pool: - name: "azsdk-pool-mms-ubuntu-2004-general" - vmImage: "MMSUbuntu20.04" + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 stages: - stage: Build diff --git a/tools/sdk-generation-pipeline/documents/task-engine/README.md b/tools/sdk-generation-pipeline/documents/task-engine/README.md index ff15c484a3c..03f0c7ac3c3 100644 --- a/tools/sdk-generation-pipeline/documents/task-engine/README.md +++ b/tools/sdk-generation-pipeline/documents/task-engine/README.md @@ -20,7 +20,7 @@ SDK Automation is launched in azure pipeline. It runs tasks in the following ste ### CodegenToSdkConfig This is type of file `./codegen_to_sdk_config.json` in sdk repo. -The running environment of these scripts would be expected to be __Ubuntu 20.04__ on Azure Pipeline. This may change in the future. All the running script should be executable. +The running environment of these scripts would be expected to be __Ubuntu 22.04__ on Azure Pipeline. This may change in the future. All the running script should be executable. The working folder of all the scripts is the __root folder of sdk repo__. #### CodegenToSdkConfig Example diff --git a/tools/sdk-generation-pipeline/sdk-generation-pipeline.yml b/tools/sdk-generation-pipeline/sdk-generation-pipeline.yml index ef717a331b3..c0eb5f4c4a2 100644 --- a/tools/sdk-generation-pipeline/sdk-generation-pipeline.yml +++ b/tools/sdk-generation-pipeline/sdk-generation-pipeline.yml @@ -82,8 +82,8 @@ stages: jobs: - job: SdkGeneration pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 timeoutInMinutes: 180 displayName: ${{ parameters.sdkToGenerate }}-${{ parameters.serviceType }}-${{ parameters.service }} steps: