diff --git a/Jenkinsfile b/Jenkinsfile index 3fcf349..77b1874 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,20 +21,20 @@ pipeline { -H 'accept: application/json' \ -H 'Authorization: token ${env.JENKINSONGITEA}' \ -H 'Content-Type: application/json' \ - --data-binary post.json + --data-binary @post.json rm post.json """) //to matrix env.avatarMXC=sh(returnStdout: true, script: """ - curl 'https://greyn.club:8448/_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-\$(mktemp -u XXX).png' \ -X 'POST' \ -H 'authorization: Bearer ${env.JENKINSONMATRIXTOKEN}' \ -H 'Content-Type: image/png' \ --compressed \ --data-binary @meta/avatar.png \ - | jq .content_uri + | jq -r .content_uri """).trim() sh(returnStdout: true, script: """