aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
blob: a8161fc79c63f1fd7cd8ed282436ef726f0c2b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 DMAAP-DR'
    // Run the maven build
    //sh for unix bat for windows
	
	sh "${mvnHome}/bin/mvn -f datarouter-prov/pom.xml clean deploy"
    sh "${mvnHome}/bin/mvn -f datarouter-node/pom.xml clean deploy"

	
   
}