daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. resources:
  2. - repo: self
  3.  
  4. trigger:
  5.   branches:
  6.     include:
  7.     - master
  8.  
  9. # variables:
  10.   # container_registry: 'agogosacrdemo.azurecr.io/'
  11.   # service_endpoint_guid: $AGO_AZURE_SUBSCRIPTION_ENDPOINT
  12.   # acccess_token: $SYSTEM_ACCESSTOKEN
  13.  
  14. jobs:
  15. - job: Phase_1
  16.   displayName: Agogosml-Build-CI
  17.   condition: succeeded()
  18.  
  19.   steps:
  20.   - bash: |
  21.       env
  22.     displayName: 'dump the env'
  23.  
  24.   - task: ShellScript@2
  25.     env:
  26.       SYSTEM_ACCESSTOKEN: $(System.AccessToken)
  27.     inputs:
  28.       scriptPath: ./private.sh
  29.     displayName: 'Get service endpoint information'
  30.      
  31.   - bash: |
  32.       JQ_INSTALLED="$(command -v jq)"
  33.       if [ -z "$JQ_INSTALLED" ]; then
  34.         echo "JQ not installed - exiting"
  35.         exit 1
  36.       else
  37.         echo "JQ installed at - ${JQ_INSTALLED}"
  38.       fi
  39.  
  40.     displayName: 'check if jq is installed'
  41.  
  42.   - bash: |
  43.       if [ -z "$AGO_AZURE_SUBSCRIPTION_ENDPOINT" ]; then
  44.         echo "AGO_AZURE_SUBSCRIPTION_ENDPOINT not set - exiting"
  45.         exit 1
  46.       else
  47.         echo "AGO_AZURE_SUBSCRIPTION_ENDPOINT - ${AGO_AZURE_SUBSCRIPTION_ENDPOINT}"
  48.       fi
  49.  
  50.     displayName: 'echo the service endpoint information'
  51.  
  52.  
  53.   - bash: |
  54.       env
  55.     displayName: 'dump the env'
  56.  
  57.   - bash: echo This is a script that could use $SYSTEM_ACCESSTOKEN
  58.     env:
  59.       SYSTEM_ACCESSTOKEN: $(System.AccessToken)
  60.      
  61.     displayName: 'set token'
  62.  
  63.   - bash: echo ${SYSTEM_ACCESSTOKEN}
  64.     env:
  65.       SYSTEM_ACCESSTOKEN: $(System.AccessToken)
  66.      
  67.     displayName: 'echo token'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top