Skip to content

Commit bde3008

Browse files
authored
Adding missing Jenkins Authentication example subcription template. (#331)
1 parent 0a7520b commit bde3008

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

src/main/resources/templates/subscriptionsTemplate.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"subscriptionName" : "Subscription1",
33
"ldapUserName" : "ABC",
44
"repeat" : false,
5-
"authenticationType" : "BASIC_AUTH",
5+
"authenticationType" : "BASIC_AUTH_JENKINS_CSRF",
66
"userName" : "functionalUser",
77
"password" : "functionalUserPassword",
88
"created" : 1542117412833,
@@ -54,7 +54,35 @@
5454
]
5555
},
5656
{
57-
"subscriptionName" : "Subscription3_Mail_Notification",
57+
"subscriptionName" : "Subscription3",
58+
"ldapUserName" : "ABC",
59+
"repeat" : false,
60+
"authenticationType" : "BASIC_AUTH",
61+
"userName" : "functionalUser",
62+
"password" : "functionalUserPassword",
63+
"created" : 1542117412834,
64+
"notificationType" : "REST_POST",
65+
"notificationMeta" : "http://somehost:8080/entrypoint/action",
66+
"restPostBodyMediaType" : "application/x-www-form-urlencoded",
67+
"notificationMessageKeyValues" : [
68+
{
69+
"formkey" : "json",
70+
"formvalue" : "{parameter: [{ name: 'jsonparams', value : to_string(@) }]}"
71+
}
72+
],
73+
"requirements" : [
74+
{
75+
"conditions" : [
76+
{
77+
"jmespath": "split(identity, '/') | [1] =='com.mycompany.myproduct'"
78+
}
79+
]
80+
}
81+
82+
]
83+
},
84+
{
85+
"subscriptionName" : "Subscription4_Mail_Notification",
5886
"ldapUserName" : "ABC",
5987
"repeat" : false,
6088
"authenticationType" : "NO_AUTH",

0 commit comments

Comments
 (0)