Use a local cache for JJB jobs 44/71244/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 7 Oct 2020 19:51:27 +0000 (12:51 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 7 Oct 2020 19:51:27 +0000 (12:51 -0700)
This should prevent the error:

    Traceback (most recent call last):
      File "/tmp/tmp.5aGg6za4Iw/bin/jenkins-jobs", line 8, in <module>
        sys.exit(main())
      File "/tmp/tmp.5aGg6za4Iw/lib/python3.5/site-packages/jenkins_jobs/cli/entry.py", line 165, in main
        jjb.execute()
      File "/tmp/tmp.5aGg6za4Iw/lib/python3.5/site-packages/jenkins_jobs/cli/entry.py", line 146, in execute
        ext.obj.execute(self.options, self.jjb_config)
      File "/tmp/tmp.5aGg6za4Iw/lib/python3.5/site-packages/jenkins_jobs/cli/subcommand/test.py", line 55, in execute
        options, jjb_config)
      File "/tmp/tmp.5aGg6za4Iw/lib/python3.5/site-packages/jenkins_jobs/cli/subcommand/update.py", line 97, in _generate_xmljobs
        builder = JenkinsManager(jjb_config)
      File "/tmp/tmp.5aGg6za4Iw/lib/python3.5/site-packages/jenkins_jobs/builder.py", line 60, in __init__
        flush=jjb_config.builder['flush_cache'])
      File "/tmp/tmp.5aGg6za4Iw/lib/python3.5/site-packages/jenkins_jobs/cache.py", line 54, in __init__
        "Unable to lock cache for '%s'" % jenkins_url)

Change-Id: Ia027d64aec0caf582893009e709f938531bea15d
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/releng/releng-jobs.yaml [moved from jjb/releng/releng-rtd-jobs.yaml with 89% similarity]

similarity index 89%
rename from jjb/releng/releng-rtd-jobs.yaml
rename to jjb/releng/releng-jobs.yaml
index f7c9603..4a39333 100644 (file)
@@ -4,6 +4,7 @@
     project: 'releng'
     project-name: 'releng'
     jjb-version: '2.5.0'
+    jjb-cache: "$WORKSPACE/.cache/jenkins_jobs"
 
     build-timeout: 60