This repository has been archived by the owner on Mar 30, 2021. It is now read-only.
forked from eclipse/Xpect
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
37 lines (30 loc) · 1.47 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
/*******************************************************************************
* Copyright (c) 2012-2017 TypeFox GmbH and itemis AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Moritz Eysholdt - Initial contribution and API
*******************************************************************************/
// tell Jenkins how to build projects from this repository
node {
def mvnHome = tool 'M3'
def mvnParams = '--batch-mode --update-snapshots -fae -Dmaven.repo.local=xpect-local-maven-repository -DtestOnly=false'
stage ('compile with Eclipse Luna and Xtext 2.9.2') {
checkout scm
sh "${mvnHome}/bin/mvn -P!tests -Dtarget-platform=eclipse_4_4_2-xtext_2_9_2 ${mvnParams} clean install"
archive 'org.xpect.releng/p2-repository/target/repository/**/*.*'
}
wrap([$class:'Xvnc', useXauthority: true]) {
stage ('test with Eclipse Luna and Xtext 2.9.2') {
sh "${mvnHome}/bin/mvn -P!plugins -P!xtext-examples -Dtarget-platform=eclipse_4_4_2-xtext_2_9_2 ${mvnParams} clean integration-test"
junit '**/TEST-*.xml'
}
stage ('test with Eclipse Mars and Xtext nighly') {
sh "${mvnHome}/bin/mvn -P!plugins -P!xtext-examples -Dtarget-platform=eclipse_4_5_0-xtext_nightly ${mvnParams} clean integration-test"
junit '**/TEST-*.xml'
}
}
}