mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-30 07:44:19 +08:00
update
This commit is contained in:
parent
7fc7ae395e
commit
e7ee18f662
@ -142,7 +142,7 @@ pipeline {
|
|||||||
fileContentReplaceConfig(
|
fileContentReplaceConfig(
|
||||||
configs: [
|
configs: [
|
||||||
fileContentReplaceItemConfig(
|
fileContentReplaceItemConfig(
|
||||||
search: "(image: )([*]:[*]-[0-9]+)",
|
search: "(image: )([*]-[0-9]+)",
|
||||||
replace: "image: ${HARBOR_URL}/${JOB_ENV}-${params.RELEASE_PROJECTS}:${CommitHash}-${BUILD_NUM}",
|
replace: "image: ${HARBOR_URL}/${JOB_ENV}-${params.RELEASE_PROJECTS}:${CommitHash}-${BUILD_NUM}",
|
||||||
matchCount: 1,
|
matchCount: 1,
|
||||||
verbose: false,
|
verbose: false,
|
||||||
@ -161,6 +161,8 @@ pipeline {
|
|||||||
sh """
|
sh """
|
||||||
echo "${GITHUB_TOKEN}"
|
echo "${GITHUB_TOKEN}"
|
||||||
export BUILD_ID=${CommitHash}-${BUILD_NUM}
|
export BUILD_ID=${CommitHash}-${BUILD_NUM}
|
||||||
|
git config user.email "jenkins@example.com"
|
||||||
|
git config user.name "Jenkins"
|
||||||
git add open-im-server/api/deployment.yaml && git commit -m "Update app image tag to ${CommitHash}-${BUILD_NUM}"
|
git add open-im-server/api/deployment.yaml && git commit -m "Update app image tag to ${CommitHash}-${BUILD_NUM}"
|
||||||
git push -f https://${GITHUB_TOKEN}@github.com/${ORGANIZATION_NAME}/${SERVICE_NAME_INFRA}.git
|
git push -f https://${GITHUB_TOKEN}@github.com/${ORGANIZATION_NAME}/${SERVICE_NAME_INFRA}.git
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user