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",