Commit 40e689ff authored by tower's avatar tower

fff

parent 26128f69
...@@ -321,9 +321,9 @@ def build_java(systemName, branchName,contextDir) { ...@@ -321,9 +321,9 @@ def build_java(systemName, branchName,contextDir) {
sh "mkdir ${contextDir}/lib;touch ${contextDir}/lib/lib_folder.txt" sh "mkdir ${contextDir}/lib;touch ${contextDir}/lib/lib_folder.txt"
sh buildCmd sh buildCmd
sh "mv ${jarFilePath}/*.jar ${contextDir}/app.jar" sh "mv ${jarFilePath}/*.jar ${contextDir}/app.jar"
currentPath = sh (script: 'pwd',returnStdout: true).trim()
def libfolder = new File( "${jarFilePath}/lib" ) def libfolder = new File( "${currentPath}/target/lib" )
echo "${jarFilePath}/lib------ ${libfolder.exists()}---" echo "${currentPath}/target/lib------ ${libfolder.exists()}---"
if (libfolder.exists()){ if (libfolder.exists()){
sh "mv ${jarFilePath}/lib/* ${contextDir}/lib" sh "mv ${jarFilePath}/lib/* ${contextDir}/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