name: 'LTTNG_CI_BRANCH'
default: 'master'
description: 'The branch of the CI repository to clone for job scripts'
+ - string:
+ name: 'LAVA_HOST'
+ default: 'lava-master-02.internal.efficios.com'
+ description: 'The hostname of the LAVA instance'
+ - choice:
+ name: 'LAVA_PROTO'
+ choices:
+ - 'http'
+ - 'https'
+ description: 'The protocol to use with the LAVA host'
- publisher:
name: 'system_tests_email_ext_default'
LTTNG_VERSION={lttngversion}
LTTNG_CI_REPO=${{LTTNG_CI_REPO}}
LTTNG_CI_BRANCH=${{LTTNG_CI_BRANCH}}
+ LAVA_HOST=${{LAVA_HOST}}
+ LAVA_PROTO=${{LAVA_PROTO}}
scm:
- git:
LTTNG_VERSION={lttngversion}
LTTNG_CI_REPO=${{LTTNG_CI_REPO}}
LTTNG_CI_BRANCH=${{LTTNG_CI_BRANCH}}
-
+ LAVA_HOST=${{LAVA_HOST}}
+ LAVA_PROTO=${{LAVA_PROTO}}
scm:
- git:
url: "${{LTTNG_CI_REPO}}"
# Enable S3 v4 signature APIs
signature_v2 = False" > "$WORKSPACE/s3cfg"
+echo "LAVA_HOST=$LAVA_HOST" >> properties.txt
+echo "LAVA_PROTO=$LAVA_PROTO" >> properties.txt
+
LTTNG_CI_PATH="$WORKSPACE/src/lttng-ci"
echo "LTTNG_CI_PATH=$LTTNG_CI_PATH" >> properties.txt
echo "LTTNG_CI_REPO=$LTTNG_CI_REPO" >> properties.txt
from jinja2 import Environment, FileSystemLoader
USERNAME = 'lava-jenkins'
-HOSTNAME = 'lava-master-02.internal.efficios.com'
+HOSTNAME = os.environ.get('LAVA_HOST', 'lava-master-02.internal.efficios.com')
+PROTO = os.environ.get('LAVA_PROTO', 'http')
OBJSTORE_URL = "https://obj.internal.efficios.com/lava/results/"
def parse_stable_version(stable_version_string):
for testcase in testcases:
if testcase['result'] != 'pass':
print(
- "\tFAILED {}\n\t\t See http://{}{}".format(
- testcase['name'], HOSTNAME, testcase['url']
+ "\tFAILED {}\n\t\t See {}://{}{}".format(
+ testcase['name'], PROTO, HOSTNAME, testcase['url']
)
)
failed_tests += 1
return 0
server = xmlrpc.client.ServerProxy(
- 'http://%s:%s@%s/RPC2' % (USERNAME, lava_api_key, HOSTNAME)
+ '%s://%s:%s@%s/RPC2' % (PROTO, USERNAME, lava_api_key, HOSTNAME)
)
for attempt in range(1, send_retry_limit + 1):
print('Lava jobid:{}'.format(jobid))
print(
- 'Lava job URL: http://lava-master-02.internal.efficios.com/scheduler/job/{}'.format(
- jobid
+ 'Lava job URL: {}://{}/scheduler/job/{}'.format(
+ PROTO, HOSTNAME, jobid
)
)