Fixing development-pipeline regression

Change-Id: I2f9838a04f332e61cdbfabc3ad2cc18d7b0fc9a5
This commit is contained in:
Danny Massa 2021-03-03 12:27:39 -06:00
parent beefa8dd30
commit d2692c2e70
26 changed files with 12 additions and 11 deletions

View File

@ -31,10 +31,11 @@ spec:
else else
echo "Namespace already exists, delete all resources for re-run." echo "Namespace already exists, delete all resources for re-run."
kubectl delete pr -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) --all kubectl delete pr -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) --all
helm delete development-pipeline -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) helm delete development-pipeline -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) || true
kubectl delete role -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) kubectl delete role -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) --all
kubectl delete sa -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) kubectl delete secret -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) --all
kubectl delete rolebinding -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) kubectl delete sa -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) --all
kubectl delete rolebinding -n jarvis-$(params.changeNumber)-$(params.patchSetNumber) --all
fi fi
} }
create_namespace create_namespace

View File

@ -72,7 +72,7 @@ data:
"chart_registry_url": "harbor-core.jarvis.local/chartrepo", "chart_registry_url": "harbor-core.jarvis.local/chartrepo",
"chart_repository": "jarvis-harbor", "chart_repository": "jarvis-harbor",
"docker_registry": "harbor-core.jarvis.local", "docker_registry": "harbor-core.jarvis.local",
"harbor_secret_mounted_path": "/workspace/helm-creds" "harbor_secret_mounted_path": "/workspace/helm-creds",
"clone_async_batch_size": 20, "clone_async_batch_size": 20,
"chart_async_batch_size": 20, "chart_async_batch_size": 20,
"image_async_batch_size": 2 "image_async_batch_size": 2

View File

@ -68,7 +68,7 @@ data:
"chart_registry_url": "harbor-core.jarvis.local/chartrepo", "chart_registry_url": "harbor-core.jarvis.local/chartrepo",
"chart_repository": "jarvis-harbor", "chart_repository": "jarvis-harbor",
"docker_registry": "harbor-core.jarvis.local", "docker_registry": "harbor-core.jarvis.local",
"harbor_secret_mounted_path": "/workspace/helm-creds" "harbor_secret_mounted_path": "/workspace/helm-creds",
"clone_async_batch_size": 20, "clone_async_batch_size": 20,
"chart_async_batch_size": 20, "chart_async_batch_size": 20,
"image_async_batch_size": 2 "image_async_batch_size": 2

View File

@ -72,7 +72,7 @@ data:
"chart_registry_url": "harbor-core.jarvis.local/chartrepo", "chart_registry_url": "harbor-core.jarvis.local/chartrepo",
"chart_repository": "jarvis-harbor", "chart_repository": "jarvis-harbor",
"docker_registry": "harbor-core.jarvis.local", "docker_registry": "harbor-core.jarvis.local",
"harbor_secret_mounted_path": "/workspace/helm-creds" "harbor_secret_mounted_path": "/workspace/helm-creds",
"clone_async_batch_size": 20, "clone_async_batch_size": 20,
"chart_async_batch_size": 20, "chart_async_batch_size": 20,
"image_async_batch_size": 2 "image_async_batch_size": 2

View File

@ -72,7 +72,7 @@ data:
"chart_registry_url": "harbor-core.jarvis.local/chartrepo", "chart_registry_url": "harbor-core.jarvis.local/chartrepo",
"chart_repository": "jarvis-harbor", "chart_repository": "jarvis-harbor",
"docker_registry": "harbor-core.jarvis.local", "docker_registry": "harbor-core.jarvis.local",
"harbor_secret_mounted_path": "/workspace/helm-creds" "harbor_secret_mounted_path": "/workspace/helm-creds",
"clone_async_batch_size": 20, "clone_async_batch_size": 20,
"chart_async_batch_size": 20, "chart_async_batch_size": 20,
"image_async_batch_size": 2 "image_async_batch_size": 2

View File

@ -72,7 +72,7 @@ data:
"chart_registry_url": "harbor-core.jarvis.local/chartrepo", "chart_registry_url": "harbor-core.jarvis.local/chartrepo",
"chart_repository": "jarvis-harbor", "chart_repository": "jarvis-harbor",
"docker_registry": "harbor-core.jarvis.local", "docker_registry": "harbor-core.jarvis.local",
"harbor_secret_mounted_path": "/workspace/helm-creds" "harbor_secret_mounted_path": "/workspace/helm-creds",
"clone_async_batch_size": 20, "clone_async_batch_size": 20,
"chart_async_batch_size": 20, "chart_async_batch_size": 20,
"image_async_batch_size": 2 "image_async_batch_size": 2

View File

@ -72,7 +72,7 @@ data:
"chart_registry_url": "harbor-core.jarvis.local/chartrepo", "chart_registry_url": "harbor-core.jarvis.local/chartrepo",
"chart_repository": "jarvis-harbor", "chart_repository": "jarvis-harbor",
"docker_registry": "harbor-core.jarvis.local", "docker_registry": "harbor-core.jarvis.local",
"harbor_secret_mounted_path": "/workspace/helm-creds" "harbor_secret_mounted_path": "/workspace/helm-creds",
"clone_async_batch_size": 20, "clone_async_batch_size": 20,
"chart_async_batch_size": 20, "chart_async_batch_size": 20,
"image_async_batch_size": 2 "image_async_batch_size": 2

View File

@ -77,7 +77,7 @@ for jarvis_project in `find ./tools/gate/jarvis/5G-SA-core -maxdepth 1 -mindepth
end=$((end + timeout)) end=$((end + timeout))
while true; do while true; do
result="$(curl -L https://gerrit.jarvis.local/changes/${CHANGE_ID_COUNTER}/revisions/1/checks | tail -1 | jq -r .[].state)" result="$(curl -L https://gerrit.jarvis.local/changes/${CHANGE_ID_COUNTER}/revisions/1/checks | tail -1 | jq -r .[].state)"
[ $result == "SUCCESSFUL" ] && break || [ $result == "FAILED" ] && break || true [ $result == "SUCCESSFUL" ] && break || true
sleep 25 sleep 25
now=$(date +%s) now=$(date +%s)
if [ $now -gt $end ] ; then if [ $now -gt $end ] ; then

View File

View File

View File

View File

View File