Browse Source
Set the stx_remote_repo, stx_remote_branch and stx_remote_dest variables to pull directly from the source repo to test. Change-Id: I6d5bb56c71c38c4274532c258a1682e578cedf10 Signed-off-by: Dean Troyer <dtroyer@gmail.com>changes/88/656188/3 Test1234
4 changed files with 42 additions and 13 deletions
@ -1,3 +1,19 @@
|
||||
- project: |
||||
templates: |
||||
- noop-jobs |
||||
check: |
||||
jobs: |
||||
- stx-github-debug: |
||||
vars: |
||||
stx_remote_repo: https://github.com/starlingx-staging/tools-contrib.git |
||||
stx_remote_branch: master |
||||
|
||||
- job: |
||||
name: stx-github-debug |
||||
parent: tox |
||||
vars: |
||||
stx_remote_repo: https://github.com/starlingx-staging/tools.contrib.git |
||||
stx_remote_branch: master |
||||
stx_repo_dest: src/test-repo |
||||
tox_envlist: debug |
||||
pre-run: playbooks/fetch-remote-repo/pre.yaml |
||||
|
@ -0,0 +1,23 @@
|
||||
# stx_repo_dest - Destination directory (relative to Zuul root) |
||||
# stx_remote_repo - URL for the repo to pull |
||||
# stx_remote_branch - Branch within repo to test |
||||
|
||||
- hosts: all |
||||
pre_tasks: |
||||
- name: Determine if repo directory exists already |
||||
stat: |
||||
path: "{{ stx_repo_dest }}" |
||||
register: stx_repo_exists |
||||
|
||||
- debug: |
||||
msg: "Cloning {{ stx_remote_repo }} branch {{ stx_remote_branch }}" |
||||
when: stx_repo_exists.stat.isdir is undefined |
||||
|
||||
- name: Clone remote repo |
||||
git: |
||||
# repo: https://github.com/starlingx-staging/stx-nova.git |
||||
# version: stx/stein.1 |
||||
repo: "{{ stx_remote_repo }}" |
||||
version: "{{ stx_remote_branch }}" |
||||
dest: "{{ stx_repo_dest }}" |
||||
when: stx_repo_exists.stat.isdir is undefined |
Loading…
Reference in new issue