shrug
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
This commit is contained in:
parent
10fd09d6eb
commit
dfb1e06538
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -27,6 +27,9 @@ pipeline {
|
||||
when {
|
||||
branch "release"
|
||||
}
|
||||
environment {
|
||||
GITEA_PAT = credentials('0bd7c8f5-046c-44b9-9c77-7a28a219ae31')
|
||||
}
|
||||
steps{
|
||||
sh """
|
||||
filename=\$(ls ./*.nupkg | head -1)
|
||||
@ -34,7 +37,7 @@ pipeline {
|
||||
noext=\${fullfilename%.*}
|
||||
curl -X 'POST' \
|
||||
-o release.json
|
||||
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$0bd7c8f5-046c-44b9-9c77-7a28a219ae31' \
|
||||
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$GITEA_PAT' \
|
||||
-H 'accept: application/json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
@ -48,7 +51,7 @@ pipeline {
|
||||
releaseid=\$(cat release.json | jq .id)
|
||||
|
||||
curl -X 'POST' \
|
||||
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$0bd7c8f5-046c-44b9-9c77-7a28a219ae31' \
|
||||
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$GITEA_PAT' \
|
||||
-H 'accept: application/json' \
|
||||
-H 'Content-Type: multipart/form-data' \
|
||||
-F 'attachment=@\$fullfilename'
|
||||
|
Loading…
Reference in New Issue
Block a user