0

**Jenkins pipeline build is failing because of following error. I have added dependencies and plugins but still error is not going while using mvn test command in the pipeline. The same code is working properly through Maven project job. **

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:testResources (default-testResources) on project : C:\Users\new\.jenkins\workspace\Pipeline\target\test-classes\dataSheet\webFormstestData - Copy (2).xlsx (Access is denied) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE
4
  • The problem is: (Access is denied) ... Commented Jul 1, 2022 at 12:00
  • @khmarbaise How to resolve the same? Commented Jul 1, 2022 at 12:39
  • CI on Windows... love it! Commented Jul 1, 2022 at 13:06
  • Please can anyone share solution? Commented Jul 4, 2022 at 13:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.