I am a beginner and this is the first time I am building a CI/CD pipeline for my maven java selenium project and trying to run the pipeline locally by installing a runner in my local machine. Everytime I run my pipeline I recieve an error stating that"WARNING: gosecuri/target/surefire-reports/TEST-*.xml: no matching files. Ensure that the artifact path is relative to the working directory (C:\GitLab-Runner\builds\CXWJTzxhV\0\ssc-onyx-qa\ssc-onyx-test-automation) ERROR: No files to upload" Please can someone help me
Pipeline code is mentioned below:-
stages:
- test
image: "maven:3.8.7"
variables:
MAVEN_OPTS: >-
-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
-Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
cache:
paths:
- .m2/repository/
- target/
test-job:
stage: test
services:
- selenium/standalone-chrome
script:
- echo "Compiling the code..."
- mvn --version
- mvn "$MAVEN_CLI_OPTS" clean test -Dhost=selenium__standalone-chrome
- Get-Command zip
artifacts:
when: always
paths:
- target/
reports:
junit:
- gosecuri/target/surefire-reports/TEST-*.xml