Prefer --output-dir to -o
This commit is contained in:
@@ -28,7 +28,7 @@ You will now perform an audit against the bootstrapped Azure DevOps project. Ans
|
|||||||
2. Run the following command from the root directory:
|
2. Run the following command from the root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet audit azure-devops --output-dir tmp/audit --namespace valet
|
gh valet audit azure-devops --output-dir tmp/audit
|
||||||
```
|
```
|
||||||
|
|
||||||
__Note__: The Azure DevOps organization and project name can be omitted from the `audit` command because they were persisted in the `.env.local` file in the [configure lab](./1-configure.md). You can optionally provide these arguments on the command line with the `--azure-devops-organization` and `--azure-devops-project` CLI options.
|
__Note__: The Azure DevOps organization and project name can be omitted from the `audit` command because they were persisted in the `.env.local` file in the [configure lab](./1-configure.md). You can optionally provide these arguments on the command line with the `--azure-devops-organization` and `--azure-devops-project` CLI options.
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ In this lab you will use the `dry-run` command to convert an Azure DevOps pipeli
|
|||||||
You will perform a dry run for a pipeline in the bootstrapped Azure DevOps project. Answer the following questions before running this command:
|
You will perform a dry run for a pipeline in the bootstrapped Azure DevOps project. Answer the following questions before running this command:
|
||||||
|
|
||||||
1. What is the id of the pipeline to convert?
|
1. What is the id of the pipeline to convert?
|
||||||
- __:id__. This id can be found by:
|
- __:pipeline_id__. This id can be found by:
|
||||||
- Navigating to the build pipelines in the bootstrapped Azure DevOps project <https://dev.azure.com/:organization/:project/_build>
|
- Navigating to the build pipelines in the bootstrapped Azure DevOps project <https://dev.azure.com/:organization/:project/_build>
|
||||||
- Selecting the pipeline with the name "valet-pipeline1"
|
- Selecting the pipeline with the name "valet-pipeline1"
|
||||||
- Inspecting the URL to locate the pipeline id <https://dev.azure.com/:organization/:project/_build?definitionId=:pipeline_id>
|
- Inspecting the URL to locate the pipeline id <https://dev.azure.com/:organization/:project/_build?definitionId=:pipeline_id>
|
||||||
@@ -27,7 +27,7 @@ You will perform a dry run for a pipeline in the bootstrapped Azure DevOps proje
|
|||||||
2. Run the following command from the root directory:
|
2. Run the following command from the root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet dry-run azure-devops pipeline --pipeline-id :pipeline_id -o tmp/dry-run-lab
|
gh valet dry-run azure-devops pipeline --pipeline-id :pipeline_id --output-dir tmp/dry-run-lab
|
||||||
```
|
```
|
||||||
|
|
||||||
3. The command will list all the files written to disk when the command succeeds.
|
3. The command will list all the files written to disk when the command succeeds.
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ You will perform a dry-run for a pipeline in the bootstrapped Azure DevOps proje
|
|||||||
2. Run the following command from the root directory:
|
2. Run the following command from the root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet dry-run azure-devops pipeline --pipeline-id :pipeline_id -o tmp/dry-run-lab
|
gh valet dry-run azure-devops pipeline --pipeline-id :pipeline_id --output-dir tmp/dry-run-lab
|
||||||
```
|
```
|
||||||
|
|
||||||
3. The command will list all the files written to disk when the command succeeds.
|
3. The command will list all the files written to disk when the command succeeds.
|
||||||
@@ -127,7 +127,7 @@ This method can use any valid ruby syntax and should return a `Hash` that repres
|
|||||||
Now you can perform another `dry-run` command and use the `--custom-transformers` CLI option to provide this custom transformer. Run the following command within your codespace terminal:
|
Now you can perform another `dry-run` command and use the `--custom-transformers` CLI option to provide this custom transformer. Run the following command within your codespace terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet dry-run azure-devops pipeline --pipeline-id :pipeline_id -o tmp/dry-run-lab --custom-transformers transformers.rb
|
gh valet dry-run azure-devops pipeline --pipeline-id :pipeline_id --output-dir tmp/dry-run-lab --custom-transformers transformers.rb
|
||||||
```
|
```
|
||||||
|
|
||||||
Open the workflow that is generated and inspect the contents. Now the `DotnetCoreCLI@2` steps are converted using the customized behavior!
|
Open the workflow that is generated and inspect the contents. Now the `DotnetCoreCLI@2` steps are converted using the customized behavior!
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ Answer the following questions before running the `forecast` command:
|
|||||||
5. Run the following `forecast` command while specifying the path to the sample json files:
|
5. Run the following `forecast` command while specifying the path to the sample json files:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet forecast azure-devops -o ./tmp/forecast_reports --source-file-path azure_devops/bootstrap/jobs.json
|
gh valet forecast azure-devops --output-dir ./tmp/forecast_reports --source-file-path azure_devops/bootstrap/jobs.json
|
||||||
```
|
```
|
||||||
|
|
||||||
6. The command will list all the files written to disk when the command succeeds.
|
6. The command will list all the files written to disk when the command succeeds.
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ You can use the `--source-file-path` CLI option to combine data from multiple re
|
|||||||
Run the following command from within the codespace terminal:
|
Run the following command from within the codespace terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet forecast --source-file-path tmp/**/jobs/*.json -o tmp/combined-forecast
|
gh valet forecast --source-file-path tmp/**/jobs/*.json --output-dir tmp/combined-forecast
|
||||||
```
|
```
|
||||||
|
|
||||||
You can now inspect the output of the command to see a forecast report using all of the files matching the `tmp/**/jobs/*.json` pattern.
|
You can now inspect the output of the command to see a forecast report using all of the files matching the `tmp/**/jobs/*.json` pattern.
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ You will be performing a dry run against a pipeline in your preconfigured Jenkin
|
|||||||
2. Run the following command from the root directory:
|
2. Run the following command from the root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet dry-run jenkins --source-url http://localhost:8080/job/test_pipeline -o .tmp/jenkins/dry-run
|
gh valet dry-run jenkins --source-url http://localhost:8080/job/test_pipeline --output-dir .tmp/jenkins/dry-run
|
||||||
```
|
```
|
||||||
|
|
||||||
3. The command will list all the files written to disk when the command succeeds.
|
3. The command will list all the files written to disk when the command succeeds.
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ In this lab you will build upon the `dry-run` command to override Valet's defaul
|
|||||||
You will be performing a `dry-run` command to inspect the workflow that is converted by default. Run the following command within the codespace terminal:
|
You will be performing a `dry-run` command to inspect the workflow that is converted by default. Run the following command within the codespace terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet dry-run jenkins --source-url http://localhost:8080/job/test_pipeline -o tmp/jenkins/dry-run
|
gh valet dry-run jenkins --source-url http://localhost:8080/job/test_pipeline --output-dir tmp/jenkins/dry-run
|
||||||
```
|
```
|
||||||
|
|
||||||
The converted workflow that is generated by the above command can be seen below:
|
The converted workflow that is generated by the above command can be seen below:
|
||||||
@@ -114,7 +114,7 @@ This method can use any valid ruby syntax and should return a `Hash` that repres
|
|||||||
Now you can perform another `dry-run` command and use the `--custom-transformers` CLI option to provide this custom transformer. Run the following command within your codespace terminal:
|
Now you can perform another `dry-run` command and use the `--custom-transformers` CLI option to provide this custom transformer. Run the following command within your codespace terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet dry-run jenkins --source-url http://localhost:8080/job/test_pipeline -o tmp/jenkins/dry-run --custom-transformers transformers.rb
|
gh valet dry-run jenkins --source-url http://localhost:8080/job/test_pipeline --output-dir tmp/jenkins/dry-run --custom-transformers transformers.rb
|
||||||
```
|
```
|
||||||
|
|
||||||
Open the workflow that is generated and inspect the contents. Now the `sleep` step is converted and uses the customized behavior!
|
Open the workflow that is generated and inspect the contents. Now the `sleep` step is converted and uses the customized behavior!
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ You can use the `--source-file-path` CLI option to combine data from multiple re
|
|||||||
Run the following command from within the codespace terminal:
|
Run the following command from within the codespace terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gh valet forecast --source-file-path tmp/**/jobs/*.json -o tmp/combined-forecast
|
gh valet forecast --source-file-path tmp/**/jobs/*.json --output-dir tmp/combined-forecast
|
||||||
```
|
```
|
||||||
|
|
||||||
You can now inspect the output of the command to see a forecast report using all of the files matching the `tmp/**/jobs/*.json` pattern.
|
You can now inspect the output of the command to see a forecast report using all of the files matching the `tmp/**/jobs/*.json` pattern.
|
||||||
|
|||||||
Reference in New Issue
Block a user