-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
46 lines (42 loc) · 1.5 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!groovy
@Library('katsdpjenkins') _
katsdp.killOldJobs()
katsdp.setDependencies([
'ska-sa/katsdpsigproc/master',
'ska-sa/katsdpdockerbase/master',
'ska-sa/katsdpservices/master',
'ska-sa/katsdptelstate/master',
'ska-sa/katsdpmodels/master',
'ska-sa/katdal/master',
'ska-sa/katpoint/master'])
catchError {
katsdp.stagePrepare(timeout: [time: 60, unit: 'MINUTES'])
katsdp.stageNosetestsGpu(cuda: true, opencl: true)
katsdp.stageFlake8()
katsdp.stageMypy()
katsdp.stageMakeDocker(venv: true)
stage('katsdpingest/autotuning') {
if (katsdp.notYetFailed()) {
katsdp.simpleNode(label: 'cuda-A30', timeout: [time: 60, unit: 'MINUTES']) {
deleteDir()
katsdp.unpackGit()
katsdp.unpackVenv()
katsdp.unpackKatsdpdockerbase()
withCredentials([usernamePassword(
credentialsId: 'harbor-dpp',
usernameVariable: 'HARBOR_USER',
passwordVariable: 'HARBOR_PASS')]) {
sh 'docker login -u "$HARBOR_USER" -p "$HARBOR_PASS" "harbor.sdp.kat.ac.za"'
}
katsdp.virtualenv('venv') {
dir('git') {
lock("katsdpingest-autotune-${env.BRANCH_NAME}") {
sh './jenkins-autotune.sh a30'
}
}
}
}
}
}
}
katsdp.mail('[email protected]')