gitea avatar is working, I think. matrix failed because I have matrix.server
All checks were successful
beefhavers/potterverse-wizards-are-morons/pipeline/head This commit looks good
All checks were successful
beefhavers/potterverse-wizards-are-morons/pipeline/head This commit looks good
This commit is contained in:
parent
6e2c5c94a5
commit
cf30b79983
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -28,14 +28,14 @@ pipeline {
|
||||
|
||||
//to matrix
|
||||
env.avatarMXC=sh(returnStdout: true, script: """
|
||||
curl 'https://matrix.server/_matrix/media/v3/upload?filename=potterverse-wizards-are-morons-avatar.png' \
|
||||
curl 'https://greyn.club:8448/_matrix/media/v3/upload?filename=potterverse-wizards-are-morons-avatar.png' \
|
||||
-X 'POST' \
|
||||
-H 'authorization: Bearer ${env.JENKINSONMATRIXTOKEN}' \
|
||||
-H 'Content-Type: image/png' \
|
||||
--compressed \
|
||||
--data-binary @meta/avatar.png \
|
||||
| jq .content_uri
|
||||
""").trim
|
||||
""").trim()
|
||||
|
||||
sh(returnStdout: true, script: """
|
||||
curl -X 'PUT' \
|
||||
|
BIN
meta/avatar.png
BIN
meta/avatar.png
Binary file not shown.
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 22 KiB |
Loading…
Reference in New Issue
Block a user