void run()

in stages/PushMavenApplicationLibrary.groovy [24:34]


    void run(context) {
        script.dir("${context.workDir}") {
            def nexusRepositoryUrl = context.codebase.version.toLowerCase().contains("snapshot") ?
                    context.buildTool.snapshotRepository : context.buildTool.releaseRepository
            script.withCredentials([script.usernamePassword(credentialsId: "${context.nexus.credentialsId}",
                    passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME')]) {
                script.sh "${context.buildTool.command} ${context.buildTool.properties} -Dartifactory.username=${script.USERNAME} -Dartifactory.password=${script.PASSWORD}" +
                        " deploy -DskipTests=true -Dlicense.skip -DaltDeploymentRepository=nexus::default::${nexusRepositoryUrl} -DaltSnapshotDeploymentRepository=snapshots::default::${nexusRepositoryUrl} -DaltReleaseDeploymentRepository=nexus::default::${nexusRepositoryUrl}"
            }
        }
    }