Skip to content

Commit afe565e

Browse files
committed
ServiceNow integration and accept file
1 parent 22991ac commit afe565e

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

README.relay.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Generally the naming works like:
8282
| **Bitbucket Hosted** | `BITBUCKET_API=https://bitbucket.mycompany.com`, `BITBUCKET_USERNAME`, `BITBUCKET_PASSWORD` |
8383
| **Jira** | `JIRA_API=https://jira.mycompany.com`, `JIRA_USERNAME`, `JIRA_TOKEN` |
8484
| **Jira Bearer/Cloud** | Arg `-s bearer`, `JIRA_API=https://mycompany.atlassian.com`, `JIRA_TOKEN` |
85+
| **ServiceNow** | `SERVICENOW_INSTANCE_NAME=my-instance` from "https://my-instance.service-now.com", `SERVICENOW_USERNAME`, `SERVICENOW_PASSWORD` |
8586

8687
## How it works
8788

agent/common/integration.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const (
2929
IntegrationSonarqube Integration = "sonarqube"
3030
IntegrationBitbucket Integration = "bitbucket"
3131
IntegrationPrometheus Integration = "prometheus"
32+
IntegrationServiceNow Integration = "servicenow"
3233
)
3334

3435
var subtypes = map[Integration][]string{
@@ -60,7 +61,7 @@ func ParseIntegration(s string) (Integration, error) {
6061
}
6162

6263
func ValidIntegrations() []Integration {
63-
return []Integration{IntegrationGithub, IntegrationJira, IntegrationGitlab, IntegrationBitbucket, IntegrationSonarqube, IntegrationPrometheus}
64+
return []Integration{IntegrationGithub, IntegrationJira, IntegrationGitlab, IntegrationBitbucket, IntegrationSonarqube, IntegrationPrometheus, IntegrationServiceNow}
6465
}
6566

6667
type IntegrationInfo struct {
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"private": [
3+
{
4+
"method": "any",
5+
"path": "/*",
6+
"origin": "https://${SERVICENOW_INSTANCE_NAME}.service-now.com",
7+
"auth": {
8+
"scheme": "basic",
9+
"username": "${SERVICENOW_USERNAME}",
10+
"password": "${SERVICENOW_PASSWORD}"
11+
}
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)