Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(warning) Make sure to replace constants in this script – access keyskey, user ids, project keys, result file name, and others – with the data relevant to your Zephyr project.

...

  1. Log in to Bamboo, and go to your project and plan.

  2. Select On the plan screen, select Actions > Configure plan from the menu on the right:

    Configure a plan

  3. Select the stage and job to open the job editor.

  4. In the job editor, click Add task to append a new ask to the job:

    Append a task

  5. In the subsequent dialog box, type script in the search box (we will need this task), and then click Script to add the Script task to the job:

    Search for the Script task

  6. In the task propertiesproperty editor:
    - Specify the task description.
    - In the Interpreter box, select Shell.
    - From the Script location drop-down, select File.
    - In the Script file box, enter your script file name.
    - Save the changes.

    Configure the Script task's properties.

    You will see the new task in your job.

  7. It’s important that the integration script runs after the build and automated tests are over. A good practice to do this is to put tasks to the “Final tasks” section.
    To do this, simply drag the script task to Final tasks in the task editor:

    Moving the Script task to Final tasks.


That’s all. Now when you run your plan, the script will create (or update) an automation task in Zephyr and attach test results to it.

...