pipeline {
    agent any
    
    stages {
        stage('Checkout') {
            steps {
                checkout([
                    $class: 'SubversionSCM',
                    additionalCredentials: [],
                    excludedCommitMessages: '',
                    excludedRegions: '',
                    excludedRevprop: '',
                    excludedUsers: '',
                    filterChangelog: false,
                    ignoreDirPropChanges: false,
                    includedRegions: '',
                    locations: [[
                        cancelProcessOnExternalsFail: true,
                        credentialsId: 'PTS-Cred', 
                        depthOption: 'infinity',
                        ignoreExternalsOption: true,
                        local: '.', 
                        remote: 'repo location'
                    ]],
                    quietOperation: true,
                    workspaceUpdater: [$class: 'UpdateUpdater']
                ])
            }
        }
    }
    
    post {
        success {
            echo 'Checkout successful'
        }
        failure {
            echo 'Checkout failed'
        }
    }
}

This is the Jenkins log

Started by user admin
[Pipeline] Start of Pipeline
[Pipeline] End of Pipeline
Finished: SUCCESS

Help me to solve it.

0

There are 0 best solutions below