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:
# Needed later when loading docker images
# Could test without the docker images saved and try to pull local image
artifacts:
paths:
- docker-images
cache:
key: "$CI_BUILD_REF_NAME"
paths:
- docker-images
# artifacts:
# paths:
# - docker-images
# cache:
# key: "$CI_BUILD_REF_NAME"
# paths:
# - docker-images
# run unit tests:
# stage: unit-tests
......@@ -208,32 +208,40 @@ build:
# test trigger
trigger deploy:
# variables:
# BUILD_ID: $${BUILD_ID}
image: node:latest
variables:
BUILD_ID: '$BUILD_ID'
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
when: manual
only:
- merge_requests
- master
# trigger: jmalin/container-deploy
script:
- 'curl -X POST
-F token=5db4dbb65dd8f2583082e1555bae6a
-F "ref=master"
-F "variables[CI_COMMIT_MESSAGE]=$CI_COMMIT_MESSAGE"
-F "variables[IMAGE_VERSION]=${IMAGE_VERSION}"
-F "variables[DB_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/db:${IMAGE_VERSION}"
-F "variables[ENVIRONMENT]=${ENVIRONMENT}"
-F "variables[UI_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ui:${IMAGE_VERSION}"
-F "variables[APP_NAME]=${DEPLOY_APP_NAME}"
-F "variables[GIT_BRANCH]=origin/master"
-F "variables[WS_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ws:${IMAGE_VERSION}"
-F "variables[APP_REPO]=ghsc/hazdev/earthquake-geoserve.git"
-F "variables[STACK_NAME]=earthquake-geoserve"
-F "variables[TARGET_HOSTNAME]=dev01-container01.cr.usgs.gov"
-F "variables[REMOTE_DEPLOY_DIR]=${REMOTE_DEPLOY_DIR}"
https://code.chs.usgs.gov/api/v4/projects/1955/trigger/pipeline'
trigger: jmalin/container-deploy
# script:
# - 'curl -X POST
# -F token=5db4dbb65dd8f2583082e1555bae6a
# -F "ref=master"
# -F "variables[CI_COMMIT_MESSAGE]=$CI_COMMIT_MESSAGE"
# -F "variables[IMAGE_VERSION]=${IMAGE_VERSION}"
# -F "variables[DB_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/db:${IMAGE_VERSION}"
# -F "variables[ENVIRONMENT]=${ENVIRONMENT}"
# -F "variables[UI_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ui:${IMAGE_VERSION}"
# -F "variables[APP_NAME]=${DEPLOY_APP_NAME}"
# -F "variables[GIT_BRANCH]=origin/master"
# -F "variables[WS_IMAGE_NAME]=ghsc/hazdev/earthquake-geoserve/ws:${IMAGE_VERSION}"
# -F "variables[APP_REPO]=ghsc/hazdev/earthquake-geoserve.git"
# -F "variables[STACK_NAME]=earthquake-geoserve"
# -F "variables[TARGET_HOSTNAME]=dev01-container01.cr.usgs.gov"
# -F "variables[REMOTE_DEPLOY_DIR]=${REMOTE_DEPLOY_DIR}"
# https://code.chs.usgs.gov/api/v4/projects/1955/trigger/pipeline'
# use triggers with Jenkins config
# 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