Skip to content

Commit 8d78c6b

Browse files
authored
Drone: Fix artifacts upload for 4.4-dev (#43033)
1 parent 069d858 commit 8d78c6b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.drone.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ steps:
309309
- phpmin-system-mysql8
310310
- phpmin-system-postgres
311311
environment:
312+
WEB_SERVER:
313+
from_secret: webserver
314+
FTP_SERVER:
315+
from_secret: ftpserver
312316
FTP_USERNAME:
313317
from_secret: ftpusername
314318
FTP_PASSWORD:
@@ -317,11 +321,11 @@ steps:
317321
from_secret: github_token
318322
commands:
319323
- export PLUGIN_DEST_DIR=/artifacts/$DRONE_REPO/$DRONE_BRANCH/$DRONE_PULL_REQUEST/system-tests/$DRONE_BUILD_NUMBER
320-
- echo https://ci.joomla.org$PLUGIN_DEST_DIR
321-
- rclone config create artifacts ftp host ci.joomla.org user $FTP_USERNAME port 21 pass $FTP_PASSWORD
324+
- echo https://$WEB_SERVER$PLUGIN_DEST_DIR
325+
- rclone config create artifacts ftp host $FTP_SERVER user $FTP_USERNAME port 21 pass $FTP_PASSWORD
322326
- rclone mkdir artifacts:$PLUGIN_DEST_DIR
323327
- rclone copy tests/System/output/ artifacts:$PLUGIN_DEST_DIR
324-
- 'curl -X POST "https://api.github.com/repos/$DRONE_REPO/statuses/$DRONE_COMMIT" -H "Content-Type: application/json" -H "Authorization: token $GITHUB_TOKEN" -d "{\"state\":\"failure\", \"context\": \"Artifacts from Failure\", \"description\": \"You can find artifacts from the failure of the build here:\", \"target_url\": \"https://ci.joomla.org$PLUGIN_DEST_DIR\"}" > /dev/null'
328+
- 'curl -X POST "https://api.github.com/repos/$DRONE_REPO/statuses/$DRONE_COMMIT" -H "Content-Type: application/json" -H "Authorization: token $GITHUB_TOKEN" -d "{\"state\":\"failure\", \"context\": \"Artifacts from Failure\", \"description\": \"You can find artifacts from the failure of the build here:\", \"target_url\": \"https://$WEB_SERVER$PLUGIN_DEST_DIR\"}" > /dev/null'
325329
when:
326330
status:
327331
- failure
@@ -492,6 +496,6 @@ trigger:
492496

493497
---
494498
kind: signature
495-
hmac: 2b23d4286790b54215c985c85304ddd24818802bab49b3afec2144d28dce1f5f
499+
hmac: ca3d5f3a6e39270f147f8f02ca4bc4cca7050f7ab2bcaf0258426e0089cfef5b
496500

497501
...

0 commit comments

Comments
 (0)