backup for github launch
This commit is contained in:
parent
8ff1e6d150
commit
4cb862a908
6 changed files with 42 additions and 2 deletions
|
@ -24,7 +24,7 @@ chown -R jenkins:jenkins "${AGENT_ROOT}"
|
||||||
mkdir -p "${CCACHE_PATH}"
|
mkdir -p "${CCACHE_PATH}"
|
||||||
chown -R jenkins:jenkins "${CCACHE_PATH}"
|
chown -R jenkins:jenkins "${CCACHE_PATH}"
|
||||||
|
|
||||||
# TODO(kuhnel): wipe the disk on startup
|
# TODO(kuhnel): wipe the disk(s) on startup
|
||||||
|
|
||||||
# start ssh server
|
# start ssh server
|
||||||
/usr/sbin/sshd -D
|
/usr/sbin/sshd -D
|
|
@ -17,5 +17,5 @@ set -eux
|
||||||
|
|
||||||
# nfs needs to be deployed first, as it creates the presistent volumes
|
# nfs needs to be deployed first, as it creates the presistent volumes
|
||||||
kubectl apply -f nfs.yaml
|
kubectl apply -f nfs.yaml
|
||||||
kubectl apply -k -f results-nginx
|
kubectl apply -k results-nginx
|
||||||
kubectl apply -f jenkins.yaml
|
kubectl apply -f jenkins.yaml
|
20
kubernetes/reverse-proxy/update_auth.sh
Executable file
20
kubernetes/reverse-proxy/update_auth.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Copyright 2019 Google LLC
|
||||||
|
#
|
||||||
|
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# https://llvm.org/LICENSE.txt
|
||||||
|
#
|
||||||
|
# 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 License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
#delete the old secret
|
||||||
|
kubectl delete secret proxy-auth --namespace=jenkins
|
||||||
|
# upload the new secret
|
||||||
|
kubectl create secret generic proxy-auth --from-file=auth --namespace=jenkins
|
1
scripts/phabtalk/.gitignore
vendored
Normal file
1
scripts/phabtalk/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
venv
|
18
scripts/phabtalk/phabtalk.py
Executable file
18
scripts/phabtalk/phabtalk.py
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
from phabricator import Phabricator
|
||||||
|
|
||||||
|
|
||||||
|
class PhabTalk:
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self._phab = Phabricator()
|
||||||
|
|
||||||
|
def get_revision_id
|
||||||
|
|
||||||
|
def main(phid: str, diff: str):
|
||||||
|
result = phab.differential.querydiffs(ids=[diff])
|
||||||
|
return 'D'+result[diff]['revisionID'])
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main('PHID-HMBT-vitgimipuq4ntrmacw67','223623')
|
1
scripts/phabtalk/requirements.txt
Normal file
1
scripts/phabtalk/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
phabricator==0.7.0
|
Loading…
Reference in a new issue