Skip to content

Commit

Permalink
Create org webhook for jenkins (#20)
Browse files Browse the repository at this point in the history
* Create org webhook for jenkins

Signed-off-by: Thomas Neidhart <[email protected]>

* Put webhooks at correct level.

Signed-off-by: Thomas Neidhart <[email protected]>

---------

Signed-off-by: Thomas Neidhart <[email protected]>
  • Loading branch information
netomi authored Oct 30, 2023
1 parent b5e634b commit 654f8f5
Showing 1 changed file with 9 additions and 44 deletions.
53 changes: 9 additions & 44 deletions otterdog/jetty.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ orgs.newOrg('jetty') {
actions_can_approve_pull_request_reviews: false,
},
},
webhooks+: [
orgs.newOrgWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
_repositories+:: [
orgs.newRepo('.github') {
allow_merge_commit: true,
Expand All @@ -42,15 +51,6 @@ orgs.newOrg('jetty') {
workflows+: {
enabled: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
},
orgs.newRepo('jetty.alpn.api') {
allow_merge_commit: true,
Expand All @@ -67,15 +67,6 @@ orgs.newOrg('jetty') {
workflows+: {
actions_can_approve_pull_request_reviews: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
},
orgs.newRepo('jetty.docker') {
allow_merge_commit: true,
Expand All @@ -89,14 +80,6 @@ orgs.newOrg('jetty') {
workflows+: {
actions_can_approve_pull_request_reviews: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
events+: [
"pull_request",
"push"
],
},
],
},
orgs.newRepo('jetty.parent') {
archived: true,
Expand Down Expand Up @@ -140,15 +123,6 @@ orgs.newOrg('jetty') {
workflows+: {
actions_can_approve_pull_request_reviews: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
rulesets: [
orgs.newRepoRuleset('protect-mainline-branches') {
allows_creations: true,
Expand Down Expand Up @@ -209,15 +183,6 @@ orgs.newOrg('jetty') {
workflows+: {
actions_can_approve_pull_request_reviews: false,
},
webhooks: [
orgs.newRepoWebhook('https://jenkins.webtide.net/github-webhook/') {
content_type: "json",
events+: [
"pull_request",
"push"
],
},
],
},
orgs.newRepo('jetty.website') {
allow_merge_commit: true,
Expand Down

1 comment on commit 654f8f5

@joakime
Copy link
Contributor

@joakime joakime commented on 654f8f5 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is not appropriate.

Not all of our projects are built on Jenkins CI.

Please sign in to comment.