You can execute a pipeline task which creates a Bugzilla task. You can use the output properties of the Bugzilla task in subsequent tasks in a release pipeline.

About this task

You can export and import a pipeline model containing a Bugzilla task.

Prerequisites

  • Verify that the Bugzila server endpoint is registered. See the Installation and Configuration guide.

  • Verify that the Bugzilla server version is 5.0.1 or later.

Procedure

  1. Click the Code Stream tab.
  2. Select an existing pipeline to configure from the Pipeline tab.
  3. Select Edit > Stages.
  4. Select Add Task.
  5. Select Bugzilla from the Provider drop-down menu.
  6. Enter a name for the task and click OK.
  7. Select the new task from the stage column.
  8. Confirm to save the pipeline.
  9. Select an Execute Task for the release pipeline.

    Option

    Description

    Always

    Runs the release pipeline task without conditions.

    On Condition(s)

    Runs the release pipeline task only if the defined condition is evaluated as true. If the condition is false, the task is skipped.

    A boolean expression using the following operands and operators is supported.

    • Pipeline variables such as, ${pipeline.variableName}. Curly brackets are reserved for specifying pipeline variables.

    • Task output variables such as, ${Stage1.task1.machines[0].value.hostIp[0]}

    • Default pipeline binding variables such as, ${releasePipelineName}

    • Case insensitive Boolean values such as, true, false, 'true', 'false'

    • Integer or decimal values without quotes

    • String values used with single or double quotes such as, "test", 'test'

    • String and Numeric types of values such as, == Equals and != Not Equals

    • Relational operators such as, > , >=, <, and <=

    • Boolean logic such as, && and ||

    • Arithmetic operators such as, +, -, *, and /

    • Nested expressions using round brackets

    • Strings with literal value ABCD is evaluated as false and the task is skipped.

    Unary operators are not supported.

    A sample condition, ${Stage1.task1.output} == “Passed” || ${pipeline.variableName} == 39

  10. (Optional) : Select the Continue Pipeline execution even if this task fails option .

    This option allows the release pipeline to bypass the failed task and continue with the execution process.

  11. Select the Bugzilla endpoint from the Endpoint drop-down menu.
  12. Select the action you want to perform.

    You can create or update a bug.

Output Format for a Bugzilla Task

The following task output format is an example for a Bugzilla task.

[
  {
    "name": "id",
    "type": "INTEGER",
    "description": "Bug ID",
    "value": "153"
  },
  {
    "name": "bugURL",
    "type": "STRING",
    "description": "BugUrl",
    "value": "http://bugzilla.example.com/show_bug.cgi?id=153"
  },
  {
    "name": "status",
    "type": "STRING",
    "description": "Bug Status",
    "value": "RESOLVED"
  },
  {
    "name": "product",
    "type": "STRING",
    "description": "Product the bug is filed under",
    "value": "vRealize Code Stream"
  },
  {
    "name": "assigned_to",
    "type": "String",
    "description": "Bug Assignee",
    "value": "user@example.com"
  }
]