From a3f063feb56419f7a84370e8c7bb166da01d63e5 Mon Sep 17 00:00:00 2001 From: Begona Guereca Date: Mon, 22 Aug 2022 16:05:55 -0700 Subject: [PATCH] Update jenkins/valet-custom-transformers-lab.md --- jenkins/valet-custom-transformers-lab.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/jenkins/valet-custom-transformers-lab.md b/jenkins/valet-custom-transformers-lab.md index 537214f..ef2a1dd 100644 --- a/jenkins/valet-custom-transformers-lab.md +++ b/jenkins/valet-custom-transformers-lab.md @@ -143,18 +143,10 @@ Next lets address the third-party GitHub action `EnricoMi/publish-unit-test-resu After some research we find that the following scripts will execute our J-unit tests without needing to depend on `EnricoMi/publish-unit-test-result-action@v1.7`. ```yaml -- name: Set up JDK 14 - uses: actions/setup-java@v1 +- uses: actions/upload-artifact@v3 with: - java-version: 14 -- name: Cache Maven packages - uses: actions/cache@v2 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 -- name: Run tests with Maven - run: mvn -B test --file pom.xml + name: my-artifact + path: path/to/artifact/world.txt ``` We will build this custom transformation similar to how we built the previous custom transformer. This time, we need to add some additional logic. We would like to automate assigning each of the pipeline's file names to the run script.