From 5024c7f0b70b1e8a65230eb37840d95c8c66d39f Mon Sep 17 00:00:00 2001 From: Begona Guereca Date: Mon, 22 Aug 2022 16:20:18 -0700 Subject: [PATCH] udpates --- jenkins/valet-custom-transformers-lab.md | 26 +++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/jenkins/valet-custom-transformers-lab.md b/jenkins/valet-custom-transformers-lab.md index ef2a1dd..0600e45 100644 --- a/jenkins/valet-custom-transformers-lab.md +++ b/jenkins/valet-custom-transformers-lab.md @@ -48,7 +48,7 @@ env: DISABLE_AUTH: 'true' DB_ENGINE: sqlite jobs: - build: + check_env_variables: runs-on: - self-hosted - TeamARunner @@ -65,6 +65,22 @@ jobs: # value: 80 - name: echo message run: echo "DISABLE_AUTH is ${{ env.DISABLE_AUTH }}" + build: + runs-on: + - self-hosted + - TeamARunner + needs: check_env_variables + steps: + - name: checkout + uses: actions/checkout@v2 + - name: Set up JDK 1.11 + uses: actions/setup-java@v1 + with: + java-version: '1.11' + settings-path: "${{ github.workspace }}" + - name: sh + shell: bash + run: mvn clean package test: runs-on: - self-hosted @@ -106,7 +122,7 @@ The ruby hash can be thought of as the JSON representation of the YAML we want. ```ruby transform "sleep" do |item| - wait_time = item[0]["value"]["value"] + wait_time = item["arguments"][0]["value"]["value"] { "name": "Sleep for #{wait_time} seconds", @@ -130,9 +146,9 @@ When you open the file you should see the following changes in the GitHub Action - # - key: time - # value: - # isLiteral: true -- # value: 30 -+ - name: Sleep for 30 seconds -+ run: sleep 30s +- # value: 80 ++ - name: Sleep for 80 seconds ++ run: sleep 80s + shell: bash ```