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

Initial customization for reprepro-updater #1080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 33 additions & 9 deletions ros_buildfarm/templates/release/deb/import_upstream_job.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,24 @@ Generated at @ESCAPE(now_str) from template '@ESCAPE(template_name)'</descriptio
'description': 'If this is not true, it will only do a dry run and print the expect import, but not execute.',
'default_value': 'false',
},
{
'type': 'boolean',
'name': 'IMPORT_TO_MAIN',
'description': 'Use the ubuntu_main repository as one of the targets for the import',
'default_value': 'true',
},
{
'type': 'boolean',
'name': 'IMPORT_TO_TESTING',
'description': 'Use the ubuntu_testing repository as one of the targets for the import',
'default_value': 'true',
},
{
'type': 'boolean',
'description': 'Use the ubuntu_building repository as one of the targets for the import',
'name': 'IMPORT_TO_BUILDING',
'default_value': 'true',
},
],
))@
@(SNIPPET(
Expand Down Expand Up @@ -67,15 +85,21 @@ Generated at @ESCAPE(now_str) from template '@ESCAPE(template_name)'</descriptio
' export COMMIT_ARG="--commit"',
'fi',
'export PYTHONPATH=$WORKSPACE/reprepro-updater/src:$PYTHONPATH',
'echo "# BEGIN SUBSECTION: import debian packages for ubuntu_building"',
'python3 -u $WORKSPACE/reprepro-updater/scripts/import_upstream.py ubuntu_building $config_file $COMMIT_ARG',
'echo "# END SUBSECTION"',
'echo "# BEGIN SUBSECTION: import debian packages for ubuntu_testing"',
'python3 -u $WORKSPACE/reprepro-updater/scripts/import_upstream.py ubuntu_testing $config_file $COMMIT_ARG',
'echo "# END SUBSECTION"',
'echo "# BEGIN SUBSECTION: import debian packages for ubuntu_main"',
'python3 -u $WORKSPACE/reprepro-updater/scripts/import_upstream.py ubuntu_main $config_file $COMMIT_ARG',
'echo "# END SUBSECTION"',
'if [ "$IMPORT_TO_BUILDING" = "true" ]; then',
' echo "# BEGIN SUBSECTION: import debian packages for ubuntu_building"',
' python3 -u $WORKSPACE/reprepro-updater/scripts/import_upstream.py ubuntu_building $config_file $COMMIT_ARG',
' echo "# END SUBSECTION"',
'fi',
'if [ "$IMPORT_TO_TESTING" = "true" ]; then',
' echo "# BEGIN SUBSECTION: import debian packages for ubuntu_testing"',
' python3 -u $WORKSPACE/reprepro-updater/scripts/import_upstream.py ubuntu_testing $config_file $COMMIT_ARG',
' echo "# END SUBSECTION"',
'fi',
'if [ "$IMPORT_TO_MAIN" = "true" ]; then',
' echo "# BEGIN SUBSECTION: import debian packages for ubuntu_main"',
' python3 -u $WORKSPACE/reprepro-updater/scripts/import_upstream.py ubuntu_main $config_file $COMMIT_ARG',
' echo "# END SUBSECTION"',
'fi',
'echo "# END SECTION"',
]),
))@
Expand Down
Loading