Проверка2
test-org/test-ci-cd/pipeline/pr-main There was a failure building this commit
Details
test-org/test-ci-cd/pipeline/pr-main There was a failure building this commit
Details
parent
f1a8594a2f
commit
8cc0fe3dd7
|
|
@ -82,7 +82,7 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
if (env.CHANGE_BRANCH?.startsWith('rc')) {
|
if (env.CHANGE_BRANCH?.startsWith('rc')) {
|
||||||
echo "Attempting to merge PR ${env.CHANGE_ID} into master..."
|
echo "Attempting to merge PR ${env.CHANGE_ID} into master..."
|
||||||
def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim()
|
def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim() || null
|
||||||
withCredentials([usernamePassword(credentialsId: 'gitea_creds', usernameVariable: 'GITEA_USER', passwordVariable: 'GITEA_PASS')]) {
|
withCredentials([usernamePassword(credentialsId: 'gitea_creds', usernameVariable: 'GITEA_USER', passwordVariable: 'GITEA_PASS')]) {
|
||||||
def prId = env.CHANGE_ID
|
def prId = env.CHANGE_ID
|
||||||
echo "GIT_COMMIT: ${env.GIT_COMMIT}"
|
echo "GIT_COMMIT: ${env.GIT_COMMIT}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue