From f3721755ad0ebddc02182c7c36a2333acf076f46 Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 26 Apr 2025 12:09:25 -0400 Subject: [PATCH] iteration 124987: no this time is the one, you guys --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: """