~canonical-platform-qa/qa-jenkins-jobs/remove-sudo-when-cleaning-workspace

« back to all changes in this revision

Viewing changes to mp-ci-autoland/ci-jobs.yaml

  • Committer: Christopher Lee
  • Date: 2016-03-07 23:40:29 UTC
  • mfrom: (16.4.6 adding-autolanding)
  • Revision ID: chris.lee@canonical.com-20160307234029-mrym6wxeuxr4cmuh
Add autopilot autolanding. Manual merge of: lp:~canonical-platform-qa/qa-jenkins-jobs/adding-autopilot-autolanding

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
            parallelism: {parallelism}
343
343
    publishers:
344
344
        - collect-debs
 
345
 
 
346
- project:
 
347
    name: 'autopilot-autolanding'
 
348
    # Make this paramatised perhaps
 
349
    jobs:
 
350
      - 'autopilot-autoland'
 
351
      - 'trigger-autopilot-autoland'
 
352
      - 'generic-land-mp'
 
353
      
 
354
- job-template:
 
355
    name: 'autopilot-autoland'
 
356
    node: 'jenkins-slave-2'
 
357
    # This token is the string that was setup for the launchpad bot.
 
358
    auth-token: BUILD_ME
 
359
    parameters:
 
360
      - string:
 
361
          name: 'landing_candidate'
 
362
          description: 'The launchpad branch to process'
 
363
      - string:
 
364
          name: 'candidate_revision'
 
365
          description: 'The revision of the branch'
 
366
      - string:
 
367
          name: 'merge_proposal'
 
368
          description: 'The merge proposal to process'
 
369
    builders:
 
370
      - trigger-deb-builders:
 
371
            landing_candidate: {landing_candidate}
 
372
            target_branch: 'lp:autopilot'
 
373
            hooks: 'H05set_package_version H10strip_native_depends'
 
374
            parallelism: 1
 
375
      - 'trigger-generic-land-mp'
 
376
    publishers:
 
377
      - 'trigger-generic-land-mp-failed'
 
378
        
 
379
- builder:
 
380
    name: 'trigger-generic-land-mp'
 
381
    builders:
 
382
      - trigger-builds:
 
383
          - project: 
 
384
              - 'generic-land-mp'
 
385
            block: 'true'
 
386
            predefined-parameters: |
 
387
              ci_result=PASSED
 
388
              ci_build=$BUILD_URL
 
389
              ci_branch=$landing_candidate
 
390
              ci_merge_proposal=$merge_proposal
 
391
              ci_revision=$candidate_revision
 
392
            block-thresholds:
 
393
              build-step-failure-threshold: 'never'
 
394
              unstable-threshold: 'never'
 
395
              failure-threshold: 'never'
 
396
                
 
397
- publisher:
 
398
    name: 'trigger-generic-land-mp-failed'
 
399
    publishers:
 
400
        - trigger-parameterized-builds:
 
401
          - project: 
 
402
                - 'generic-land-mp'
 
403
            condition: 'UNSTABLE_OR_WORSE'
 
404
            predefined-parameters: |
 
405
                ci_result=FAILED
 
406
                ci_build=$BUILD_URL
 
407
                ci_branch=$landing_candidate
 
408
                ci_merge_proposal=$merge_proposal
 
409
                ci_revision=$candidate_revision
 
410
    
 
411
- job-template:
 
412
    name: 'trigger-autopilot-autoland'
 
413
    node: 'jenkins-slave-2'
 
414
    triggers:
 
415
      - timed: 'H/5 * * * *'
 
416
    builders:
 
417
      - shell: |
 
418
            BRANCH_NAME=lp:autopilot
 
419
            TARGET_JOB=autopilot-autoland
 
420
 
 
421
            launchpadTrigger --lock-name=$JOB_NAME --job=$TARGET_JOB --branch=$BRANCH_NAME --autoland
 
422
      
 
423
- job-template:
 
424
    name: 'generic-land-mp'
 
425
    node: 'jenkins-slave-2'
 
426
    parameters:
 
427
      - string:
 
428
          name: 'ci_result'
 
429
          description: 'The result of the CI build'
 
430
      - string:
 
431
          name: 'ci_build'
 
432
          description: 'The jenkins URL of the build'
 
433
      - string:
 
434
          name: 'ci_branch'
 
435
          description: 'The launchpad branch that was processed'
 
436
      - string:
 
437
          name: 'ci_merge_proposal'
 
438
          description: 'The launchpad merge proposal that was processed'
 
439
      - string:
 
440
          name: 'ci_revision'
 
441
          description: 'The revision of the processed branch'
 
442
    builders:
 
443
      - shell: |
 
444
            autoland --test-result="$ci_result" --build-job-url="$ci_build" --merge-proposal="$ci_merge_proposal" --revision="$ci_revision"