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

Use core port number > 4000 to prevent side effects #976

Merged
merged 1 commit into from
Nov 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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