Estou estudando o jenkins, e na aula 4, estou tendo dificuldades em fazer o passo do deploy.
O shell do deploy e este:
java -Dspring.profiles.active=prod -jar target/leilao-0.0.1-SNAPSHOT.jar
** Uso o windows 10 pro
Quando executo o comando acima no terminal, estando na pasta [C:\Users\glauco.jenkins\workspace\folder-projetos\leilao-deploy] executa normalmente
ERRO
insira se[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.933 s
[INFO] Finished at: 2021-02-04T10:49:08-03:00
[INFO] ------------------------------------------------------------------------
[leilao-deploy] $ "C:\Program Files\Git\bin\git.exe" -xe C:\Users\glauco\AppData\Local\Temp\jenkins701935869285404281.sh
unknown option: -xe
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
Build step 'Execute shell' marked build as failure
Discard old builds...
#6 is removed because old than numToKeep
#5 is removed because old than numToKeep
#4 is removed because old than numToKeep
#3 is removed because old than numToKeep
#2 is removed because old than numToKeep
#1 is removed because old than numToKeep
#8 is removed because it is old and within build days interval
#7 is removed because it is old and within build days interval
#9 is removed because status FAILURE is not to be kept
Finished: FAILUREu código aqui