This repository was archived by the owner on Aug 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
62 lines (61 loc) · 2.03 KB
/
Jenkinsfile
File metadata and controls
62 lines (61 loc) · 2.03 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
pipeline {
agent any
tools {
jdk 'JDK8'
maven 'MAVEN3'
}
triggers {
pollSCM('H/5 * * * *')
upstream(upstreamProjects: "compilations/openchrom-community/${BRANCH_NAME}", threshold: hudson.model.Result.SUCCESS)
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '5'))
}
stages {
stage('checkout') {
steps {
dir('knimeconnector') {
checkout scm
}
}
}
stage('build') {
steps {
dir('chemclipse/chemclipse'){
sh 'wget https://raw.githubusercontent.com/eclipse/chemclipse/develop/chemclipse/pom.xml'
}
dir('openchrom/openchrom'){
sh 'wget https://raw.githubusercontent.com/OpenChrom/openchrom/develop/openchrom/pom.xml'
}
dir('knimeconnector') {
sh 'mvn -B -Dmaven.repo.local=.repository -Dtycho.localArtifacts=ignore -f openchrom/releng/net.openchrom.knime.aggregator/pom.xml clean install'
}
}
}
stage('deploy') {
when { branch 'develop' }
steps {
withCredentials([string(credentialsId: 'DEPLOY_HOST', variable: 'DEPLOY_HOST')]) {
sh 'scp -r knimeconnector/openchrom/sites/net.openchrom.knimeconnector.updateSite/target/repository/* '+"${DEPLOY_HOST}knime/3.5"
}
}
}
}
post {
always {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml'
warnings canRunOnFailed: true, consoleParsers: [[parserName: 'Maven']], shouldDetectModules: true
openTasks canRunOnFailed: true, ignoreCase: true, high: 'FIXME', low: 'XXX', normal: 'TODO', pattern: '**/*.java', shouldDetectModules: true
}
failure {
emailext(body: '${DEFAULT_CONTENT}', mimeType: 'text/html',
replyTo: '$DEFAULT_REPLYTO', subject: '${DEFAULT_SUBJECT}',
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']]))
}
success {
cleanWs notFailBuild: true
}
}
}