forked from eclipse/mita
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
56 lines (51 loc) · 1.75 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
/********************************************************************************
* Copyright (c) 2017, 2018 TypeFox GmbH.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Contributors:
* TypeFox GmbH - initial contribution
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
pipeline {
agent any
tools {
maven 'apache-maven-latest'
jdk 'jdk1.8.0-latest'
}
stages {
stage("build") {
steps {
checkout scm;
// clean local copies of mita artifacts
sh 'rm -rf /opt/public/hipp/homes/genie.mita/.m2/repository/org/eclipse/mita/'
sh "mvn -U -Pplugins -Pplatforms -P!tests -P!deployment -Psign -f bundles/pom.xml clean install"
}
}
stage('base tests') {
steps {
wrap([$class:'Xvnc', useXauthority: true]) {
sh "mvn -P!plugins -P!platforms -Ptests -P!deployment -P!sign -f bundles/pom.xml clean install"
}
}
post {
success {
junit 'bundles/**/target/surefire-reports/TEST-*.xml'
}
}
}
stage("deploy") {
steps {
sh "mvn -P!plugins -P!platforms -P!tests -Pdeployment -Psign -f bundles/pom.xml clean install"
}
post {
always {
archiveArtifacts artifacts: 'bundles/org.eclipse.mita.repository/target/*,bundles/org.eclipse.mita.cli/target/*-cli.jar', fingerprint: true
}
}
}
}
}