i have created a jenkins pipe line build where using below pipline code when i try to build a error appears stating "Checking out http://192.160.142.39/Mobility/branches/AppiumTesting/test.automation at revision '2023-02-20T12:07:18.262 +0530' Using sole credentials in realm ‘http://192.160.142.39:80 VisualSVN Server’ ERROR: Subversion checkout has been canceled"
i have tried suggestions mentioned in many threads as well , but not able to fix this issue . could you please suggest the issue :-
PipeLine COde:- pipeline { agent any stages { stage('Checkout') { steps { script { def svnUrl = 'http://192.160.142.39/Mobility/branches/AppiumTesting/test.automation' def svnCredsId = 'APatil' // ID of the SVN credentials in Jenkins def workspace = pwd() // current working directory
// Checkout source code from SVN repository
svn url: svnUrl,
credentialsId: svnCredsId,
revision: 'HEAD',
depthOption: 'infinity',
ignoreExternals: true,
changelog: false,
workspaceUpdater: [$class: 'CheckoutUpdater'],
poll: false,
quiet: true,
workspaceUpdaterArguments: [location: workspace]
}
}
}
stage('Build and Package') {
steps {
// Build and package the code into a JAR file
withMaven(maven: 'maven-3.8.2') {
sh 'mvn clean package'
}
}
}
stage('Deploy to Nexus') {
steps {
// Deploy the JAR file to a Nexus repository
nexusPublisher nexusInstanceId: 'nexus',
nexusRepositoryId: 'maven-snapshots',
packages: [[$class: 'MavenPackage', mavenCoords: 'test.automation:core:1.0-SNAPSHOT',
file: 'target/core-1.0.jar']]
}
}
}
}