Compare commits
No commits in common. "c31705b006e0396c4ea17823b8ba0000c7c65a0d" and "8d41399fc30935d579bb07e38416691a2139f3cc" have entirely different histories.
c31705b006
...
8d41399fc3
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -12,9 +12,10 @@ pipeline {
|
|||||||
when { changeset "metadata/avatar.png"}
|
when { changeset "metadata/avatar.png"}
|
||||||
steps {
|
steps {
|
||||||
script{
|
script{
|
||||||
|
env.avatar=sh(returnStdout: true, script: "base64 metadata/avatar.png");
|
||||||
//to gitea
|
//to gitea
|
||||||
sh(returnStdout: true, script: """
|
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' \
|
curl -X 'POST' \
|
||||||
'https://gitea.arg.rip/api/v1/repos/beefhavers/how2-manage-passwords/avatar' \
|
'https://gitea.arg.rip/api/v1/repos/beefhavers/how2-manage-passwords/avatar' \
|
||||||
@ -23,7 +24,7 @@ pipeline {
|
|||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-binary @post.json
|
--data-binary @post.json
|
||||||
|
|
||||||
# rm post.json
|
rm post.json
|
||||||
""")
|
""")
|
||||||
|
|
||||||
//to matrix
|
//to matrix
|
||||||
|
Loading…
Reference in New Issue
Block a user