Commit ea2835e2 authored by 温海元's avatar 温海元

add sh

parent 953046d0
...@@ -511,7 +511,10 @@ def build_java(systemName, branchName,contextDir) { ...@@ -511,7 +511,10 @@ def build_java(systemName, branchName,contextDir) {
sh 'mvn -v' sh 'mvn -v'
sh 'env' sh 'env'
sh buildCmd sh buildCmd
sh "mv ${jarFilePath}/*.jar ${contextDir}/app.jar" // sh "mv ${jarFilePath}/*.jar ${contextDir}/app.jar"
sh "ls ${jarFilePath}/ | grep -v '-javadoc' | grep -v '-sources' | xargs '{}' mv ${jarFilePath}/{}.jar ${contextDir}/app.jar"
currentPath = sh (script: 'pwd',returnStdout: true).trim() currentPath = sh (script: 'pwd',returnStdout: true).trim()
def libfolder = new File( "${currentPath}/target/lib" ) def libfolder = new File( "${currentPath}/target/lib" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment