Updating Azure DevOps scopes (#6)

* Update readme.md

* Update valet-migrate-lab.md

* Update valet-migrate-custom-lab.md

* Update valet-migrate-custom-lab.md

* Update azure_devops/valet-migrate-lab.md

Co-authored-by: Ethan Dennis <[email protected]>

* Update azure_devops/valet-migrate-custom-lab.md

Co-authored-by: Ethan Dennis <[email protected]>

Co-authored-by: Ethan Dennis <[email protected]>
This commit is contained in:
dkalmin
2022-06-30 12:37:28 -07:00
committed by GitHub
co-authored by Ethan Dennis
parent 51a48230c3
commit 7f5fd852e3
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -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.
+4 -3
View File
@@ -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)
+1 -2
View File
@@ -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
```