Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 65 additions & 7 deletions jenkins_jobs/gpii-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
wrappers:
- timeout:
# Abort after these many minutes
timeout: 120
timeout: 180
# Mark the build as failed
fail: true
builders:
Expand All @@ -27,6 +27,14 @@
projects:
- name: create-gpii-app-vm
predefined-parameters: parent_workspace=$WORKSPACE
- multijob:
name: provision-gpii-app-vm
condition: COMPLETED
projects:
- name: provision-gpii-app-vm-1909
predefined-parameters: parent_workspace=$WORKSPACE
- name: provision-gpii-app-vm-LTSC
predefined-parameters: parent_workspace=$WORKSPACE
- multijob:
name: gpii-app-code-analysis
condition: COMPLETED
Expand All @@ -37,7 +45,9 @@
name: gpii-app-test
condition: COMPLETED
projects:
- name: gpii-app-test
- name: gpii-app-test-1909
predefined-parameters: parent_workspace=$WORKSPACE
- name: gpii-app-test-ltsc
predefined-parameters: parent_workspace=$WORKSPACE
- multijob:
name: delete-gpii-app-vm
Expand All @@ -59,7 +69,39 @@
builders:
# Setting BUILD_ID for vagrant to make sure Jenkins process tree killer doesn't kill the VM
# before the next job is started
- shell: DISPLAY=:0 BUILD_ID=gpii-app vagrant up --provider virtualbox
- shell: DISPLAY=:0 BUILD_ID=gpii-app vagrant up --no-provision --provider virtualbox
wrappers:
- timeout:
# Abort after these many minutes
timeout: 60
# Mark the build as failed
fail: true

- job:
name: provision-gpii-app-vm-1909
description: 'Job responsible for provisioning VM 1909'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
# Setting BUILD_ID for vagrant to make sure Jenkins process tree killer doesn't kill the VM
# before the next job is started
- shell: DISPLAY=:0 BUILD_ID=gpii-app vagrant provision 1909 --provider virtualbox
wrappers:
- timeout:
# Abort after these many minutes
timeout: 60
# Mark the build as failed
fail: true

- job:
name: provision-gpii-app-vm-LTSC
description: 'Job responsible for provisioning VM LTSC'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
# Setting BUILD_ID for vagrant to make sure Jenkins process tree killer doesn't kill the VM
# before the next job is started
- shell: DISPLAY=:0 BUILD_ID=gpii-app vagrant provision LTSC --provider virtualbox
wrappers:
- timeout:
# Abort after these many minutes
Expand All @@ -73,7 +115,7 @@
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant winrm -c "do.ps1 -c 'grunt lint'"
- shell: vagrant winrm LTSC -c "do.ps1 -c 'grunt lint'"
publishers:
- email:
recipients: ci@lists.gpii.net
Expand All @@ -85,12 +127,12 @@
fail: true

- job:
name: gpii-app-test
description: 'GPII-APP tests'
name: gpii-app-test-1909
description: 'GPII-APP tests in the 1909 version of Windows 10'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant winrm -c "do.ps1 -c 'npm test'"
- shell: vagrant winrm 1909 -c "do.ps1 -c 'npm test'"
publishers:
- email:
recipients: ci@lists.gpii.net
Expand All @@ -101,6 +143,22 @@
# Mark the build as failed
fail: true

- job:
name: gpii-app-test-ltsc
description: 'GPII-APP tests in LTSC Windows 10'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant winrm LTSC -c "do.ps1 -c 'npm test'"
publishers:
- email:
recipients: ci@lists.gpii.net
wrappers:
- timeout:
# Abort after these many minutes
timeout: 60
# Mark the build as failed
fail: true

