{"action":"closed","issue":{"url":"https://api.github.com/repos/myhpom/MyHPOM/issues/139","repository_url":"https://api.github.com/repos/myhpom/MyHPOM","labels_url":"https://api.github.com/repos/myhpom/MyHPOM/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/myhpom/MyHPOM/issues/139/comments","events_url":"https://api.github.com/repos/myhpom/MyHPOM/issues/139/events","html_url":"https://github.com/myhpom/MyHPOM/issues/139","id":308161487,"number":139,"title":"A version of the Jenkins deploy job for safe production","user":{"login":"cbcunc","id":928188,"avatar_url":"https://avatars2.githubusercontent.com/u/928188?v=4","gravatar_id":"","url":"https://api.github.com/users/cbcunc","html_url":"https://github.com/cbcunc","followers_url":"https://api.github.com/users/cbcunc/followers","following_url":"https://api.github.com/users/cbcunc/following{/other_user}","gists_url":"https://api.github.com/users/cbcunc/gists{/gist_id}","starred_url":"https://api.github.com/users/cbcunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbcunc/subscriptions","organizations_url":"https://api.github.com/users/cbcunc/orgs","repos_url":"https://api.github.com/users/cbcunc/repos","events_url":"https://api.github.com/users/cbcunc/events{/privacy}","received_events_url":"https://api.github.com/users/cbcunc/received_events","type":"User","site_admin":false},"labels":[{"id":858047023,"url":"https://api.github.com/repos/myhpom/MyHPOM/labels/infrastructure","name":"infrastructure","color":"f4da8b","default":false}],"state":"closed","locked":false,"assignee":{"login":"dsummersl","id":30856,"avatar_url":"https://avatars3.githubusercontent.com/u/30856?v=4","gravatar_id":"","url":"https://api.github.com/users/dsummersl","html_url":"https://github.com/dsummersl","followers_url":"https://api.github.com/users/dsummersl/followers","following_url":"https://api.github.com/users/dsummersl/following{/other_user}","gists_url":"https://api.github.com/users/dsummersl/gists{/gist_id}","starred_url":"https://api.github.com/users/dsummersl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsummersl/subscriptions","organizations_url":"https://api.github.com/users/dsummersl/orgs","repos_url":"https://api.github.com/users/dsummersl/repos","events_url":"https://api.github.com/users/dsummersl/events{/privacy}","received_events_url":"https://api.github.com/users/dsummersl/received_events","type":"User","site_admin":false},"assignees":[{"login":"dsummersl","id":30856,"avatar_url":"https://avatars3.githubusercontent.com/u/30856?v=4","gravatar_id":"","url":"https://api.github.com/users/dsummersl","html_url":"https://github.com/dsummersl","followers_url":"https://api.github.com/users/dsummersl/followers","following_url":"https://api.github.com/users/dsummersl/following{/other_user}","gists_url":"https://api.github.com/users/dsummersl/gists{/gist_id}","starred_url":"https://api.github.com/users/dsummersl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsummersl/subscriptions","organizations_url":"https://api.github.com/users/dsummersl/orgs","repos_url":"https://api.github.com/users/dsummersl/repos","events_url":"https://api.github.com/users/dsummersl/events{/privacy}","received_events_url":"https://api.github.com/users/dsummersl/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/myhpom/MyHPOM/milestones/7","html_url":"https://github.com/myhpom/MyHPOM/milestone/7","labels_url":"https://api.github.com/repos/myhpom/MyHPOM/milestones/7/labels","id":3256552,"number":7,"title":"Release 1.0.1","description":"Deployment tooling changes.","creator":{"login":"cbcunc","id":928188,"avatar_url":"https://avatars2.githubusercontent.com/u/928188?v=4","gravatar_id":"","url":"https://api.github.com/users/cbcunc","html_url":"https://github.com/cbcunc","followers_url":"https://api.github.com/users/cbcunc/followers","following_url":"https://api.github.com/users/cbcunc/following{/other_user}","gists_url":"https://api.github.com/users/cbcunc/gists{/gist_id}","starred_url":"https://api.github.com/users/cbcunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbcunc/subscriptions","organizations_url":"https://api.github.com/users/cbcunc/orgs","repos_url":"https://api.github.com/users/cbcunc/repos","events_url":"https://api.github.com/users/cbcunc/events{/privacy}","received_events_url":"https://api.github.com/users/cbcunc/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2018-04-10T16:52:58Z","updated_at":"2018-04-11T13:37:37Z","due_on":"2018-04-12T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-03-23T20:00:26Z","updated_at":"2018-04-11T13:37:37Z","closed_at":"2018-04-11T13:37:37Z","author_association":"NONE","body":"We have a deploy job on Jenkins that can take production as a target. It can build on production with any branch. I would like a separate version of the build with parameters deploy that uses only production and the xdci-develop branch (i.e. no parameters). This will enable me to remove production from the list of *enabled* choice in the deploy by branch job and prevent any mishaps for deploying the wrong branch to production. It can always be temporarily enables in the event we want to ever deploy hotfix branches to production.\r\n\r\nThis is also part of something else that needs to happen on deploy to production in this issue. Currently the production deploy, like the staging deploy, does an `./hsctl rebuild --db` which causes the Django database to be reset from pg.myhpomdevelopment.sql. We need to make the production job part of a pipeline of jobs which first backs up the Django Postgres database locally with scripts//backup-hs (as opposed to the iRODS Postgres database on the irods machines), then to /project/myhpom/someNewSubdirectory for this purpose, and finally makes a copy of the backed up into pg.deploy.sql and points the HS_DATABASE setting in config/hydroshare.yaml at pg.deploy.sql before running `./hsctl rebuild (possibly with no --db to keep from rebuilding the Django Postgres database in the Postgres container).\r\n\r\nFor some guidance, see the backup-database-media-files job under the \"Housekeeping\" tab on Hydroshare's Jenkins server. The backup to projects can be used to duplicate production to staging machines (using different iRODS machines which have been restored from a backup of production iRODS as in #138."}}
{"actor":{"display_login":"dsummersl"}}