Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #976 from LiskHQ/it-core-port-number
Browse files Browse the repository at this point in the history
Use core port number > 4000 to prevent side effects
  • Loading branch information
fchavant authored Nov 10, 2017
2 parents d538a2d + 6cbee05 commit be3285f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ node('lisk-nano') {

try {
sh '''
N=${EXECUTOR_NUMBER:-0}
N=${EXECUTOR_NUMBER:-0}; N=$((N+1))
cd ~/lisk-Linux-x86_64
# work around core bug: config.json gets overwritten; use backup
cp .config.json config_$N.json
Expand Down Expand Up @@ -138,7 +138,7 @@ node('lisk-nano') {
ansiColor('xterm') {
withCredentials([string(credentialsId: 'lisk-nano-testnet-passphrase', variable: 'TESTNET_PASSPHRASE')]) {
sh '''
N=${EXECUTOR_NUMBER:-0}
N=${EXECUTOR_NUMBER:-0}; N=$((N+1))
# End to End test configuration
export DISPLAY=:1$N
Expand All @@ -161,7 +161,7 @@ node('lisk-nano') {
echo "Error: ${err}"
} finally {
sh '''
N=${EXECUTOR_NUMBER:-0}
N=${EXECUTOR_NUMBER:-0}; N=$((N+1))
curl --verbose http://127.0.0.1:400$N/api/blocks/getNethash || true
( cd ~/lisk-Linux-x86_64 && bash lisk.sh stop_node -p etc/pm2-lisk_$N.json ) || true
pgrep --list-full -f "Xvfb :1$N" || true
Expand Down

0 comments on commit be3285f

Please sign in to comment.