Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad substitution error in citgm-continuous-integration #1601

Closed
targos opened this issue Nov 24, 2018 · 5 comments
Closed

Bad substitution error in citgm-continuous-integration #1601

targos opened this issue Nov 24, 2018 · 5 comments

Comments

@targos
Copy link
Member

targos commented Nov 24, 2018

See this run for example: https://ci.nodejs.org/job/citgm-continuous-integration/140/

@targos
Copy link
Member Author

targos commented Nov 24, 2018

Output for https://ci.nodejs.org/job/citgm-continuous-integration/140/nodes=debian8-64/console :

Started by upstream project "citgm-continuous-integration" build number 140
originally caused by:
 Started by upstream project "citgm-continuous-integration-pipeline" build number 82
 originally caused by:
  Started by user Michaël Zasso
[EnvInject] - Loading node environment variables.
Building remotely on test-digitalocean-debian8-x64-1 (debian8-64) in workspace /home/iojs/build/workspace/citgm-continuous-integration/nodes/debian8-64
Run condition [Regular expression match] enabling prebuild for step [BuilderChain]
Regular expression run condition: Expression=[(?!Windows_NT)], Label=[]
Run condition [Regular expression match] enabling perform for step [BuilderChain]
[debian8-64] $ /bin/sh -xe /tmp/jenkins3977017743433771904.sh
+ rm -rf /home/iojs/build/workspace/citgm-continuous-integration/nodes/debian8-64/citgm /home/iojs/build/workspace/citgm-continuous-integration/nodes/debian8-64/node-v11.0.0-linux-x64 /home/iojs/build/workspace/citgm-continuous-integration/nodes/debian8-64/node-v11.0.0-linux-x64.tar.gz
+ DOWNLOAD_DIR=https://nodejs.org/download/release/
+ tail -1
+ + cut -d" -f 2
+ sort -t. -k 1,1n -k 2,2n -k 3,3n
+ curl https://nodejs.org/download/release/
grep v6
+ tr -d /
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 62203    0 62203    0     0   859k      0 --:--:-- --:--:-- --:--:--  867k
+ LINK=v6.14.4
+ OS=linux
+ ARCH=x64
+ EXT=tar.gz
+ curl -O https://nodejs.org/download/release/v6.14.4/node-v6.14.4-linux-x64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 13.4M    0  131k    0     0  1255k      0  0:00:10 --:--:--  0:00:10 1255k
100 13.4M  100 13.4M    0     0  59.3M      0 --:--:-- --:--:-- --:--:-- 59.3M
+ gzip -cd node-v6.14.4-linux-x64.tar.gz
+ tar xf -
[debian8-64] $ /bin/sh -xe /tmp/jenkins1170377926016468437.sh
+ cd /home/iojs/build/workspace/citgm-continuous-integration/nodes/debian8-64/node-v6.14.4-linux-x64/bin
+ export PATH=/home/iojs/build/workspace/citgm-continuous-integration/nodes/debian8-64/node-v6.14.4-linux-x64/bin:/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ cd /home/iojs/build/workspace/citgm-continuous-integration/nodes/debian8-64
+ rm -rf build
/tmp/jenkins1170377926016468437.sh: 6: /tmp/jenkins1170377926016468437.sh: Bad substitution
Build step 'Conditional steps (multiple)' marked build as failure
Notifying upstream projects of job completion
Finished: FAILURE

@richardlau
Copy link
Member

I think that error usually indicates the script isn't running under bash. I'm on a tablet right now so can't easily look into this right now but will try to look at this later.

@targos
Copy link
Member Author

targos commented Nov 24, 2018

That's probably it. The output shows it running in /bin/sh

@refack
Copy link
Contributor

refack commented Nov 24, 2018

@targos
Copy link
Member Author

targos commented Nov 24, 2018

And it's green, thank you!

@targos targos closed this as completed Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants