From b91a6d4bbaf71001ef1ebb1cd99460bab33ae2d0 Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Tue, 7 Nov 2017 15:59:10 -0700 Subject: image foundry and glance gateway JJB files --- jjb/yaml/glance-gateway-if-pipeline.yaml | 37 ++++++++++++++++++++++++++++++++ jjb/yaml/glance-gateway.yaml | 26 ++++++++++++++++++++++ jjb/yaml/image-foundry-if-pipeline.yaml | 12 +++++++++++ 3 files changed, 75 insertions(+) create mode 100644 jjb/yaml/glance-gateway-if-pipeline.yaml create mode 100644 jjb/yaml/glance-gateway.yaml (limited to 'jjb/yaml') diff --git a/jjb/yaml/glance-gateway-if-pipeline.yaml b/jjb/yaml/glance-gateway-if-pipeline.yaml new file mode 100644 index 0000000..98ca417 --- /dev/null +++ b/jjb/yaml/glance-gateway-if-pipeline.yaml @@ -0,0 +1,37 @@ +--- +- job: + name: glance-gateway-gg-pipeline + project-type: pipeline + dsl: | + pipeline { + agent { + node { + label "master" + } + } + stages { + stage("checkout-manifests") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/glance-gateway" + } + } + steps { + git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/glance-gateway.git") + } + } + stage("update-images") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/image-foundry" + } + } + steps { + git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/image-foundry.git") + sh(script: "./glance-gateway.sh") + } + } + } + } diff --git a/jjb/yaml/glance-gateway.yaml b/jjb/yaml/glance-gateway.yaml new file mode 100644 index 0000000..f56ad24 --- /dev/null +++ b/jjb/yaml/glance-gateway.yaml @@ -0,0 +1,26 @@ +--- +- job: + name: "glance-gateway" + project-type: freestyle + node: image_foundry + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + - build-blocker: + use-build-blocker: true + blocking-jobs: + - ".*if-pipeline" + block_level: 'GLOBAL' + queue-scanning: 'BUILDABLE' + artifact-days-to-keep: 0 + triggers: + - github + scm: + - git: + url: "git@github.vcp.vzwnet.com:konstca/glance-gateway.git" + branches: + - "master" + builders: + - trigger-builds: + - project: "glance-gateway-gg-pipeline" diff --git a/jjb/yaml/image-foundry-if-pipeline.yaml b/jjb/yaml/image-foundry-if-pipeline.yaml index 69f45e2..15de1dc 100644 --- a/jjb/yaml/image-foundry-if-pipeline.yaml +++ b/jjb/yaml/image-foundry-if-pipeline.yaml @@ -11,11 +11,23 @@ } stages { stage("checkout-elements") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/image-foundry-vzw" + } + } steps { git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/image-foundry-vzw.git") } } stage("diskimage-builder") { + agent { + node { + label "glance_gateway" + customWorkspace "workspace/image-foundry" + } + } steps { git(poll: false, branch: "master", url: "git@github.vcp.vzwnet.com:konstca/image-foundry.git") sh(script: "./image-foundry.sh") -- cgit v1.3