Проверка3
test-org/test-ci-cd/pipeline/pr-main There was a failure building this commit Details

pull/9/head
yuobrezkov 2025-04-09 16:42:34 +03:00
parent 8cc0fe3dd7
commit 00d3927df6
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -30,7 +30,7 @@ pipeline {
stage ('Initialize variables') { stage ('Initialize variables') {
steps { steps {
script { script {
def lastVersion = sh(script: "git describe --tags --abbrev=0", returnStdout: true).trim() def lastVersion = sh(script: "git describe --tags --abbrev=0", returnStdout: true).trim() || null
if (!lastVersion) { if (!lastVersion) {
lastVersion = "0.0.0" lastVersion = "0.0.0"
@ -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() || null def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim()
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}"