Run all source jobs from the same workspace
authorChristoph Berg <myon@debian.org>
Sat, 9 Jan 2016 22:37:27 +0000 (23:37 +0100)
committerChristoph Berg <myon@debian.org>
Sat, 9 Jan 2016 22:37:27 +0000 (23:37 +0100)
jenkins/pgapt-jobs.yaml

index f24135b37c8187691b3d844424beb58d88a0893b..d552ef3b282edbb4cc2eb65f32187abd56110540 100644 (file)
 # apt template
 
 - job-template: &apt_source_template
-        name: '{name}-apt-source'
+        name: '{name}-source-apt'
         job-name: '{name}-source'
         description: 'Build Debian source package of {name} from "apt-get source".<br />Do not edit this job through the web interface, it is generated via jenkins-job-builder!'
         project-type: matrix
+        child-workspace: .
         parameters:
                 - string: &revision_string
                         name: revision
 
 - job-template: &git_source_template
         <<: *apt_source_template
-        name: '{name}-git-source'
+        name: '{name}-source-git'
         description: 'Build Debian source package of {name} from git.<br />Do not edit this job through the web interface, it is generated via jenkins-job-builder!'
         parameters:
                 - string: &git_branch
                         basedir: source
                         wipe-workspace: false
                         recursive-submodules: true
+                        clean:
+                                before: true
 
 # special git-in-git job for postgresql-devel
 - job-template:
 
 - job-template:
         <<: *apt_source_template
-        name: '{name}-svn-source'
+        name: '{name}-source-svn'
         description: 'Build Debian source package of {name} from svn.<br />Do not edit this job through the web interface, it is generated via jenkins-job-builder!'
         parameters:
                 - string: *revision_string
 - job-group:
         name: apt-packages
         jobs:
-                - '{name}-apt-source'
+                - '{name}-source-apt'
                 - '{name}-binaries'
         next-job: dput
         noadt: ''
 - job-group:
         name: git-packages
         jobs:
-                - '{name}-git-source'
+                - '{name}-source-git'
                 - '{name}-binaries'
         next-job: dput
         noadt: ''
 - job-group:
         name: git-packages-sequential
         jobs:
-                - '{name}-git-source'
+                - '{name}-source-git'
                 - '{name}-binaries-sequential'
         next-job: dput
         noadt: ''
 - job-group:
         name: git-packages-with-next
         jobs:
-                - '{name}-git-source'
+                - '{name}-source-git'
                 - '{name}-binaries-with-next'
                 - '{name}-binaries-beta'
                 - '{name}-binaries-devel'
 - job-group:
         name: git-packages-adt
         jobs:
-                - '{name}-git-source'
+                - '{name}-source-git'
                 - '{name}-binaries'
                 - '{name}-testsuite'
         #next-job: '{name}-testsuite' -- doesn't resolve {name} (needs to be set manually in the job)
 - job-group:
         name: svn-packages
         jobs:
-                - '{name}-svn-source'
+                - '{name}-source-svn'
                 - '{name}-binaries'
         next-job: dput
         noadt: ''