This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - job-template: | |
| name: '{name}-spec' | |
| project-type: freestyle | |
| disabled: false | |
| description: variable number of builders example | |
| builders: | |
| - shell: !include-raw-escape scripts/setup.bash | |
| - '{custom-builders}' | |
| - builder: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [vagrant] | |
| build | |
| [parallel] | |
| build1 | |
| build2 | |
| build3 | |
| build4 | |
| build5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: localhost | |
| connection: local | |
| tasks: | |
| - name: setup parallel workers | |
| add_host: | |
| name: task-{{ item }} | |
| groups: parallel | |
| service: "{{ item }}" | |
| always_run: yes | |
| with_items: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import mock | |
| import requests | |
| def build_response_mock(status_code, json_body=None, headers=None, **kwargs): | |
| response = requests.Response() | |
| response.status_code = status_code | |
| text = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| virtualenv testscenarios-bug | |
| source testscenarios-bug/bin/activate | |
| pip install testtools testscenarios fixtures | |
| cat <<EOF > test_bug.py | |
| import os | |
| import fixtures | |
| import testscenarios | |
| import testtools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Given: | |
| J | |
| / \ | |
| B--------I---E---K master | |
| / / | |
| / B1 <--- last import replayed B | |
| / / | |
| A---C---D---F---G---H upstream/master | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # desired output | |
| # gerrit_groups => { | |
| # "Administrators" => { | |
| # "members" => ["admin", "creator"] | |
| # }, | |
| # "Project Creators" => { | |
| # "members" => ["creator"] | |
| # } | |
| # } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gerrit_1 | add-gerrit-user.sh: Testing Gerrit Connection | |
| gerrit_1 | add-gerrit-user.sh: Gerrit unavailable, sleeping for 5 | |
| gerrit_1 | First time initialize gerrit... | |
| gerrit_1 | [2017-02-27 18:01:03,305] [main] INFO com.google.gerrit.server.config.GerritServerConfigProvider : No /var/gerrit/review_site/etc/gerrit.config; assuming defaults | |
| gerrit_1 | Generating SSH host key ... rsa(simple)... done | |
| gerrit_1 | [GC (Metadata GC Threshold) 262401K->18272K(2010112K), 0.0359908 secs] | |
| gerrit_1 | [Full GC (Metadata GC Threshold) 18272K->17437K(2010112K), 0.0988053 secs] | |
| gerrit_1 | Initialized /var/gerrit/review_site | |
| gerrit_1 | | |
| gerrit_1 | /gerrit-entrypoint.sh: running /docker-entrypoint-init.d/create_users.nohup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - job: | |
| name: 'test_jenkins_job_jenkinsfile' | |
| project-type: pipeline | |
| sandbox: true | |
| concurrent: true | |
| dsl: | | |
| node('ubuntu-xenial') { | |
| def pipeline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class jenkins::slave::baremetal_test ( | |
| $ensure = 'present', | |
| ) | |
| { | |
| $defaults = merge({ ensure => $ensure }, hiera('jenkins::slave::baremetal')) | |
| create_resoures('class', { 'jenkins::slave::baremetal' => hiera('jenkins::slave::baremetal_test') }, $defaults ) | |
| } |
OlderNewer