generated from Templates/Baseline
add upload command #3
@ -48,7 +48,7 @@ showSettings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uploadArtifact() {
|
uploadArtifact() {
|
||||||
cout=$(curl -v --output /dev/null --write-out "%{http_code}" \
|
cout=$(curl --output /dev/null --write-out "%{http_code}" \
|
||||||
--user "$PLUGIN_USER:$PLUGIN_PASSWORD" \
|
--user "$PLUGIN_USER:$PLUGIN_PASSWORD" \
|
||||||
--upload-file "$PLUGIN_FILE_SOURCE" \
|
--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")
|
||||||
@ -59,8 +59,8 @@ main() {
|
|||||||
if [ -n "$PLUGIN_DEBUG" ]; then
|
if [ -n "$PLUGIN_DEBUG" ]; then
|
||||||
sayW "Debug mode enabled."
|
sayW "Debug mode enabled."
|
||||||
showSettings
|
showSettings
|
||||||
sayW "Available ENV vars:"
|
#sayW "Available ENV vars:"
|
||||||
showENV
|
#showENV
|
||||||
fi
|
fi
|
||||||
uploadArtifact
|
uploadArtifact
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user