---
    name: "st2_workroom_st2enterprise_test_u14"
    description: "Test st2workroom on each commit to master"
    pack: "st2cd"
    enabled: true
    trigger:
        type: "GitHubWebhook.github_event"
    criteria:
        trigger.body.ref:
            pattern: "refs/heads/master"
            type: "equals"
        trigger.body.repository.full_name:
            pattern: "StackStorm/st2workroom"
            type: "equals"
    action:
        ref: "st2cd.st2workroom_st2enterprise_test"
        parameters:
            hostname: "st2w-master-st2enterprise-{{trigger.parameters.branch}}-u14-{{trigger.execution_id}}"
            build: "{{system.st2_master_build_number}}"
            version: "{{system.st2_unstable_version}}"
            environment: "sandbox"
            branch: "master"
            revision: "{{trigger.body.head_commit.id}}"
            repo: "https://github.com/StackStorm/st2workroom.git"
            distro: "UBUNTU14"

---
    name: "st2_workroom_st2enterprise_test_u14"
    description: "Test st2workroom on each commit to master"
    pack: "st2cd"
    enabled: true
    trigger:
        type: "GitHubWebhook.github_event"
    criteria:
        trigger.body.ref:
            pattern: "refs/heads/master"
            type: "equals"
        trigger.body.repository.full_name:
            pattern: "StackStorm/st2workroom"
            type: "equals"
    action:
        ref: "st2cd.st2workroom_st2enterprise_test"
        parameters:
            hostname: "st2w-st2enterprise-master-u14-{{trigger.body.head_commit.id | truncate(10, False, '')}}"
            build: "{{system.st2_master_build_number}}"
            version: "{{system.st2_unstable_version}}"
            environment: "sandbox"
            branch: "master"
            revision: "{{trigger.body.head_commit.id}}"
            repo: "https://github.com/StackStorm/st2workroom.git"
            distro: "UBUNTU14"

Fix hostname - no need to include branch twice.
Fix hostname - no need to include branch twice.
