Skip to content

Commit

Permalink
Improve ReferentialUrl parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubomir-Jahn committed Nov 29, 2024
1 parent 7ccd4c8 commit f4e66d7
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions release_testing/operational_tests/P04.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ pipeline {
defaultValue: 'x86-4-32-m',
description: 'Agent label to run the job. For Opera mainnet, use x86-4-32-archive.'
)
string(
name: 'ReferentialUrl',
defaultValue: "",
description: 'URL address of referential Sonic node'
)
choice(
name: 'Network',
choices: ['Sonic devnet', 'Opera mainnet'],
Expand Down Expand Up @@ -155,17 +160,21 @@ pipeline {
sh 'echo "Start comparing block receipts"'

script {
def ReferentialUrl

if (params.Network == 'Sonic devnet') {
ReferentialUrl = 'http://34.56.203.77:80'
} else if (params.Network == 'Opera mainnet') {
ReferentialUrl = 'http://10.128.0.10'
def referentialUrl

if (params.ReferentialUrl == '') {
if (params.Network == 'Sonic devnet') {
referentialUrl = 'http://34.56.203.77:80'
} else if (params.Network == 'Opera mainnet') {
referentialUrl = 'http://10.128.0.10'
}
} else {
referentialUrl = params.ReferentialUrl
}

dir('lascala/utils') {
sh 'chmod +x ./test_getBlockReceipts.sh'
sh "./test_getBlockReceipts.sh http://127.0.0.1 ${ReferentialUrl}"
sh "./test_getBlockReceipts.sh http://127.0.0.1 ${referentialUrl}"
}
}
}
Expand Down

0 comments on commit f4e66d7

Please sign in to comment.