[vlc-commits] [Git][videolan/vlc][master] CI: don't use multiple lines in a for loop

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 3 03:12:47 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
78313041 by Steve Lhomme at 2022-11-03T02:32:32+00:00
CI: don't use multiple lines in a for loop

For some reason gitlab doesn't like it.

It worked with the line

> for ext in exe msi 7z zip; do mv ${SHORTARCH}/vlc-*-dev-*.${ext} nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/"); done

It should work with the line

> for ext in exe msi 7z zip; do mv ${SHORTARCH}/vlc-*-dev-*.${ext} nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/") || echo "vlc-*.${ext} not found!"; done

- - - - -


1 changed file:

- extras/ci/gitlab-ci.yml


Changes:

=====================================
extras/ci/gitlab-ci.yml
=====================================
@@ -192,16 +192,8 @@ uwp64-libvlc-llvm:
         - if: '$CI_PIPELINE_SOURCE == "schedule"'
     after_script:
         - mkdir nightlies
-        - for ext in 7z; \
-          do mv                  ${SHORTARCH}/vlc-*-dev-*-debug.${ext} \
-            nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*-debug.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/") || \
-            echo "vlc-*debug.${ext} not found!"; \
-          done
-        - for ext in exe msi 7z zip; \
-           do mv                  ${SHORTARCH}/vlc-*-dev-*.${ext} \
-             nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*.${ext}      | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/") || \
-            echo "vlc-*.${ext} not found!"; \
-           done
+        - for ext in 7z;  do mv ${SHORTARCH}/vlc-*-dev-*-debug.${ext} nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*-debug.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/") || echo "vlc-*debug.${ext} not found!"; done
+        - for ext in exe msi 7z zip; do mv ${SHORTARCH}/vlc-*-dev-*.${ext} nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/") || echo "vlc-*.${ext} not found!"; done
         - cd nightlies && find . -maxdepth 1 -type f -not -name SHA512SUM | xargs shasum -a 512 | tee SHA512SUM
     artifacts:
         paths:



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/78313041d4f7e77e72653ac217a95d13ee136b9f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/78313041d4f7e77e72653ac217a95d13ee136b9f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list