D
Size: a a a
D
ЯI
V
ЯI
/**
* Given Jenkins credentials, clones Git repository via SSH
*
* @param url "ssh://${GERRIT_HOST}/${GERRIT_PROJECT}" string
* @param refspec "xxxx/master" or other refspec
* @param creds jenkins SSH credentials ID
*/
def clone(String url, String refspec, String creds){
// Usage example: gerrit.clone("ssh://${GERRIT_HOST}/${GERRIT_PROJECT}", '*/master', "jenkins-gerrit-ssh-creds")
checkout poll: false,
scm: [$class: 'GitSCM',
branches: [[name: refspec]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanBeforeCheckout']],
submoduleCfg: [],
userRemoteConfigs: [[refspec: '${GERRIT_REFSPEC}',
url: url,
credentialsId: creds ]]]
}
‘’’ЯI
ЯI
ЯI
ГЗ
V
ГЗ
АМ
ss -tulp
АМ
АМ
D
ЯI
D
ГЗ
АМ
АМ
ГЗ