This file contains 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
#! /bin/bash | |
## how to use | |
## ./dci-rhel-agent.sh <command> | |
function build() { | |
podman build -f Dockerfile -t dci-rhel-agent --no-cache | |
} | |
function run() { |
This file contains 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
#! /usr/bin/python3 | |
import functools | |
import os.path | |
import bugzilla | |
from distroinfo.info import DistroInfo | |
URL = 'https://bugzilla.redhat.com' | |
TICKET = '1625773' | |
RDOINFO_RAW_URL = \ |
This file contains 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
#! /usr/bin/python3 | |
import koji | |
import os | |
import rdoinfo | |
import six | |
import sys | |
def get_build_tags(info, release): |
This file contains 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
#! /usr/bin/env python | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
This file contains 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
#!/usr/bin/python | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
This file contains 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
#! /bin/bash | |
REPLICATION_HOME=/home/gerrit | |
MISSING_LOG=$REPLICATION_HOME/missing.log | |
MISSING_CONFIG=$REPLICATION_HOME/missing.config | |
for i in $REPLICATION_HOME/.ssh/*key; do | |
key=`basename $i` | |
project=${key//.key} | |
grep $project replication.config &>/dev/null || echo "missing project: $project" > $MISSING_LOG |
This file contains 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
#! /bin/bash | |
set -x | |
GH_API_KEY= | |
RPMF_HOST=review.rdoproject.org | |
EMAIL=hguemar@fedoraproject.org | |
GERRIT_USER=hguemar | |
GERRIT_PASS= | |
GERRIT_ADMIN_PASS= |
This file contains 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
#! /usr/bin/python3 | |
import argparse | |
from operator import attrgetter | |
import os | |
import sys | |
from github import Github | |
def main(): |
This file contains 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
#!/usr/bin/expect -f | |
spawn rpm --addsign {*}$argv | |
expect -exact "Enter pass phrase: " | |
send -- "Secret passphrase\r" | |
expect eof | |
This file contains 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
#! /bin/bash | |
#set -ex | |
SF_URL=https://review.rdoproject.org | |
SF_PWD=REPLACE_ME | |
RDOINFO=~/rdoinfo | |
# Retrieve list of registered users | |
registered_users=`sfmanager --url $SF_URL --auth admin:$SF_PWD membership list` |
NewerOlder