Files
importer-labs/bamboo/3-dry-run.md
T
2023-09-15 12:20:54 -06:00

1.9 KiB

Perform a dry-run migration of a Bamboo build plan.

In this lab you will use the dry-run command to convert a Bamboo build plan to its equivalent GitHub Actions workflow.

Prerequisites

  1. Followed the steps here to set up your GitHub Codespaces environment.
  2. Completed the configure lab.
  3. Completed the audit lab.

Perform a dry run

You will be performing a dry run against a single Bamboo pipeline. Answer the following questions before running this command:

  1. What is the planslug of the pipeline you want to convert?

    • MARS-ROCKET
  2. Where do you want to store the result?

    • tmp/dry-run. This can be any path within the working directory from which GitHub Actions Importer commands are executed.
  3. Which file would you like to convert?

    • bamboo/bootstrap/source_files/bamboo/bamboo.yml
  4. Are you converting a build or deployment plan?

    • The supplied configuration is a build plan.

Steps

  1. Navigate to your codespace terminal.

  2. Run the following command from the root directory:

    gh actions-importer dry-run bamboo build --source-file-path bamboo/bootstrap/source_files/bamboo/bamboo.yml -p MARS-ROCKET --output-dir tmp/dry-run
    
  3. The command will list all the files written to disk when the command succeeds.

    $ gh actions-importer dry-run bamboo build
    
  4. View the converted workflow:

    • Find tmp/dry-run/test_pipeline/.github/workflows in the file explorer pane in your codespace.
    • Click test_pipeline.yml to open.

Inspect the output files

The files generated from the dry-run command represent the equivalent Actions workflow for the provided Bamboo pipeline.

Next lab

Use the migrate command to open a PR with the supplied workflow.