Skip to content

Commit 17b3879

Browse files
jbtrystramjlebon
authored andcommitted
docs/hacking: Add matrix-webhook secret and use it in jobs/bodhi-trigger
1 parent 784d18d commit 17b3879

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

HACKING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@ oc annotate secret/resultsdb-auth \
9292
jenkins.io/credentials-description="ResultsDB authentication"
9393
```
9494

95+
### Create Fedora Matrix notifications secret
96+
97+
```
98+
MATRIX_BOT_TOKEN=auth_token
99+
MATRIX_BOT_WEBHOOK_URL=url
100+
oc create secret generic matrix-bot-webhook-token \
101+
--from-literal=username=${MATRIX_BOT_WEBHOOK} \
102+
--from-literal=password=${MATRIX_BOT_TOKEN}
103+
oc label secret/matrix-bot-webhook-token \
104+
jenkins.io/credentials-type=usernamePassword
105+
oc annotate secret/matrix-bot-webhook-token \
106+
jenkins.io/credentials-description="Token for fedora matrix bot webhook"
107+
```
108+
95109
### Create pipeline configmap
96110

97111
Run:

jobs/bodhi-trigger.Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ cosaPod(cpu: "0.1", kvm: false) {
189189
""")
190190
}
191191
if (test.result != 'SUCCESS') {
192-
matrixSendMessage(hostname: 'fedora.im', accessTokenCredentialsId: 'CREDS', roomId: 'ROOM', body: "${currentBuild.description} - ${outcome}")
192+
pipeutils.matrixSend("${currentBuild.description} - ${outcome}")
193193
}
194194
}
195195

0 commit comments

Comments
 (0)