Compare commits
3 Commits
dfb1e06538
...
cb5ae43d2a
Author | SHA1 | Date | |
---|---|---|---|
cb5ae43d2a | |||
6a1c175e5c | |||
a84a7adc6d |
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -36,7 +36,7 @@ pipeline {
|
|||||||
fullfilename=\$(basename -- \$filename)
|
fullfilename=\$(basename -- \$filename)
|
||||||
noext=\${fullfilename%.*}
|
noext=\${fullfilename%.*}
|
||||||
curl -X 'POST' \
|
curl -X 'POST' \
|
||||||
-o release.json
|
-o release.json \
|
||||||
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$GITEA_PAT' \
|
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$GITEA_PAT' \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
@ -50,8 +50,9 @@ pipeline {
|
|||||||
}'
|
}'
|
||||||
releaseid=\$(cat release.json | jq .id)
|
releaseid=\$(cat release.json | jq .id)
|
||||||
|
|
||||||
|
postURL = "https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$GITEA_PAT"
|
||||||
curl -X 'POST' \
|
curl -X 'POST' \
|
||||||
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$GITEA_PAT' \
|
\$postURL \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H 'Content-Type: multipart/form-data' \
|
-H 'Content-Type: multipart/form-data' \
|
||||||
-F 'attachment=@\$fullfilename'
|
-F 'attachment=@\$fullfilename'
|
||||||
@ -60,6 +61,7 @@ pipeline {
|
|||||||
filename=null
|
filename=null
|
||||||
fullfilename=null
|
fullfilename=null
|
||||||
noext=null
|
noext=null
|
||||||
|
postURL=null
|
||||||
"""
|
"""
|
||||||
dotnetNuGetPush(root: "./*.nupkg", source:"greyngitea", skipDuplicate:true)
|
dotnetNuGetPush(root: "./*.nupkg", source:"greyngitea", skipDuplicate:true)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user