From abbd8dc5480cf5af25653bbb70cafc39d3b49095 Mon Sep 17 00:00:00 2001 From: Angela DeGolier Date: Tue, 13 Apr 2021 17:20:25 -0400 Subject: [PATCH 1/2] Updating GitLab yml file --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 085c15d..55fe13f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,14 @@ test: deploy: stage: deploy + before_script: + - chmod +x gradlew + - curl -o $CERT_INT_AD $CERT_ADDR/$CERT_INT_AD + - curl -o $CERT_ROOT $CERT_ADDR/$CERT_ROOT + - CERTS_PATH="jre/lib/security/cacerts" + - keytool -keystore $JAVA_HOME/$CERTS_PATH -trustcacerts -importcert -alias cti-root -file ./$CERT_ROOT -storepass $ROOT_PASS -noprompt + - keytool -keystore $JAVA_HOME/$CERTS_PATH -trustcacerts -importcert -alias cti-ad-ca -file ./$CERT_INT_AD -storepass $STORE_PASS -noprompt + script: - ./gradlew build publish $TASK_ARGUMENTS # only: From 64bdab5490272245d4ab2d9dc348eb75140af33d Mon Sep 17 00:00:00 2001 From: Angela DeGolier Date: Tue, 13 Apr 2021 17:48:57 -0400 Subject: [PATCH 2/2] Updating yml file --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 55fe13f..cdd0b9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,8 @@ test: deploy: stage: deploy + dependencies: + - build before_script: - chmod +x gradlew - curl -o $CERT_INT_AD $CERT_ADDR/$CERT_INT_AD @@ -32,5 +34,5 @@ deploy: script: - ./gradlew build publish $TASK_ARGUMENTS -# only: -# - develop + only: + - develop