Last active
August 29, 2015 14:11
-
-
Save jfryman/8ed6d783a7095824a519 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: 'st2.webhook.cicd.github.events' | |
description: 'Webhook listening for pushes to our CI/CD (SeatShare) repository' | |
trigger: | |
type: core.st2.webhook | |
parameters: | |
url: cicd/github/events | |
criteria: | |
trigger.body.hook.events: | |
pattern: push | |
type: equals | |
action: | |
ref: jenkins.build_job | |
parameters: | |
project: {{trigger.body.repository.name}} | |
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> use st2 | |
switched to db st2 | |
> show collections | |
action_d_b | |
action_execution_d_b | |
action_execution_history_d_b | |
key_value_pair_d_b | |
rule_d_b | |
runner_type_d_b | |
sensor_type_d_b | |
system.indexes | |
token_d_b | |
trigger_d_b | |
trigger_instance_d_b | |
trigger_type_d_b | |
user_d_b | |
> db.trigger_d_b.find() | |
{ "_id" : ObjectId("5489ffa9dc837b44b2f8e2cc"), "name" : "head_sha_monitor", "pack" : "git", "type" : "git.head_sha_monitor", "parameters" : { } } | |
{ "_id" : ObjectId("5489ffa9dc837b44b2f8e2cf"), "name" : "container_tracker.started", "pack" : "docker", "type" : "docker.container_tracker.started", "parameters" : { } } | |
{ "_id" : ObjectId("5489ffa9dc837b44b2f8e2d1"), "name" : "container_tracker.stopped", "pack" : "docker", "type" : "docker.container_tracker.stopped", "parameters" : { } } | |
{ "_id" : ObjectId("548a034edc837b5c6b33611d"), "name" : "st2.generic.actiontrigger", "pack" : "core", "type" : "core.st2.generic.actiontrigger", "parameters" : { } } | |
{ "_id" : ObjectId("548a0a15dc837b04d239481a"), "name" : "66b0ff06-62d2-4055-bf87-ec401e5b2c66", "pack" : "core", "type" : "core.st2.webhook", "parameters" : { "url" : "github/pulls/merge" } } | |
{ "_id" : ObjectId("548a0a15dc837b04d239481c"), "name" : "43ba8da1-df63-4d26-b84e-19fa4ec5bc29", "pack" : "sensu", "type" : "sensu.event_handler", "parameters" : { } } | |
{ "_id" : ObjectId("548a2a07dc837b438b07d8dc"), "name" : "597e8791-3e4e-49e3-95d1-5aff6bd8e8df", "pack" : "core", "type" : "core.st2.webhook", "parameters" : { "url" : "cicd/github/events" } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment