I have a jenkins pipeline which has two stage, two stage need clone code from code and parallel run different agent, how to share code in the stages?
stages {
parallel("a":
node('label1'){
stage("Source"){
git 'xxx'
}
}
,
"b":node('label2'){
stage("Source"){
git 'xxx'
}
}
}
}