teched2020-DEV267
teched2020-DEV267 copied to clipboard
Invalid tag name "&&"
Running the repo as is in JENKINS, I get the following error message. What can I do?
+ ./piper uiVeri5ExecuteTests
info uiVeri5ExecuteTests - Using stageName 'System tests' from env variable 'STAGE_NAME'
info uiVeri5ExecuteTests - Project config: NONE ('.pipeline/config.yml' does not exist)
info uiVeri5ExecuteTests - running command: npm install @sap/cds --global --quiet && NPM_CONFIG_PREFIX=/home/node/.npm-global npm install @sap/cds-dk --global --quiet --force && NPM_CONFIG_PREFIX=/home/node/.npm-global npm install @ui5/uiveri5 --global --quiet && npm install --force && cd fiori && (/home/node/.npm-global/lib/node_modules/@sap/cds/bin/cds.js watch > cds.log 2>&1 &)
warn uiVeri5ExecuteTests - npm WARN using --force I sure hope you know what you are doing.
error uiVeri5ExecuteTests - npm ERR! code EINVALIDTAGNAME
error uiVeri5ExecuteTests - npm ERR! Invalid tag name "&&": Tags may not have any characters that encodeURIComponent encodes.
info uiVeri5ExecuteTests -
error uiVeri5ExecuteTests - npm ERR! A complete log of this run can be found in:
error uiVeri5ExecuteTests - npm ERR! /home/node/.npm/_logs/2021-04-19T09_56_23_301Z-debug.log
fatal uiVeri5ExecuteTests - step execution failed - failed to execute install command: npm install @sap/cds --global --quiet && NPM_CONFIG_PREFIX=/home/node/.npm-global npm install @sap/cds-dk --global --quiet --force && NPM_CONFIG_PREFIX=/home/node/.npm-global npm install @ui5/uiveri5 --global --quiet && npm install --force && cd fiori && (/home/node/.npm-global/lib/node_modules/@sap/cds/bin/cds.js watch > cds.log 2>&1 &): running command 'npm' failed: cmd.Run() failed: exit status 1
Hi, can you provide us some more details about the issue:
- Did you follow the tutorial? On which step occurred this issue?
- Is it possible to provide the pipeline code?
- On which platform (Win, Mac, Linux) is the docker with Jenkins running?
Hi @georgbischoff , thanks for coming back to me. if I remember correctly, I basically took the Jenkinsfile and tried to run it. I was searching for a running example of the piper step "uiVeri5ExecuteTests". We use Ubuntu for our Jenkins. Concerning this issue, I am wondering if the "runCommand" parameter in the Jenkinsfile is correct for Linux... In the meanwhile I ended up creating my own docker container with all dependencies to execute uiveri5-Tests, as nobody could help me get the above mentioned piper step running. So this issue is not relevant for me anymore. thanks, Simon