fix: ensure Jenkins checks out main branch before push
This commit is contained in:
parent
96ca064c02
commit
8ef3f54582
|
|
@ -70,6 +70,7 @@ pipeline {
|
||||||
credentialsId: env.MANIFEST_CRED_ID
|
credentialsId: env.MANIFEST_CRED_ID
|
||||||
]]
|
]]
|
||||||
])
|
])
|
||||||
|
sh "git checkout ${env.BRANCH} || git checkout -b ${env.BRANCH}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue