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

modify sh

parent 1024c037
......@@ -321,7 +321,8 @@ def build_java(systemName, branchName,contextDir) {
sh "mkdir ${contextDir}/lib ${contextDir}/config;touch ${contextDir}/lib/lib.txt;touch ${contextDir}/config/config.txt"
sh 'mvn -v'
sh buildCmd
sh "mv ${jarFilePath}/*.jar ${contextDir}/app.jar"
sh "ls |grep -v app-starter-1.0-SNAPSHOT-javadoc|grep -v app-starter-1.0-SNAPSHOT-sources ${jarFilePath}/*.jar ${contextDir}/app.jar"
sh "mv |grep -v app-starter-1.0-SNAPSHOT-javadoc|grep -v app-starter-1.0-SNAPSHOT-sources ${jarFilePath}/*.jar ${contextDir}/app.jar"
currentPath = sh (script: 'pwd',returnStdout: true).trim()
def libfolder = new File( "${currentPath}/target/lib" )
echo "${currentPath}/target/lib is exist : ${libfolder.exists()}"
......
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