generated from Templates/Baseline
use silent mode in curl
This commit is contained in:
parent
869875de67
commit
022ab88747
@ -48,7 +48,7 @@ showSettings() {
|
||||
}
|
||||
|
||||
testArtifact() {
|
||||
tout=$(curl --output /dev/null --write-out "%{http_code}" \
|
||||
tout=$(curl --silent --output /dev/null --write-out "%{http_code}" \
|
||||
"$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME")
|
||||
|
||||
if [ "$tout" = "200" ]; then
|
||||
@ -59,7 +59,7 @@ testArtifact() {
|
||||
}
|
||||
|
||||
deleteArtifact() {
|
||||
dout=$(curl --output /dev/null --write-out "%{http_code}" \
|
||||
dout=$(curl --silent --output /dev/null --write-out "%{http_code}" \
|
||||
--user "$PLUGIN_USER:$PLUGIN_PASSWORD" -X DELETE \
|
||||
"$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME")
|
||||
|
||||
@ -87,7 +87,7 @@ uploadArtifact() {
|
||||
fi
|
||||
fi
|
||||
say "Starting file upload..." "uploadArtifact"
|
||||
cout=$(curl --output /dev/null --write-out "%{http_code}" \
|
||||
cout=$(curl --silent --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")
|
||||
|
Loading…
Reference in New Issue
Block a user