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
--- | |
kind: Template | |
apiVersion: v1 | |
metadata: | |
name: jenkins-ephemeral | |
creationTimestamp: | |
annotations: | |
openshift.io/display-name: Jenkins (Ephemeral) | |
description: |- | |
Jenkins service, without persistent storage. |
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
wget https://gist.githubusercontent.com/firemanxbr/9da9ec8fa676a91af004e2968919aecf/raw/fd60e1633c37165b6e214c7df02bed803cc7cfb4/get-api-token.groovy | |
curl -k --data-urlencode "script=$(< ./get-api-token.groovy)" -H "Authorization: Bearer `oc serviceaccounts get-token jenkins -n rhproduct`" https://jenkins-rhproduct.192.168.42.242.nip.io/script |
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 hudson.model.User; | |
import jenkins.security.ApiTokenProperty; | |
import hudson.util.Secret; | |
// Get the actual token | |
u = User.get("admin") | |
tokprop = u.getProperty(ApiTokenProperty.class) | |
actual_token = tokprop.getApiTokenInsecure() |
This file has been truncated, but you can view the full file.
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
2018-04-09 15:36:54,504 extension L0189 DEBUG| found extension EntryPoint.parse('journal = avocado.plugins.journal:JournalResult') | |
2018-04-09 15:36:54,504 extension L0189 DEBUG| found extension EntryPoint.parse('tap = avocado.plugins.tap:TAPResult') | |
2018-04-09 15:36:54,504 extension L0189 DEBUG| found extension EntryPoint.parse('human = avocado.plugins.human:Human') | |
2018-04-09 15:36:54,506 extension L0189 DEBUG| found extension EntryPoint.parse('teststmpdir = avocado.plugins.teststmpdir:TestsTmpDir') | |
2018-04-09 15:36:54,506 extension L0189 DEBUG| found extension EntryPoint.parse('jobscripts = avocado.plugins.jobscripts:JobScripts') | |
2018-04-09 15:36:54,506 extension L0189 DEBUG| found extension EntryPoint.parse('human = avocado.plugins.human:HumanJob') | |
2018-04-09 15:36:54,510 extension L0189 DEBUG| found extension EntryPoint.parse('json_variants = avocado.plugins.json_variants:JsonVariants') | |
2018-04-09 15:36:54,510 extension L0189 DEBUG| found extension E |
This file has been truncated, but you can view the full file.
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
2018-04-09 15:20:59,409 extension L0189 DEBUG| found extension EntryPoint.parse('journal = avocado.plugins.journal:JournalResult') | |
2018-04-09 15:20:59,410 extension L0189 DEBUG| found extension EntryPoint.parse('tap = avocado.plugins.tap:TAPResult') | |
2018-04-09 15:20:59,410 extension L0189 DEBUG| found extension EntryPoint.parse('human = avocado.plugins.human:Human') | |
2018-04-09 15:20:59,412 extension L0189 DEBUG| found extension EntryPoint.parse('teststmpdir = avocado.plugins.teststmpdir:TestsTmpDir') | |
2018-04-09 15:20:59,413 extension L0189 DEBUG| found extension EntryPoint.parse('jobscripts = avocado.plugins.jobscripts:JobScripts') | |
2018-04-09 15:20:59,413 extension L0189 DEBUG| found extension EntryPoint.parse('human = avocado.plugins.human:HumanJob') | |
2018-04-09 15:20:59,417 extension L0189 DEBUG| found extension EntryPoint.parse('json_variants = avocado.plugins.json_variants:JsonVariants') | |
2018-04-09 15:20:59,417 extension L0189 DEBUG| found extension E |
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
""" | |
contra-env-setup continuous integration test | |
""" | |
import os | |
from avocado import main | |
from avocado import Test | |
from avocado.utils import vmimage | |
from avocado.utils import git | |
from avocado.utils import process |
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 os | |
import tempfile | |
from avocado.utils import process | |
from avocado.utils import path as utils_path | |
def _get_ip(domain): | |
cmd = ['virsh', | |
'--connect', 'qemu:///system', |
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
""" | |
contra-env-setup continuous integration test | |
""" | |
from avocado_qemu import QemuTest | |
from avocado_qemu import GetConsole | |
from avocado.utils import vmimage | |
from avocado.utils import git | |
from avocado.utils import process | |
from avocado.utils import path as utils_path |
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
2018-04-03 15:41:09,215 extension L0189 DEBUG| found extension EntryPoint.parse('journal = avocado.plugins.journal:JournalResult') | |
2018-04-03 15:41:09,215 extension L0189 DEBUG| found extension EntryPoint.parse('tap = avocado.plugins.tap:TAPResult') | |
2018-04-03 15:41:09,215 extension L0189 DEBUG| found extension EntryPoint.parse('human = avocado.plugins.human:Human') | |
2018-04-03 15:41:09,216 extension L0189 DEBUG| found extension EntryPoint.parse('teststmpdir = avocado.plugins.teststmpdir:TestsTmpDir') | |
2018-04-03 15:41:09,216 extension L0189 DEBUG| found extension EntryPoint.parse('jobscripts = avocado.plugins.jobscripts:JobScripts') | |
2018-04-03 15:41:09,217 extension L0189 DEBUG| found extension EntryPoint.parse('human = avocado.plugins.human:HumanJob') | |
2018-04-03 15:41:09,219 extension L0189 DEBUG| found extension EntryPoint.parse('json_variants = avocado.plugins.json_variants:JsonVariants') | |
2018-04-03 15:41:09,219 extension L0189 DEBUG| found extension E |
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
TASK [minishift : Initialization of minishift cluster with profile minishift] ******************************************************************************************************************************************* | |
task path: /home/firemanxbr/GitHub/contra-env-setup/playbooks/roles/minishift/tasks/init_minishift.yml:3 | |
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py | |
<localhost> ESTABLISH SSH CONNECTION FOR USER: avocado | |
<localhost> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -oUser=avocado -o ConnectTimeout=10 -p 12345 -o ControlPath=/home/firemanxbr/.ansible/cp/50a6c8b9da localhost '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' | |
<localhost> (0, '/home/avocado\n', '') | |
<localhost> ESTABLISH SSH CONNECTION FOR USER: avocado | |
<localhost> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentica |