-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
75 lines (67 loc) · 2.5 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
#!groovy
def BN = (BRANCH_NAME == 'master' || BRANCH_NAME.startsWith('releases/')) ? BRANCH_NAME : 'releases/2025-07'
library "knime-pipeline@$BN"
properties([
pipelineTriggers([
upstream("knime-json/${env.BRANCH_NAME.replaceAll('/', '%2F')}" +
", knime-database/${env.BRANCH_NAME.replaceAll('/', '%2F')}" +
", knime-textprocessing/${env.BRANCH_NAME.replaceAll('/', '%2F')}")
]),
parameters(workflowTests.getConfigurationsAsParameters()),
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds()
])
MINIO_IMAGE = "minio/minio:RELEASE.2021-11-03T03-36-36Z"
try {
// provide the name of the update site project
knimetools.defaultTychoBuild('org.knime.update.aws')
withEnv([ "KNIME_S3_COMPATIBLE_USER=AKIAIOSVODTN7",
"KNIME_S3_COMPATIBLE_PASSWORD=wJalrXUtnXpiGh/7MDENG/bPxRfiCY" ]) {
workflowTests.runTests(
dependencies: [
repositories: [
'knime-credentials-base',
'knime-gateway',
'knime-aws',
'knime-bigdata',
'knime-bigdata-externals',
'knime-cloud',
'knime-credentials-base',
'knime-database',
'knime-datageneration',
'knime-expressions',
'knime-gateway',
'knime-jep',
'knime-js-base',
'knime-json',
'knime-filehandling',
'knime-textprocessing',
'knime-database',
'knime-kerberos',
'knime-streaming',
'knime-office365',
'knime-rest',
'knime-xml'
]
],
sidecarContainers: [
[ image: MINIO_IMAGE, namePrefix: "S3_COMPATIBLE", cmd: 'server /data', port: 9000,
envArgs: [
"MINIO_ROOT_USER=${env.KNIME_S3_COMPATIBLE_USER}",
"MINIO_ROOT_PASSWORD=${env.KNIME_S3_COMPATIBLE_PASSWORD}"
]
]
]
)
}
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: */