Compare commits

..

No commits in common. "8f80603f78c108ebc7df5b9e8f1950a28e4e939b" and "e10bb09d7b2fd14a313c66a3fcb764ce24ac9c66" have entirely different histories.

2 changed files with 2 additions and 3 deletions

2
Jenkinsfile vendored
View File

@ -86,7 +86,6 @@ pipeline {
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()
def mergeCommitHash = sh(script: "git rev-parse HEAD", 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
@ -99,6 +98,7 @@ pipeline {
""" """
echo "PR ${prId} merged successfully into main!" echo "PR ${prId} merged successfully into main!"
def mergeCommitHash = sh(script: "git rev-parse HEAD", returnStdout: true).trim()
echo "Merge commit hash: ${mergeCommitHash}" echo "Merge commit hash: ${mergeCommitHash}"
sh """ sh """
curl -v -X POST -u "${GITEA_USER}:${GITEA_PASS}" \ curl -v -X POST -u "${GITEA_USER}:${GITEA_PASS}" \

View File

@ -3,4 +3,3 @@
```bash ```bash
docker build -t test-ci-cd . docker build -t test-ci-cd .
docker run --rm --name test-ci-cd -p 8000:8080 test-ci-cd:latest docker run --rm --name test-ci-cd -p 8000:8080 test-ci-cd:latest
kakak3