Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit a79af4d

Browse files
author
SAMEER PANDIT
committed
change rq env var
1 parent 711f453 commit a79af4d

File tree

1 file changed

+6
-6
lines changed
  • main/appserver/tests

1 file changed

+6
-6
lines changed

main/appserver/tests/rq.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ key_val_as_list(){
7777
# Args: BUILD_NUMBER
7878
#
7979
get_test_job_params(){
80-
local url="${HUDSON_URL}/${1}/api/xml?xpath=//parameter&wrapper=list"
80+
local url="${GLASSFISH_REMOTE_QUEUE_URL}/${1}/api/xml?xpath=//parameter&wrapper=list"
8181
curl "${url}" | sed \
8282
-e s@'<list><parameter>'@@g -e s@'</list>'@@g \
8383
-e s@'<parameter>'@@g -e s@'</parameter>'@@g \
@@ -130,7 +130,7 @@ is_test_job_match(){
130130
# This will include the currently on-going runs.
131131
#
132132
get_test_job_last_build_number(){
133-
local url="${HUDSON_URL}/api/xml?xpath=//lastBuild/number/text()"
133+
local url="${GLASSFISH_REMOTE_QUEUE_URL}/api/xml?xpath=//lastBuild/number/text()"
134134
curl "${url}"
135135
local error_code=${?}
136136
if [ ${error_code} -ne 0 ] ; then
@@ -189,7 +189,7 @@ list_group_test_ids(){
189189
echo ${test_id_arr[*]}
190190
}
191191

192-
if [[ -z $HUDSON_URL ]]; then
192+
if [[ -z $GLASSFISH_REMOTE_QUEUE_URL ]]; then
193193
echo "Please enter hudson url"
194194
exit 1
195195
fi
@@ -227,20 +227,20 @@ fork_origin=`git config --get remote.origin.url`
227227
test_ids_encoded=`echo ${test_ids[@]} | tr ' ' '+'`
228228
params="BRANCH=${branch}&TEST_IDS=${test_ids_encoded}&FORK_ORIGIN=${fork_origin}"
229229
last_build=`get_test_job_last_build_number`
230-
curl -X POST "${HUDSON_URL}/buildWithParameters?${params}&delay=0sec" 2> /dev/null
230+
curl -X POST "${GLASSFISH_REMOTE_QUEUE_URL}/buildWithParameters?${params}&delay=0sec" 2> /dev/null
231231
test_ids_triggerd=`echo ${test_ids[@]}`
232232
export branch fork_origin test_ids_triggerd
233233
job_build_number=`find_test_job ${last_build}`
234234
printf "###################################################################\n"
235235
printf "###################################################################\n"
236236
if [[ ! -z ${job_build_number} ]]; then
237237
printf "RQ triggered successfully. Please find the RQ link below\n"
238-
printf ${HUDSON_URL}/${job_build_number}
238+
printf ${GLASSFISH_REMOTE_QUEUE_URL}/${job_build_number}
239239
printf "\n"
240240
printf "###################################################################\n"
241241
printf "###################################################################\n"
242242
else
243243
printf "Issue in RQ client.Please check your git settings\n"
244244
printf "###################################################################\n"
245245
printf "###################################################################\n"
246-
fi
246+
fi

0 commit comments

Comments
 (0)