- job:
name: delete-gpii-app-vm
Expand Down
92 changes: 78 additions & 14 deletions jenkins_jobs/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: windows-tests
description: 'Main Jenkins job responsible for orchestrating tasks required to run GPII Windows tests'
project-type: multijob
build_timeout: 120
build_timeout: 180
node: h-0005.tor1.incd.ca
properties:
# Required by the GitHub PR builder plugin.
Expand All @@ -15,7 +15,7 @@
wrappers:
- timeout:
# Abort after these many minutes
timeout: 120
timeout: 180
# Mark the build as failed
fail: true
builders:
Expand All @@ -28,23 +28,35 @@
projects:
- name: windows-create-vm
predefined-parameters: parent_workspace=$WORKSPACE
- multijob:
name: windows-provision-vm
condition: COMPLETED
projects:
- name: windows-provision-1909
predefined-parameters: parent_workspace=$WORKSPACE
- name: windows-provision-ltsc
predefined-parameters: parent_workspace=$WORKSPACE
- multijob:
name: windows-code-analysis
condition: COMPLETED
projects:
- name: windows-code-analysis
predefined-parameters: parent_workspace=$WORKSPACE
- multijob:
name: windows-unit-tests
name: windows-unit-tests-1909
condition: COMPLETED
projects:
- name: windows-unit-tests
- name: windows-unit-tests-1909
predefined-parameters: parent_workspace=$WORKSPACE
- name: windows-unit-tests-ltsc
predefined-parameters: parent_workspace=$WORKSPACE
- multijob:
name: windows-acceptance-tests
name: windows-acceptance-tests-1909
condition: COMPLETED
projects:
- name: windows-acceptance-tests
- name: windows-acceptance-tests-1909
predefined-parameters: parent_workspace=$WORKSPACE
- name: windows-acceptance-tests-ltsc
predefined-parameters: parent_workspace=$WORKSPACE
- multijob:
name: windows-delete-vm
Expand All @@ -66,26 +78,78 @@
builders:
# Setting BUILD_ID for vagrant to make sure Jenkins process tree killer doesn't kill the VM
# before the next job is started
- shell: DISPLAY=:0 BUILD_ID=gpii-windows vagrant up --provider virtualbox
- shell: DISPLAY=:0 BUILD_ID=gpii-windows vagrant up --no-provision --provider virtualbox

- job:
name: windows-provision-1909
description: 'Job responsible for provisionin the VM 1909'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant provision 1909
publishers:
- email:
recipients: ci@lists.gpii.net

- job:
name: windows-provision-LTSC
description: 'Job responsible for provisionin the VM LTSC'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant provision LTSC
publishers:
- email:
recipients: ci@lists.gpii.net

- job:
name: windows-code-analysis
description: 'GPII Windows code analysis'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant winrm -c "do.ps1 -c 'grunt lint'"
- shell: vagrant winrm LTSC -c "do.ps1 -c 'grunt lint'"
publishers:
- email:
recipients: ci@lists.gpii.net

- job:
name: windows-unit-tests
description: 'GPII Windows unit tests'
name: windows-unit-tests-ltsc
description: 'GPII Windows unit tests in LTSC Windows 10'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant winrm LTSC -c "do.ps1 -c 'npm run test:unit'"
publishers:
- email:
recipients: ci@lists.gpii.net
wrappers:
- timeout:
timeout: 90
fail: true

- job:
name: windows-acceptance-tests-ltsc
description: 'GPII Windows acceptance tests in LTSC Windows 10'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant winrm LTSC -c "do.ps1 -c 'npm run test:acceptance'"
publishers:
- email:
recipients: ci@lists.gpii.net
wrappers:
- timeout:
timeout: 90
fail: true

- job:
name: windows-unit-tests-1909
description: 'GPII Windows unit tests in 1909 version of Windows 10'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant winrm -c "do.ps1 -c 'npm run test:unit'"
- shell: vagrant winrm 1909 -c "do.ps1 -c 'npm run test:unit'"
publishers:
- email:
recipients: ci@lists.gpii.net
Expand All @@ -95,12 +159,12 @@
fail: true

- job:
name: windows-acceptance-tests
description: 'GPII Windows acceptance tests'
name: windows-acceptance-tests-1909
description: 'GPII Windows acceptance tests in 1909 version of Windows 10'
node: h-0005.tor1.incd.ca
workspace: $parent_workspace
builders:
- shell: vagrant winrm -c "do.ps1 -c 'npm run test:acceptance'"
- shell: vagrant winrm 1909 -c "do.ps1 -c 'npm run test:acceptance'"
publishers:
- email:
recipients: ci@lists.gpii.net
Expand Down