From 4de18275cdacaa790e094f6ed8ecd74b221920b2 Mon Sep 17 00:00:00 2001 From: ByeonJungHun Date: Thu, 25 Jul 2024 17:15:13 +0900 Subject: [PATCH] =?UTF-8?q?CI=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 21 ++++++++++++++------- new_version.json | 2 +- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce6aeb1..fa824ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,13 +43,20 @@ version_update: version="${different_versions[$index]}" echo "$name:$version" - curl --request POST \ - --form "token=${git_token}" \ - --form "ref=main" \ - --form "variables[TRIGGERED_BY]=sa_8001" \ - --form "variables[TRIGGER_NAME]=$name" \ - --form "variables[VER]=$version" \ - "https://lab.jhcloud.kr/api/v4/projects/sa_8001/$name/trigger/pipeline" + case $name in + exemone_java_agent) + curl -X POST \ + --fail \ + -F "token=$JAVA_AGENT_TOKEN" \ + -F "ref=main" \ + -F "variables[TRIGGER_NAME]=exemone_java_agent" \ + -F "variables[VER]=$version" \ + https://lab.jhcloud.kr/api/v4/projects/53/trigger/pipeline + ;; + *) + echo "알 수 없는 프로젝트 입니다!" + ;; + esac done diff --git a/new_version.json b/new_version.json index 5c40c46..52f7506 100644 --- a/new_version.json +++ b/new_version.json @@ -1,7 +1,7 @@ [ { "name":"exemone_java_agent", - "version":"1.0.17" + "version":"1.0.9" }, { "name":"exemone_container_agent",