This repository has been archived by the owner on Dec 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Jenkinsfile
45 lines (44 loc) · 1.89 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
/*********************************************************************
* Copyright (c) 2019 Bosch Software Innovations GmbH [and others]
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
pipeline {
agent any
stages {
stage ("Test") {
steps {
git 'https://github.com/eclipse/kuksa.integration.git'
sh """cd testing && \
export JAVA_HOME=/opt/tools/java/openjdk/latest && \
/opt/tools/apache-maven/latest/bin/mvn --batch-mode clean test \
-Dhono_device_registry=${hono_device_registry} \
-Dhono_dispatch_router=${hono_dispatch_router} \
-Dhono_adapter_http_vertx=${hono_adapter_http_vertx} \
-Dhono_adapter_mqtt_vertx=${hono_adapter_mqtt_vertx} \
-Dhawkbit_address=${hawkbit_address} \
-Dhawkbit_username=${hawkbit_username} \
-Dhawkbit_password=${hawkbit_password} \
-Dappstore_address=${appstore_address} \
-Dappstore_username=${appstore_username} \
-Dappstore_password=${appstore_password} \
-Dhono_client_host=${hono_client_host} \
-Dhono_client_port=${hono_client_port} \
-Dhono_client_password=${hono_client_password} \
-Dhono_client_username=${hono_client_username} \
"""
}
}
}
post {
failure {
mail to: '[email protected]',
subject: "Failed Jenkins Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}