diff --git a/azure_devops/readme.md b/azure_devops/readme.md index 105e366..f8d250e 100644 --- a/azure_devops/readme.md +++ b/azure_devops/readme.md @@ -34,6 +34,7 @@ This lab bootstraps a Valet environment using GitHub Codespaces and enables you - Project and Team: `Read, Write, & Manage` - Release: `Read` - Service Connections: `Read` + - Task Groups (Read) - Variable Groups: `Read` - Click `Create` - Copy the PAT somewhere safe and temporary. diff --git a/azure_devops/valet-migrate-custom-lab.md b/azure_devops/valet-migrate-custom-lab.md index 8420a0e..eb7ca67 100644 --- a/azure_devops/valet-migrate-custom-lab.md +++ b/azure_devops/valet-migrate-custom-lab.md @@ -4,6 +4,7 @@ In this lab, you will create a custom plugin that transforms some of the existin - [Prerequisites](#prerequisites) - [Identify the Azure DevOps pipeline ID to use](#identify-the-azure-devops-pipeline-id-to-use) - [Create a custom transformer](#create-a-custom-transformer) +- [Migrate with a custom transformer](#migrate-with-a-custom-transformer) - [View the pull request](#view-the-pull-request) ## Prerequisites @@ -67,13 +68,13 @@ transform "DotNetCoreCLI@2" do |item| end ``` -Run the `migrate` command with the transformer again and pass it the custom plugin. Look at the result and see if it results in a successful build. +## Migrate with a custom transformer + +Run the `gh valet migrate` command from the `valet` directory with the transformer again and pass it the custom plugin. Look at the result and see if it results in a successful build. ``` -cd valet gh valet migrate azure-devops pipeline --target-url https://github.com/GITHUB-ORG/GITHUB-REPO --pipeline-id PIPELINE-ID --custom-transformers plugin/DotNetCoreCLI.rb --output-dir migrate ``` -Now, from the `./valet` folder in your repository, run `gh valet migrate` with the custom transformer to migrate the pipeline to GitHub Actions: ### Example ![valet-cm-1](https://user-images.githubusercontent.com/26442605/169618556-7c79b34b-6d4c-48d5-98e5-7f8d771117a5.png) diff --git a/azure_devops/valet-migrate-lab.md b/azure_devops/valet-migrate-lab.md index a068f15..3fa1029 100644 --- a/azure_devops/valet-migrate-lab.md +++ b/azure_devops/valet-migrate-lab.md @@ -33,9 +33,8 @@ You will use the codespace preconfigured in this repository to perform the migra - `GITHUB-ORG` with the name of your organization. - `GITHUB-REPO` with the name of your repository. - `PIPELINE-ID` with your pipeline ID. -4. Now, from the `./valet` folder in your repository, run `valet migrate` to migrate the pipeline to GitHub Actions. +4. Run `gh valet migrate` from the `valet` directory to migrate the pipeline to GitHub Actions.. ``` -cd valet gh valet migrate azure-devops pipeline --target-url https://github.com/GITHUB-ORG/GITHUB-REPO --pipeline-id PIPELINE-ID --output-dir migrate ```