-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
153 lines (143 loc) · 6.56 KB
/
Jenkinsfile
File metadata and controls
153 lines (143 loc) · 6.56 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!groovy
library "knime-pipeline@$DEFAULT_LIBRARY_VERSION"
properties([
pipelineTriggers([
upstream("knime-bigdata-externals/${env.BRANCH_NAME.replaceAll('/', '%2F')}" +
", knime-database/${env.BRANCH_NAME.replaceAll('/', '%2F')}" +
", knime-pmml-compilation/${env.BRANCH_NAME.replaceAll('/', '%2F')}" +
", knime-python-legacy/${env.BRANCH_NAME.replaceAll('/', '%2F')}")
]),
parameters(workflowTests.getConfigurationsAsParameters() + fsTests.getFSConfigurationsAsParameters()),
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds()
])
try {
withEnv(["MAVEN_OPTS=-Xmx4G"]){
knimetools.defaultTychoBuild('org.knime.update.bigdata', 'maven && java21 && large')
}
def baseBranch
stage("Determine Basebranch") {
node('macosx||macosx-aarch'){
checkout scm
baseBranch = knimetools.getBaseBranch()
echo "Basebranch is ${baseBranch}"
}
}
testConfigs = [
WorkflowTests: {
// TEST REGEX
def local_bd_tests = "(SparkLocal|SparkExecutor|SparkDatabase|BigDataFileFormats)/(spark_2_[0-4]_higher|spark_3_5_higher|spark_all|ORC|Parquet|DeltaTable)/(?!KnimeOnSpark_ServerProfiles_[a-z])(?!BD163_GenericDataSource_NoDriver)(?!BD892_KerberosImpersonation_Spark)(?!NewDBFramework/BD921_Spark2Hive_no_default_db).+"
def testPrefix = "BigDataTests/${baseBranch == 'releases/STS' || baseBranch == 'releases/STS-next' ? 'master' : baseBranch}".replaceAll('releases/', '')
def testRegex = "/${testPrefix}/${local_bd_tests}"
echo "${testRegex}"
withEnv([ "KNIME_POSTGRES_USER=knime01", "KNIME_POSTGRES_PASSWORD=password",
"KNIME_MYSQL_USER=root", "KNIME_MYSQL_PASSWORD=password",
"KNIME_MSSQLSERVER_USER=sa", "KNIME_MSSQLSERVER_PASSWORD=@SaPassword123",
"KNIME_ORACLE_USER=SYSTEM", "KNIME_ORACLE_PASSWORD=password"
]){
workflowTests.runTests(
testflowsDir: testPrefix,
testflowsRegex: testRegex,
extraNodeLabel: 'large',
dependencies: [
repositories: [
'knime-aws',
'knime-azure',
'knime-bigdata-externals',
'knime-bigdata',
'knime-cef',
'knime-cloud',
'knime-conda',
'knime-credentials-base',
'knime-database',
'knime-database-proprietary',
'knime-datageneration',
'knime-distance',
'knime-ensembles',
'knime-expressions',
'knime-filehandling',
'knime-gateway',
'knime-h2o',
'knime-hubclient-sdk',
'knime-itemset',
'knime-jep',
'knime-jfreechart',
'knime-js-base',
'knime-kerberos',
'knime-office365',
'knime-on-spark',
'knime-perl',
'knime-pmml-translation',
'knime-pmml',
'knime-python-legacy',
'knime-rest',
'knime-reporting',
'knime-sparkling-water',
'knime-stats',
'knime-streaming',
'knime-svm',
'knime-testing-internal',
'knime-textprocessing',
'knime-timeseries',
'knime-virtual',
'knime-xml',
],
ius: [
'org.knime.features.ext.h2o.mojo.spark.feature.group',
'org.knime.features.ext.h2o.spark.feature.group',
],
],
sidecarContainers: [
[ image: "${dockerTools.ECR}/knime/mssql-server", namePrefix: "MSSQLSERVER", port: 1433,
envArgs: ["ACCEPT_EULA=Y", "SA_PASSWORD=${env.KNIME_MSSQLSERVER_PASSWORD}", "MSSQL_DB=knime_testing"]
],
[ image: "${dockerTools.ECR}/knime/oracle-xe-11g", namePrefix: "ORACLE", port: 1521,
envArgs: [ "DEFAULT_SYS_PASS=Pw40racle" ]
],
[ image: "${dockerTools.ECR}/knime/postgres:12", namePrefix: "POSTGRES", port: 5432,
envArgs: [
"POSTGRES_USER=${env.KNIME_POSTGRES_USER}", "POSTGRES_PASSWORD=${env.KNIME_POSTGRES_PASSWORD}",
"POSTGRES_DB=knime_testing"
]
],
[ image: "${dockerTools.ECR}/knime/mysql5", namePrefix: "MYSQL", port: 3306,
envArgs: ["MYSQL_ROOT_PASSWORD=${env.KNIME_MYSQL_PASSWORD}"]
],
]
)
}
},
FileHandlingTests: {
def fhTestflowsDir = "BigDataTests/${baseBranch}/File Handling v2"
workflowTests.runFilehandlingTests (
testflowsDir: fhTestflowsDir,
dependencies: [
repositories: [
'knime-aws',
'knime-azure',
'knime-bigdata',
'knime-bigdata-externals',
'knime-cloud',
'knime-database',
'knime-datageneration',
'knime-jep',
'knime-kerberos',
'knime-office365',
'knime-streaming'
]
]
)
}
]
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: */