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

Add function in directory-indexer.py to add existing build #359

Open
justaddcoffee opened this issue Sep 28, 2020 · 0 comments
Open

Add function in directory-indexer.py to add existing build #359

justaddcoffee opened this issue Sep 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@justaddcoffee
Copy link
Collaborator

justaddcoffee commented Sep 28, 2020

Describe the desired behavior

Right now in Jenkins we manually add a (blank) directory for each existing build in our projectdir:

sh "for dir in `s3cmd ls s3://kg-hub-public-data/kg-covid-19/ | grep '\\/\$' | awk '{print \$NF}' | grep -w -v -E 'raw|current' | xargs -n1 basename`; do mkdir -p $S3PROJECTDIR/$dir; done"

on the command-line.

A better solution would be to add this functionality to directory-indexer.py on our fork of go-site

Additional context

Basically we'd just add flags for the bucket and project directory, and some ignore args to ignore directories like raw and current. The existing builds would be added to the HTML as href links.

@justaddcoffee justaddcoffee added the enhancement New feature or request label Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant