-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
88 lines (80 loc) · 3.08 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!groovy
def BN = (BRANCH_NAME == 'master' || BRANCH_NAME.startsWith('releases/')) ? BRANCH_NAME : 'releases/2025-07'
library "knime-pipeline@$BN"
properties([
pipelineTriggers([
upstream('knime-credentials-base/' + env.BRANCH_NAME.replaceAll('/', '%2F'))
]),
parameters(workflowTests.getConfigurationsAsParameters() + fsTests.getFSConfigurationsAsParameters()),
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds()
])
SSHD_IMAGE = "${dockerTools.ECR}/knime/sshd:alpine3.11"
SMBD_IMAGE = "${dockerTools.ECR}/knime/smb:alpine3.11"
try {
// build
knimetools.defaultTychoBuild('org.knime.update.filehandling')
withEnv(["KNIME_FTPD_ADDRESS=remote-docker.devops.knime.com:21"]){
// test
testConfigs = [
UnitTests: {
stage('Testing remote FS'){
// The integrated workflowtests only work on ubunutu at the moment
workflowTests.runIntegratedWorkflowTests(configurations: workflowTests.DEFAULT_FEATURE_BRANCH_CONFIGURATIONS,
profile: "test", sidecarContainers: [
[ image: SSHD_IMAGE, namePrefix: "SSHD", port: 22 ]
])
}
},
WorkflowTests: {
workflowTests.runTests(
dependencies: [
repositories: [
'knime-gateway',
'knime-credentials-base',
'knime-cef',
'knime-filehandling',
'knime-datageneration',
'knime-xml',
'knime-js-core',
'knime-js-base',
'knime-server-client',
'knime-com-shared',
'knime-productivity-oss',
'knime-reporting',
'knime-jfreechart',
'knime-distance',
'knime-streaming',
'knime-kerberos',
'knime-ensembles'
]
],
sidecarContainers: [
[ image: SSHD_IMAGE, namePrefix: "SSHD", port: 22 ],
[ image: SMBD_IMAGE, namePrefix: "SMBD", port: 445 ]
]
)
},
FilehandlingTests: {
workflowTests.runFilehandlingTests (
dependencies: [
repositories: [
"knime-filehandling", "knime-kerberos"
]
],
)
}
]
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: */