/
HSI Jenkins Schedule Job -- Configuration and Deployment

HSI Jenkins Schedule Job -- Configuration and Deployment

Summary

HSI-Datasync-OW is a service application, it needs a schedule to run it.

Here setup a jenkins Schedule Job to HSI-Datasync-OW via Jenkins schedule scripts. 

Production Deployment Prerequisite 

1.WebSphere System Resources

1.1 Data Source (This should be ready already)

Please refer to Production 8 Setup & Deployment

1.2  URL resources 

Please refer to Production 8 Setup & Deployment

Additional URLs for Families Portal – Fair Pass

URL NamesJNDI NameURL ValueComment
corp_auth_sessionurl/corp/authSessionFor accessing the corp auth session

2. Setup Trust Store in WebSphere Admin Console

2.1 Corporate Authentication Service

Please make sure these certificates are existing or import them for Corp Auth Session into WebSphere DefaultCellTrustStore


3. Enterprise Scheduler Configuration

3.1 Enterprise Scheduler URLs

EnvURLNotes
Devhttp://scheduler-dev.csd.toronto.ca
QAhttp://scheduler-qa.csd.toronto.ca
Prodhttps://scheduler.csd.toronto.ca

3.2 Setup environmental properties in the scheduler

3.2.1 Setup Credential

Credential NameUser Name and PasswordNotes
Scheduler-Credential

tcsqa01/Summer321 (DEV)

tcsqa01/Summer321 (QA)

(Prod please refer to Deval or Antonio)

This is the user to be authenticated to trigger the scheduled job
Jenkinsjenkins/(Please refer to James)This is the user to load the pipeline job from Bitbucket server



3.2.2 Environment Variables for Scheduler

EnvEnvironment NameURLNotes
Dev

DATA_SYNC_ENDPOINT

ENV_ID

https://citest01.csd.toronto.ca:9444/families/employee/rest/scheduler

DEV

The RESTFul provides three sub paths

  • /start: to start the process
  • /inquire: to check the process progress
  • /cancel: to cancel the running job


QA

DATA_SYNC_ENDPOINT

ENV_ID

https://secureqa.csd.toronto.ca/families/employee/rest/scheduler

QA


Prod

DATA_SYNC_ENDPOINT

ENV_ID

https://secure.csd.toronto.ca/families/employee/rest/scheduler

PROD





3.2.3 Create Folder in the scheduler

Create Families Portal Scheduler folder in Scheduler

3.3 Create a new job in Harmony Scheduler folder

Create a new pipeline job name: Harmony Scheduler/Harmony Datasync OW Data Pipeline

Set the scheduling period to H(10-20) 0 * * 1-5

Configure the job to load pipeline script in https://bitbucket.csd.toronto.ca/scm/es/harmony-datasync.git

SCMCredentialBranch to buildScript Path
https://bitbucket.csd.toronto.ca/scm/es/harmony-datasync.gitJenkins

develop (QA)

master (Prod)

Jenkinsfile-owdata

3.4 Create a new job for Harmony initial load copying for existing scheduler-Harmony datasync OW data Pipeline

Create a new pipeline job name: Harmony Scheduler/Harmony Datasync OW Data Pipeline (-- No "Build periodically".)

SCMCredentialBranch to buildScript Path
https://bitbucket.csd.toronto.ca/scm/es/harmony-datasync.gitJenkins

develop (QA)

master (Prod)

Jenkinsfile-owdata-init



4. All Fair-Pass Jenkins Job Scheduler Info

Scheduler Name

Scheduling period

Pipeline Script PathRepository URLBranches to build
Harmony Datasync OW Data PipelineH(10-20) 0 * * 1-5Jenkinsfile-owdatahttps://bitbucket.csd.toronto.ca/scm/es/harmony-datasync.git

QA — develop
Prod — master

Harmony Datasync OW Data Pipeline for Initial LoadN/AJenkinsfile-owdata-inithttps://bitbucket.csd.toronto.ca/scm/es/harmony-datasync.git

QA — develop
Prod — master