generated from Templates/Baseline
test curl in subshell
This commit is contained in:
parent
01d3bf1cfc
commit
c4988f9492
@ -48,10 +48,11 @@ showSettings() {
|
||||
}
|
||||
|
||||
uploadArtifact() {
|
||||
curl -v --output /dev/null --write-out "%{http_code}" \
|
||||
cout=$(curl -v --output /dev/null --write-out "%{http_code}" \
|
||||
--user "$PLUGIN_USER:$PLUGIN_PASSWORD" \
|
||||
--upload-file "$PLUGIN_FILE_SOURCE" \
|
||||
"$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME"
|
||||
"$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME")
|
||||
say "Curl output is: $cout" "uploadArtifact"
|
||||
}
|
||||
|
||||
main() {
|
||||
|
Loading…
Reference in New Issue
Block a user