Skip to content

Commit

Permalink
Change ReferentialUrl setup in P04
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubomir-Jahn committed Nov 27, 2024
1 parent 21d1290 commit 7ccd4c8
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions release_testing/operational_tests/P04.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ pipeline {
defaultValue: "main",
description: 'Branch or commit hash for LaScala'
)
string(
name: 'ReferentialUrl',
defaultValue: "http://10.128.0.10",
description: 'URL address of referential Sonic node'
)
string(
//default agent for devnet. For mainnet, use x86-4-32-archive
name: 'Agent',
Expand Down Expand Up @@ -159,9 +154,19 @@ pipeline {

sh 'echo "Start comparing block receipts"'

dir('lascala/utils') {
sh 'chmod +x ./test_getBlockReceipts.sh'
sh "./test_getBlockReceipts.sh http://127.0.0.1 ${ReferentialUrl}"
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'
}

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

0 comments on commit 7ccd4c8

Please sign in to comment.