commit | 3b9d35310417850d6bea6cf34c339afff5b12224 | [log] [tgz] |
---|---|---|
author | Jackie Huang <jackie.huang@windriver.com> | Thu Jun 08 10:53:01 2023 +0800 |
committer | Jackie Huang <jackie.huang@windriver.com> | Thu Jun 08 10:59:51 2023 +0800 |
tree | a9c8c3dde710473efa83ed127425d66433fa83aa | |
parent | e0dca76d9aa66189fea946182107f0a3c35bab73 [diff] |
pti-rtp: remove the script for yocto The required packages for yocto build are no longer available on the mirrors of centos7, details info in: https://jira.linuxfoundation.org/plugins/servlet/desk/portal/2/IT-25536 So remove the script for now, we will try to migrate to other base OS in the future. Issue-ID: INF-410 Issue-ID: IT-25536 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: I1bb7f40147e03591c96f5c54906ba8a1993a2a01
This repo contains configuration files for Jenkins jobs for the O-RAN SC project.
To avoid repetition, many required configuration parameter values are defined in the defaults.yaml file.
Custom JJB templates are defined for projects that use Docker to compile code and build DEB/RPM packages, then push the packages to PackageCloud.io. These projects should use the following jobs in their respective project.yaml file::
jobs: - gerrit-docker-verify - oran-gerrit-docker-ci-pc-merge
These instructions explain how to test the templates using the Jenkins sandbox. This catches errors before submitting the changes as Gerrit reviews.
Install the Jenkins job builder:
pip install jenkins-job-builder
Check out the global JJB templates submodule within this repo:
git submodule update --init
Check sanity by running the Jenkins job-builder script in this directory:
jenkins-jobs test -r jjb
Login (after requesting membership in group oran-jenkins-sandbox-access) at the Jenkins sandbox:
https://jenkins.o-ran-sc.org/sandbox
Get the authentication token from the sandbox: a) click on your user name (top right) b) click Configure (left menu) c) under API Token, click Add new Token (button) d) copy the token string
Create a config file jenkins.ini using the following template and your credentials (user name and API token from above)::
[job_builder] ignore_cache=True keep_descriptions=False recursive=True [jenkins] query_plugins_info=False url=https://jenkins.o-ran-sc.org/sandbox user=YOUR-USER-NAME password=YOUR-API-TOKEN
Build and deploy a specific job using the EXACT job name.
jenkins-jobs --conf jenkins.ini update jjb your-job-name-here
Examples:
jenkins-jobs --conf jenkins.ini update jjb project-maven-docker-verify-master-mvn33-openjdk8
In the sandbox visit the job page, then click the button "Build with parameters" in left menu.
This explains how to launch a "verify" job in the Sandbox on an open review. Most "verify" jobs accept parameters to build code in a review submitted to Gerrit. You must specify the change ref spec, which is a Git branch name. Get this by inspecting Gerrit's "download" links at the top right. The branch name will be something like this:
refs/changes/78/578/2
The first number is a mystery to me; the second number is the Gerrit change number; the third number is the patch set within the change.
Enter this name for both the GERRIT_BRANCH and the GERRIT_REFSPEC parameters, then click Build.