-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #915 from hmcts/ieuanb74-patch-7
Move elasticsearch workflow to ADO
- Loading branch information
Showing
3 changed files
with
49 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Start Elasticsearch Service | ||
|
||
schedules: | ||
- cron: '45 6 * * 1-5' # Every weekday at 6:45am BST | ||
displayName: Weekdays @ 6:45am | ||
branches: | ||
include: | ||
- master | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
|
||
variables: | ||
timeoutInMinutes: 60 | ||
agentPool: 'hmcts-cftptl-agent-pool' | ||
service_connection: 'GA' | ||
|
||
stages: | ||
stage: StartElasticsearchService | ||
jobs: | ||
job: StartElasticsearchService | ||
displayName: Start Elasticsearch Service | ||
pool: | ||
name: $(agentPool) | ||
|
||
steps: | ||
- checkout: self | ||
clean: true | ||
|
||
- task: DownloadSecureFile@1 | ||
name: elkprivatekey | ||
inputs: | ||
secureFile: 'elk_private_key' | ||
|
||
- script: ./$(System.DefaultWorkingDirectory)/scripts/vm/restart-es-service.sh staging $(elkprivatekey.secureFilePath) | ||
displayName: 'Start Elasticsearch Staging' | ||
|
||
- script: ./$(System.DefaultWorkingDirectory)/scripts/vm/restart-es-service.sh demo $(elkprivatekey.secureFilePath) | ||
displayName: 'Start Elasticsearch Demo' | ||
|
||
- script: ./$(System.DefaultWorkingDirectory)/scripts/vm/restart-es-service.sh perftest $(elkprivatekey.secureFilePath) | ||
displayName: 'Start Elasticsearch Perftest' | ||
|
||
- script: ./$(System.DefaultWorkingDirectory)/scripts/vm/restart-es-service.sh ithc $(elkprivatekey.secureFilePath) | ||
displayName: 'Start Elasticsearch ITHC' |
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