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

Feature Request: WebService API for "add" function #47

Open
SebastianSchmidtInovex opened this issue Nov 28, 2016 · 0 comments
Open

Feature Request: WebService API for "add" function #47

SebastianSchmidtInovex opened this issue Nov 28, 2016 · 0 comments

Comments

@SebastianSchmidtInovex
Copy link

In our scenario, we have multiple build process running on a build server that eventually have to put an artifact (RPM) into the repositor.io running on a different delivery server. At the moment that ist done by copying them to the remote host where repositor.io is running, then adding them and afterwards cleaning the upload folder.

scp artifact.rpm [email protected]:.
ssh [email protected] "flock . repositorio --repo=artifact_name --add=artifact.rpm"
ssh [email protected] "rm -f ${rpmkpg##*/}"

The flock . is used to circumvent #44 when multiple build process run in parallel.

It would be great to have a simple web service where you could POST or PUT the artifact via a single http request (with the file as Body and query parameters for the additional command parameters, or as multipart request).
This service should be runnable in parallel (#44) since one would not have the option for any self-made locking in this case.

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

No branches or pull requests

1 participant