1
resposta

Erro ao criar o build Clean Teste

Iniciado pelo usuário Felipe Lima de Arruda Rodando como SISTEMA Construindo no espaço de trabalho C:\Users\User.jenkins\workspace\leilão-testes

The recommended git tool is: NONE
No credentials specified
 > git.exe rev-parse --resolve-git-dir C:\Users\User\.jenkins\workspace\leilão-testes\.git # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url https://github.com/Felipelarruda/CursoJenkinsAlura # timeout=10
Fetching upstream changes from https://github.com/Felipelarruda/CursoJenkinsAlura
 > git.exe --version # timeout=10
 > git --version # 'git version 2.38.1.windows.1'
 > git.exe fetch --tags --force --progress -- https://github.com/Felipelarruda/CursoJenkinsAlura +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
Checking out Revision 56beab8d5544b28c9827b967061c730922903d4e (refs/remotes/origin/master)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f 56beab8d5544b28c9827b967061c730922903d4e # timeout=10
Commit message: "codigos da aula 4"
 > git.exe rev-list --no-walk 56beab8d5544b28c9827b967061c730922903d4e # timeout=10
[leilão-testes] $ cmd.exe /C "mvn clean teste && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< br.com.alura:leilao >-------------------------
[INFO] Building leilao 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.494 s
[INFO] Finished at: 2022-11-20T19:01:44-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "teste". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException
Build step 'Chamar alvos Maven de alto nível' marked build as failure
Finished: FAILURE
1 resposta

Olá Felipe, tudo bem?

Você rodou o comando:

mvn clean teste

mas o correto é

mvn clean test