-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathJenkinsfile
55 lines (49 loc) · 1.62 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
#!groovy
def BN = (BRANCH_NAME == 'master' || BRANCH_NAME.startsWith('releases/')) ? BRANCH_NAME : 'releases/2025-07'
library "knime-pipeline@$BN"
properties([
pipelineTriggers([
upstream('knime-javasnippet/' + env.BRANCH_NAME.replaceAll('/', '%2F'))
]),
buildDiscarder(logRotator(numToKeepStr: '5')),
parameters(workflowTests.getConfigurationsAsParameters([
ignoreConfiguration: ['macosx-aarch']
])),
disableConcurrentBuilds()
])
try {
// Needs more RAM because of the dependency on tensorflow
// it needs to download and install a bunch of large binaries
// Therefore we use the 'large' image and allow mvn to use 4G of memory
withEnv(["MAVEN_OPTS=-Xmx4G"]){
knimetools.defaultTychoBuild('org.knime.update.activelearning', 'maven && large && java17')
}
workflowTests.runTests(
dependencies: [
repositories: [
'knime-activelearning',
'knime-datageneration',
'knime-deeplearning',
'knime-distance',
'knime-filehandling',
'knime-kerberos',
'knime-jep',
'knime-jfreechart',
'knime-js-base',
'knime-streaming',
'knime-tensorflow'
],
],
withAssertions: true,
)
stage('Sonarqube analysis') {
env.lastStage = env.STAGE_NAME
workflowTests.runSonar()
}
} catch (ex) {
currentBuild.result = 'FAILURE'
throw ex
notifications.notifyBuild(currentBuild.result)
} finally {
}
/* vim: set shiftwidth=4 expandtab smarttab: */