...
- Determine what your lab name should be. Example: "windriver".
- Create a LF ID for your lab Jenkins user. As a convention, the LF ID should be onap-ci-{lab-name}. Example: "onap-ci-windriver".
- Send email to LF helpdesk@onap.org to inform them of this account and request them to grant this account the right permissions for External Job integration.
- Set up your Lab Jenkins jobs to deploy its log files to a publicly log server website as specified in he previous section.
- Define the External Jobs you want to post results to in LF Jenkins. This is done by submitting changes to ONAP ci-management repo. Example: "lab-windriver-beijing-heat-deploy".
- Add a post-build step to your Lab Jenkins job to trigger the job on External Job on LF Jenkins.
Triggering the LF Jenkins External Job
Code Block | ||
---|---|---|
| ||
CRUMB=$(curl -s -u "${username}:${password}" 'https://jenkins.onap.org/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
curl -u "${username}:${password}" -H "$CRUMB" -X POST "https://jenkins.onap.org/job/lab-$JOB_NAME/buildWithParameters?SRC_BUILD_URL=${BUILD_URL}&LOG_DIR_URL=http://12.234.32.117/logs/job/$JOB_NAME/$BUILD_NUMBER/"
|