-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathJenkinsfile
59 lines (52 loc) · 2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
#!groovy
def BN = (BRANCH_NAME == 'master' || BRANCH_NAME.startsWith('releases/')) ? BRANCH_NAME : 'releases/2025-07'
library "knime-pipeline@$BN"
properties([
pipelineTriggers([
upstream("knime-database/${env.BRANCH_NAME.replaceAll('/', '%2F')}" +
", knime-js-base/${env.BRANCH_NAME.replaceAll('/', '%2F')}")
]),
parameters(workflowTests.getConfigurationsAsParameters() + fsTests.getFSConfigurationsAsParameters()),
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds()
])
SSHD_IMAGE = "${dockerTools.ECR}/knime/sshd:alpine3.11"
try {
// Unit tests require an R installation, which is present in a workflow-tests node
knimetools.defaultTychoBuild('org.knime.update.r', "workflow-tests && maven && java17")
testConfigs = [
WorkflowTests: {
workflowTests.runTests(
dependencies: [
repositories: ['knime-r', 'knime-datageneration', 'knime-js-base',
'knime-database', 'knime-office365', 'knime-filehandling', 'knime-kerberos',
'knime-exttool', 'knime-chemistry', 'knime-distance',
'knime-python-legacy', 'knime-conda']
],
sidecarContainers: [
[ image: SSHD_IMAGE, namePrefix: "SSHD", port: 22 ]
]
)
},
FilehandlingTests: {
workflowTests.runFilehandlingTests (
dependencies: [
repositories: [
"knime-r", 'knime-database', 'knime-office365', 'knime-kerberos', 'knime-js-base', 'knime-datageneration'
]
],
)
}
]
parallel testConfigs
stage('Sonarqube analysis') {
env.lastStage = env.STAGE_NAME
workflowTests.runSonar()
}
} catch (ex) {
currentBuild.result = 'FAILURE'
throw ex
} finally {
notifications.notifyBuild(currentBuild.result);
}
/* vim: set shiftwidth=4 expandtab smarttab: */