Versions Compared

Key

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

...

Code Block
[job_builder]
ignore_cache=True
keep_descriptions=False
recursive=True
update=jobs

[jenkins]
query_plugins_info=False
url=https://jenkins.o-ran-sc.org/sandbox
user=your-sandbox-user-name
password=your-sandbox-api-token

Start a job in the sandbox for a specific commit in Gerrit

If changes in a commit forces changes in the jjb configuration, such a e.g. a restructuring of files, then it is useful to be able to start a sandbox job with the updated jjb configuration without having to commit any of the changes. To do this, follow the procedure below.

  • Push the updated yaml file with the jjb configuration to Gerrit.
  • In Gerrit for the change set to verify, open the "Download" dialog.

  • Copy "Checkout" line, it looks like this:
                 git fetch "https://gerrit.o-ran-sc.org/r/sim/a1-interface" refs/changes/62/2962/1 && git checkout FETCH_HEAD

  • Paste it in an editor and copy the following part:
                 refs/changes/62/2962/1

  • Go to the Jenkins sand box.

  • Login.

  • Find your job and click build with parameters,


  • On that screen find these fields:
                 GERRIT_BRANCH
                 GERRIT_REFSPEC

  • Paste that "refs/changes/" string into BOTH fields then click the "Build" button.

Jenkins Build Minion Labels and Images

...