Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make repository_uploader to support S3_FILES_TO_UPLOAD #1006

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Sep 7, 2023

Change in repository_uploader to be able to pass files directly to the S3 uploaders by naming them exactly. This should help with the right upload of new tarballs generated in Jenkins.

The repository_uploader_packages job does not have a DSL definition yet but I have tested the execution of the code in an expected failed build to be sure that the uploader does not fail when there is no package specified and just the normal use of uploading .deb packages and source packages.

...
+ case ${UPLOAD_TO_REPO} in
+ ENABLE_S3_UPLOAD=false
++ find /home/jenkins/workspace/repository_uploader_packages/pkgs -type f -name '*.zip' -printf '%f\n'
+ S3_FILES_TO_UPLOAD=' '
++ find /home/jenkins/workspace/repository_uploader_packages/pkgs -name '*.bottle*.json'
+ [[ nightly == \o\n\l\y\_\s\3\_\u\p\l\o\a\d ]]
+ LINUX_DISTRO=ubuntu
+ repo_path=/var/packages/gazebo/ubuntu-nightly
+ [[ ! -d /var/packages/gazebo/ubuntu-nightly ]]
...

@j-rivero
Copy link
Contributor Author

Merging to give it some testing before other changes landed.

@j-rivero j-rivero merged commit e8628d7 into master Sep 11, 2023
1 check passed
@j-rivero j-rivero deleted the jrivero/uploader_support_s3_files branch September 11, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant