generated from Templates/Baseline
extend text output #10
@ -97,22 +97,22 @@ uploadArtifact() {
|
|||||||
say "Curl http response code: $cout" "uploadArtifact"
|
say "Curl http response code: $cout" "uploadArtifact"
|
||||||
|
|
||||||
if [ "$cout" = "201" ]; then
|
if [ "$cout" = "201" ]; then
|
||||||
say "Upload sucessfully finished." "uploadArtifact"
|
say "Upload sucessfully finished. ✅" "uploadArtifact"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "$cout" = "400" ]; then
|
elif [ "$cout" = "400" ]; then
|
||||||
sayE "Upload failed! (Bad Request)" "uploadArtifact"
|
sayE "Upload failed! (Bad Request) 💣" "uploadArtifact"
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$cout" = "409" ]; then
|
elif [ "$cout" = "409" ]; then
|
||||||
sayE "File already exists in package version!" "uploadArtifact"
|
sayE "File already exists in package version! 🛑" "uploadArtifact"
|
||||||
else
|
else
|
||||||
sayE "Unknown upload response! ($cout)" "uploadArtifact"
|
sayE "Unknown upload response! ($cout) 💣" "uploadArtifact"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user