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:
@@ -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,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
|
||||

|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user