-
Notifications
You must be signed in to change notification settings - Fork 10
/
Jenkinsfile
50 lines (45 loc) · 1.66 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
#!groovy
def BN = (BRANCH_NAME == 'master' || BRANCH_NAME.startsWith('releases/')) ? BRANCH_NAME : 'releases/2024-12'
library "knime-pipeline@$BN"
properties([
pipelineTriggers([upstream(
'knime-base/' + env.BRANCH_NAME.replaceAll('/', '%2F')
)]),
parameters(workflowTests.getConfigurationsAsParameters() + fsTests.getFSConfigurationsAsParameters()),
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds()
])
try {
knimetools.defaultTychoBuild('org.knime.update.ext.textprocessing')
workflowTests.runTests(
dependencies: [
repositories: [
'knime-textprocessing',
'knime-filehandling',
'knime-kerberos',
'knime-datageneration',
'knime-productivity-oss',
'knime-jep',
'knime-streaming',
'knime-reporting'
],
ius: [
'org.knime.features.ext.textprocessing.language.arabic.feature.group',
'org.knime.features.ext.textprocessing.language.chinese.feature.group',
'org.knime.features.ext.textprocessing.language.spanish.feature.group',
'org.knime.features.ext.textprocessing.language.german.feature.group',
'org.knime.features.ext.textprocessing.language.french.feature.group'
]
]
)
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: */