-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJenkinsfile
70 lines (65 loc) · 2.49 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
#!groovy
def BN = (BRANCH_NAME == 'master' || BRANCH_NAME.startsWith('releases/')) ? BRANCH_NAME : 'releases/2025-07'
library "knime-pipeline@$BN"
properties([
pipelineTriggers([
// knime-expressions -> knime-base -> knime-json
// knime-javasnippet -> knime-json
upstream("knime-json/${env.BRANCH_NAME.replaceAll('/', '%2F')}" +
", knime-xml/${env.BRANCH_NAME.replaceAll('/', '%2F')}" +
", knime-svg/${env.BRANCH_NAME.replaceAll('/', '%2F')}")
]),
parameters(workflowTests.getConfigurationsAsParameters()),
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds()
])
try {
knimetools.defaultTychoBuild('org.knime.update.rest')
workflowTests.runTests(
dependencies: [
repositories: [
'knime-conda',
'knime-core-columnar',
'knime-credentials-base',
'knime-distance',
'knime-expressions',
'knime-filehandling',
'knime-gateway',
'knime-jfreechart',
'knime-js-base',
'knime-js-core',
'knime-json',
'knime-kerberos',
'knime-python',
'knime-python-legacy',
'knime-reporting',
'knime-rest',
'knime-scripting-editor',
'knime-stats',
'knime-streaming',
'knime-textprocessing',
'knime-timeseries',
'knime-xml',
],
ius: [
'org.knime.features.kerberos.feature.group',
]
],
sidecarContainers: [
[ image: "docker.io/kalaksi/tinyproxy:1.6", namePrefix: "TINYPROXYAUTH", port: 8888, envArgs: ["STAT_HOST=tinyproxy.stats", "MAX_CLIENTS=500", "ALLOWED_NETWORKS=0.0.0.0/0", "LOG_LEVEL=Info", "TIMEOUT=300", "AUTH_USER='knime-proxy'", "AUTH_PASSWORD='knime-proxy-password'"]
],
[ image: "docker.io/kalaksi/tinyproxy:1.6", namePrefix: "TINYPROXY", port: 8888, envArgs: ["STAT_HOST=tinyproxy.stats", "MAX_CLIENTS=500", "ALLOWED_NETWORKS=0.0.0.0/0", "LOG_LEVEL=Info", "TIMEOUT=300"]
],
]
)
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: */