Skip to content

Instantly share code, notes, and snippets.

View Aricg's full-sized avatar

Aric Gardner Aricg

View GitHub Profile
White:
Ricky
Aric
Greg
Abrams
Sandro
Felix
G - joseph weimers
Black:
$ ssh -p 29418 [email protected]
**** Welcome to Gerrit Code Review ****
Hi Aric Gardner, you have successfully connected over SSH.
Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
git clone ssh://[email protected]:29418/REPOSITORY_NAME.git
rtdv3 jobs readme
https://docs.releng.linuxfoundation.org/projects/global-jjb/en/latest/jjb/lf-rtdv3-jobs.html
#Clone repo:
$ git clone "ssh://[email protected]:29418/aaf/authz"
Cloning into 'authz'...
remote: Counting objects: 24, done
remote: Total 33524 (delta 0), reused 33524 (delta 0)
Receiving objects: 100% (33524/33524), 25.18 MiB | 6.60 MiB/s, done.
#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2018 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
16:04:05 ---> tox-run.sh
16:04:05 ---> Setting up pyenv
16:04:05 /usr/bin/pip
16:04:05 Python 2.7.5
16:04:05 Python 3.6.8
16:04:05 pip 19.3.1 from /home/jenkins/.local/lib/python3.6/site-packages/pip (python 3.6)
16:04:06 pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
16:04:06 3.14.0 imported from /home/jenkins/.local/lib/python3.6/site-packages/tox/__init__.py
16:04:06 registered plugins:
16:04:06 tox-pyenv-1.1.0 at /home/jenkins/.local/lib/python3.6/site-packages/tox_pyenv.py
sudo yum -y install python36 python36-devel python36-pip python36-setuptools python36-virtualenv
sudo alternatives --list | grep -i python
sudo alternatives --install /usr/bin/python python /usr/bin/python3.6 2
sudo alternatives --install /usr/bin/python python /usr/bin/python2.7 1
#This wont work, becasue pip is not a symlink!
#sudo alternatives --install /usr/bin/pip pip /usr/bin/pip3.6 1
echo "Check python"
python -m pip --version
#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
lftools/api/endpoints/__init__.py
| 1| #·-*-·coding:·utf-8·-*-
| | [NORMAL] PyDocStyleBear:
| | D104: Missing docstring in public package
[WARNING][15:01:57] PyDocStyleBear: This result has no patch attached.
lftools/api/__init__.py
| 1| #·-*-·coding:·utf-8·-*-
| | [NORMAL] PyDocStyleBear:
#!/bin/bash
#get lftools patchset that can create jira projects.
#lftools.
git clone ssh://[email protected]:29418/releng/lftools
cd lftools
git review -d 15430
source ~/.venvpy3-feb/bin/activate
pip uninstall lftools
pip install -e .
#####
@Aricg
Aricg / foobar.sh
Last active September 5, 2017 17:48
monitor jnlp slaves jenkins hack
#!/bin/bash
#Yes I know about jq
curlcommand() {
curl -s "https://build.opnfv.org/ci/computer/api/json?tree=computer\[displayName,offline\]" \
| awk -v k=":" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' \
| grep -v "_class" \
| awk 'NR%2{printf "%s ",$0;next;}1' \
| awk -F":" '{print $2,$3}' \