-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removed un-used imports from api v01 & 02 added new rest api endpoint for registering and building jobs in jenkins * imported service in mozart.__init__.py * added get api request for EventSource javascript api TODO: should probably move the build step to a different rest api endpoint fixed sdscli build command * changed execute command (using with now) in jenkins.py added logger as well * removed bufsize=1 from subprocess.Popen * added event_source option (defaults to False) to execute to be compatible with the EventSource javascript API, which is prepending with 'data' and adding a newline * re-organized the jenkins rest api and bumped version * de-coupled api_v01.py into multiple modules (testing, will de-couple v02 if all goes well) * moved namespaces to mozart/services/api_v01/__init__.py * de-coupled the namespaces across multiple files got the swagger UI working re-organized mozart/__init__.py * de-coupled API v0.2 moved code from api_v0X/__init__.py to a service.py module to allow for the swagger /doc/ endpoint * bumped version removed jenkins.py (branched off from a un-related ticket) removed trailing newline * handling global 404 error with a json response instead of the default HTML response * bumped version too high * forgot to remove mozart/services/api_v02.py * accidentally imported v01 classes to v02's service.py * removed elasticsearch-dsl because its unused * added endpoint to retrieve products staged from a job * re-added jenkins.py from previous branch added python-jenkins to setup.py JENKINS_[HOST|USER|API_KEY] added to settings.cfg.tmpl added jenkins connection to mozart/__init__.py * utilized python-jenkins to build and delete jobs added functionality to stop builds (including jobs in queued state waiting to be built removed uses of sdscli in jenkins.py (except for job registration bc job registration is a little more complicated, maybe do it later)) added JENKINS_ENABLED in settings.cfg (name subject to change) * renamed jenkins.py and its service to ci * fixed cofig parser for JENKINS_* in settings.cfg added (argument) parser for JobBuilder, so it shows up on the swagger UI added additional logging for when job isnt found in Jenkins * renamed endpoint from jenkins -> ci * added jenkins job status API endpoint added optional URL parameters for job build and job status endpoints will fallback to parsing the Git repo and branch if job_name not supplied in URL parameters * added input parser to JobRegistration endpoint * moved conditional jenkins resoruces to __init__.py so the endpoints wont show up and will return a "404 resource not found" when ENABLE_JENKINS is set to false added api to remove job builds (note: will need to stop build first before removing) changed DELETE requests in ci.py to retrieve data from query parameters instead of form data fixed {{ JENKINS_USER }} TO {{ JENKINS_API_USER }} in settings.cfg * removed comments in __init__.py * added endpoint to list all registered jobs * added parsers for remaining endpoints in api v0,1 and v0.2 * removed duplicate parser argument * commented out logger.propagate (for now) re-added request data parser in GetJobInfo (get) to not change too much in api_v01 added url param (_id) to JobInfo in api_v02 * removed example jenkins endpoint from ci.py * added build_number in query params as a fallback if not provided in url param * added endpoint to check if job exists in Jenkins * git status * fixed build_number query arg in ci.py (Build) * added python-jenkins to setup.py * added description in settings.cfg.tmpl
- Loading branch information
Showing
15 changed files
with
859 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.