department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
284 stars 206 forks source link

Jenkins - Scheduled deploys of master and worker AMI #13823

Open jbritt1 opened 4 years ago

jbritt1 commented 4 years ago

Issue Description

  1. Jenkins job fails a check on a daily basis that results in quite a bit of additional noise.
  2. Also, Jenkins is not getting deployed on a regular basis, results in patches / apps / etc getting out of date.

Work was done in this pull request to make the OS Check jobs not rely so heavily on naming as it was missing instances that did not include the "-asg" portion of a Name tag. With that merged however, the OS Check for the utility environment fails daily due to how long it has been since Jenkins master has been deployed. This will continue to be a daily failure for that particular job until an automated method or even scheduled manual method is implemented to ensure the deployed master does not reach an age of >14 days.

After some discussions, the Operations team decided that it is worth the effort and time to ensure that Jenkins is reliable and secure until such time as it is no longer needed.

As of right now, the Worker AMI gets deleted every 30 days by the AMI cleanup script which causes a Jenkins outage like clockwork. This also needs to be resolved.


Tasks

Acceptance Criteria

Relation

jbritt1 commented 3 years ago

https://dsva.slack.com/archives/CJYRZK2HH/p1631279782326600

jhouse-solvd commented 3 years ago

Let's leave this in the icebox and either schedule some new monthly deploys, or decide to put in the work to do this.

jbritt1 commented 2 years ago

Should we close this? I think our intention is to continue to move towards sunsetting Jenkins vs spending time on more automation around it.