Add missing library
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -4,13 +4,13 @@ pipeline {
|
||||
stage('Compile'){
|
||||
steps {
|
||||
sh "mkdir -p bin"
|
||||
sh "/tool/jdk1.6.0_45/bin/javac -target 1.5 -cp /tool/junit4/* -d bin \$(find ./src/* | grep .java)"
|
||||
sh "/tool/jdk1.6.0_45/bin/javac -target 1.5 -cp /tool/junit4/\* -d bin \$(find ./src/* | grep .java)"
|
||||
}
|
||||
}
|
||||
stage('Test'){
|
||||
steps {
|
||||
sh '''
|
||||
find bin/test -name "*.class" | sed \'s/bin\\///\' | sed \'s/\\.class//\' | tr \'/\' \'.\' | xargs -I {} java -cp ./bin:/tool/junit4/* org.junit.runner.JUnitCore {}
|
||||
find bin/test -name "*.class" | sed \'s/bin\\///\' | sed \'s/\\.class//\' | tr \'/\' \'.\' | xargs -I {} java -cp ./bin:/tool/junit4/\* org.junit.runner.JUnitCore {}
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user