For Travis CI - when housekeeping SF.net, sort by name instead of time.
Occassionally there could be multiple successive commits causing multiple CI jobs queue up in the Travis CI. Due to latency of each jobs, the jobs may finish not in the same order as the commits. If the CI build happens to be instructed to perform package upload then the uploaded packages may come in not in the right order as the result.
This commit is contained in:
parent
de93f17310
commit
a490436324
2
Rakefile
2
Rakefile
@ -189,7 +189,7 @@ task :ci_package_upload do
|
||||
# Only keep the snapshots from the last 30 revisions
|
||||
system "for v in $(sftp urho-travis-ci@frs.sourceforge.net <<EOF |tr ' ' '\n' |grep Urho3D- |cut -d '-' -f1,2 |uniq |tail -n +31
|
||||
cd #{upload_dir}
|
||||
ls -1t
|
||||
ls -1r
|
||||
bye
|
||||
EOF
|
||||
); do echo rm #{upload_dir}/${v}*; done |sftp -b - urho-travis-ci@frs.sourceforge.net" or abort 'Failed to housekeep snapshots'
|
||||
|
Loading…
Reference in New Issue
Block a user