Commit 87c58bb9 authored by Malin, James (Contractor) Christopher's avatar Malin, James (Contractor) Christopher
Browse files

Test passing variables to trigger

parent 72e2980f
Pipeline #865 failed
...@@ -106,13 +106,13 @@ build: ...@@ -106,13 +106,13 @@ build:
# Needed later when loading docker images # Needed later when loading docker images
# Could test without the docker images saved and try to pull local image # Could test without the docker images saved and try to pull local image
artifacts: # artifacts:
paths: # paths:
- docker-images # - docker-images
cache: # cache:
key: "$CI_BUILD_REF_NAME" # key: "$CI_BUILD_REF_NAME"
paths: # paths:
- docker-images # - docker-images
# run unit tests: # run unit tests:
# stage: unit-tests # stage: unit-tests
...@@ -208,32 +208,40 @@ build: ...@@ -208,32 +208,40 @@ build:
# test trigger # test trigger
trigger deploy: trigger deploy:
# variables: variables:
# BUILD_ID: $${BUILD_ID} BUILD_ID: '$BUILD_ID'
image: node:latest BUILD_TEST_1: '$$BUILD_ID'
BUILD_TEST_2: '${BUILD_ID}'
BUILD_TEST_3: '$${BUILD_ID}'
BUILD_TEST_4: '{$BUILD_ID}'
BUILD_TEST_5: $BUILD_ID
BUILD_TEST_6: $$BUILD_ID
BUILD_TEST_7: ${BUILD_ID}
BUILD_TEST_8: $${BUILD_ID}
# image: node:latest
stage: trigger_deploy stage: trigger_deploy
when: manual when: manual
only: only:
- merge_requests - merge_requests
- master - master
# trigger: jmalin/container-deploy trigger: jmalin/container-deploy
script: # script:
- 'curl -X POST # - 'curl -X POST
-F token=5db4dbb65dd8f2583082e1555bae6a # -F token=5db4dbb65dd8f2583082e1555bae6a
-F "ref=master" # -F "ref=master"
-F "variables[CI_COMMIT_MESSAGE]=$CI_COMMIT_MESSAGE" # -F "variables[CI_COMMIT_MESSAGE]=$CI_COMMIT_MESSAGE"
-F "variables[IMAGE_VERSION]=${IMAGE_VERSION}" # -F "variables[IMAGE_VERSION]=${IMAGE_VERSION}"
-F "variables[DB_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/db:${IMAGE_VERSION}" # -F "variables[DB_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/db:${IMAGE_VERSION}"
-F "variables[ENVIRONMENT]=${ENVIRONMENT}" # -F "variables[ENVIRONMENT]=${ENVIRONMENT}"
-F "variables[UI_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ui:${IMAGE_VERSION}" # -F "variables[UI_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ui:${IMAGE_VERSION}"
-F "variables[APP_NAME]=${DEPLOY_APP_NAME}" # -F "variables[APP_NAME]=${DEPLOY_APP_NAME}"
-F "variables[GIT_BRANCH]=origin/master" # -F "variables[GIT_BRANCH]=origin/master"
-F "variables[WS_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ws:${IMAGE_VERSION}" # -F "variables[WS_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ws:${IMAGE_VERSION}"
-F "variables[APP_REPO]=ghsc/hazdev/earthquake-geoserve.git" # -F "variables[APP_REPO]=ghsc/hazdev/earthquake-geoserve.git"
-F "variables[STACK_NAME]=earthquake-geoserve" # -F "variables[STACK_NAME]=earthquake-geoserve"
-F "variables[TARGET_HOSTNAME]=dev01-container01.cr.usgs.gov" # -F "variables[TARGET_HOSTNAME]=dev01-container01.cr.usgs.gov"
-F "variables[REMOTE_DEPLOY_DIR]=${REMOTE_DEPLOY_DIR}" # -F "variables[REMOTE_DEPLOY_DIR]=${REMOTE_DEPLOY_DIR}"
https://code.chs.usgs.gov/api/v4/projects/1955/trigger/pipeline' # https://code.chs.usgs.gov/api/v4/projects/1955/trigger/pipeline'
# use triggers with Jenkins config # use triggers with Jenkins config
# use triggers w/ container master # use triggers w/ container master
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment