double backslashes
All checks were successful
beefhavers/platform-as-place/pipeline/head This commit looks good

This commit is contained in:
adam 2025-04-26 14:57:16 -04:00
parent 4e589ced43
commit dc8b0fa645

4
Jenkinsfile vendored
View File

@ -4,7 +4,7 @@ pipeline {
environment {
JENKINSONGITEA=credentials('d0e86441-2157-405f-8539-a9a9010c6ecf')
JENKINSONMATRIXTOKEN=credentials('17d18fd7-29eb-4957-9532-ce42aaa9b4ec')
MATRIX_ROOMID="//todo"
MATRIX_ROOMID="!amnqtCoIIqhjRWvSDN:greyn.club"
GITEA_PROJECT="https://gitea.arg.rip/beefhavers/platform-as-place"
}
stages {
@ -15,7 +15,7 @@ pipeline {
env.avatar=sh(returnStdout: true, script: "base64 metadata/avatar.png");
//to gitea
sh(returnStdout: true, script: """
echo "{\"image\": \"\$(base64 --wrap=0 metadata/avatar.png)\"}" > post.json
echo "{\\"image\\": \\"\$(base64 --wrap=0 metadata/avatar.png)\\"}" > post.json
curl -X 'POST' \
'https://gitea.arg.rip/api/v1/repos/beefhavers/platform-as-place/avatar' \