Fix driver file overwrite problems

This commit is contained in:
Christian Beikov 2023-08-15 16:11:20 +02:00
parent 6a56fc62e5
commit 0bef808d3e
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ stage('Build') {
try { try {
if (buildEnv.dbLockableResource == null) { if (buildEnv.dbLockableResource == null) {
withCredentials([file(credentialsId: 'sybase-jconnect-driver', variable: 'jconnect_driver')]) { withCredentials([file(credentialsId: 'sybase-jconnect-driver', variable: 'jconnect_driver')]) {
sh 'cp $jconnect_driver ./drivers/jconn4.jar' sh 'cp -f $jconnect_driver ./drivers/jconn4.jar'
timeout( [time: buildEnv.longRunning ? 480 : 120, unit: 'MINUTES'] ) { timeout( [time: buildEnv.longRunning ? 480 : 120, unit: 'MINUTES'] ) {
sh cmd sh cmd
} }