def publishToNightlies()

in vars/asfMainNetBeansBuild.groovy [283:306]


def publishToNightlies(remotedirectory , source, prefix="") {
    // test if sshPublisher is known
    //if (this.getBinding().hasVariable('sshPublisher')) {
    sshPublisher(publishers: [
            sshPublisherDesc(configName: 'Nightlies', transfers: [
                    sshTransfer(cleanRemote: true,
                        excludes: '',
                        execCommand: '',
                        execTimeout: 0,
                        flatten: false,
                        makeEmptyDirs: false,
                        noDefaultExcludes: false,
                        patternSeparator: '[, ]+',
                        remoteDirectory: remotedirectory,
                        remoteDirectorySDF: false,
                        removePrefix: prefix,
                        sourceFiles: source)],
                usePromotionTimestamp: false,
                useWorkspaceInPromotion: false,
                verbose: false)])
    //} else {
    //     println "NO SSH PUBLISHER TO PUSH TO NIGHTLIES"
    //}
}