Manage start-stop-project Jenkins job


The purpose of the Jenkins job https://jenkins-aws.indexdata.com/job/Rancher/job/start-stop-project/

is to automatically/manually stop/start project for a period of time to save AWS costs.

Weekend shutdowns schedule

Every environment in folio-dev, folio-perf clusters will be stopped during time period from 6PM EST (Friday) until 6:30 PM EST (Sunday).

Weekly(nightly) shutdowns schedule

Every environment in folio-dev, folio-perf clusters will be stopped during time period from 8PM EST - 1AM EST every day from Monday to Thursday.


Main purpose

For dev teams main purpose of the job could be necessity to use (development/testing process) their environment during stop period (weekends, nights?).

Job Parameters

The job requires the following parameters to be provided when running:

  1. action: Choose the action to be performed with the project "start" - if you need to work with env during stop hours, "stop" - after you finished your work.
  2. clusterName: Select the target cluster where the Kubernetes namespace is located.
  3. projectName: Select the target project where the Kubernetes namespace is located.



Usage

  1. Select the Jenkins job and click on "Build with Parameters" to provide the required input.

  2. Choose the desired action from the available options: "start" - if you need to work with env during stop hours, "stop" - after you finished your work.

  3. Select the target cluster by choosing the appropriate option from the "clusterName" parameter dropdown.

  4. Select the target project by choosing the appropriate option from the "projectName" parameter dropdown.

  5. Click on "Build" to execute the job with the provided parameters.


We suppose that developer teams will be responsible and careful with the time period during they need to work with environment and won't forget to stop a project after finish their work (wink)