-
Notifications
You must be signed in to change notification settings - Fork 9
/
Jenkinsfile
42 lines (37 loc) · 2.12 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
node {
// Get the maven tool.
// ** NOTE: This 'M3' maven tool must be configured
// ** in the Jenkins global configuration.
def mvnHome = tool 'M3'
sh "echo ${mvnHome}"
// Mark the code checkout 'stage'....
stage 'Checkout'
// Get some code from a GitHub repository
checkout scm
// Mark the code build 'stage'....
stage 'Build AJSC6'
// Run the maven build
//sh for unix bat for windows
sh "${mvnHome}/bin/mvn -f sdk-java-common-logging/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-starter/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-error/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-dao/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-interceptor/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-utility/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-configuration/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-si-interceptor/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-camel-interceptor/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-restlet-interceptor/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-introscope-interceptors/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-logging-interceptor/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-springservice/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-camel-rest/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-spring-cloud-file/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-common-interceptors/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-restlet-common/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-aaf-interceptors/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-rest/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-camel-archetype/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-jersey-archetype/pom.xml clean deploy"
sh "${mvnHome}/bin/mvn -f sdk-java-restlet-archetype/pom.xml clean deploy"
}