Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Determine what your lab name should be.  Example: "windriver".
  2. 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".
  3. 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.
  4. Set up your Lab Jenkins jobs to deploy its log files to a publicly log server website as specified in he previous section.
  5. 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".  
  6. 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
languagebash
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/"