Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification end-point #867

Closed
srinivasupadhya opened this issue Feb 3, 2015 · 1 comment
Closed

Notification end-point #867

srinivasupadhya opened this issue Feb 3, 2015 · 1 comment

Comments

@srinivasupadhya
Copy link
Contributor

Go currently supports Email & CCTray notifications. There is scope wider coverage. This end-point provides ability to write Notification integrations to Go. Eg: Email, IM (Slack, HipChat, Google Talk etc.), IRC, RSS, XMPP, IDE, Web (Github, Stash etc.)


sample data:

{
  "pipeline": {
    "group": "pipeline-group",
    "name": "pipeline-name",
    "counter": "1",
    "build-cause": [
      {
        "material": {
          "git-configuration": {
            "branch": "branch",
            "url": "http:\/\/user:******@gitrepo.com"
          },
          "type": "git"
        },
        "changed": true,
        "modifications": [
          {
            "revision": "1",
            "modified-time": "2015-03-19T12:09:32.081Z",
            "data": {
            }
          }
        ]
      }
    ],
    "stage": {
      "name": "stage-name",
      "counter": "1",
      "state": "Passed",
      "result": "Passed",
      "create-time": "2011-07-13T19:43:37.100Z",
      "last-transition-time": "2011-07-13T19:43:37.100Z",
      "jobs": [
        {
          "name": "job-name",
          "schedule-time": "2011-07-13T19:43:37.100Z",
          "complete-time": "2011-07-13T19:43:37.100Z",
          "state": "Completed",
          "result": "Passed",
          "agent-uuid": "uuid"
        }
      ]
    }
  }
}

sample JSON for all types of materials:

      {
        "material": {
          "git-configuration": {
            "branch": "branch",
            "url": "http:\/\/user:******@gitrepo.com"
          },
          "type": "git"
        },

      },
      {
        "material": {
          "mercurial-configuration": {
            "url": "http:\/\/user:******@hgrepo.com"
          },
          "type": "mercurial"
        },

      },
      {
        "material": {
          "svn-configuration": {
            "username": "username",
            "check-externals": false,
            "url": "http:\/\/user:******@svnrepo.com"
          },
          "type": "svn"
        },

      },
      {
        "material": {
          "tfs-configuration": {
            "username": "username",
            "project-path": "project-path",
            "domain": "domain",
            "url": "http:\/\/user:******@tfsrepo.com"
          },
          "type": "tfs"
        },

      },
      {
        "material": {
          "perforce-configuration": {
            "username": "username",
            "use-tickets": false,
            "view": "view",
            "url": "127.0.0.1:1666"
          },
          "type": "perforce"
        },

      },
      {
        "material": {
          "pipeline-configuration": {
            "pipeline-name": "pipeline-name",
            "stage-name": "stage-name"
          },
          "type": "pipeline"
        },

      },
      {
        "material": {
          "plugin-id": "pluginid",
          "package-configuration": {
            "k3": "package-v1"
          },
          "type": "package",
          "repository-configuration": {
            "k1": "repo-v1"
          }
        },

      },
      {
        "material": {
          "plugin-id": "pluginid",
          "type": "scm",
          "scm-configuration": {
            "k1": "v1"
          }
        },

      }

References:

@srinivasupadhya srinivasupadhya added this to the Release 15.1 milestone Feb 3, 2015
srinivasupadhya added a commit to srinivasupadhya/gocd that referenced this issue Apr 1, 2015
…hould be delivered only when stage is scheduled & completed. currently its delivered on every job completion.
@arikagoyal
Copy link
Contributor

Bug fixes done. Closing the story

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants