Track otherwise untracked changes.

This commit is contained in:
jimmy committed 2022-09-23 21:17:39 -04:00
1 parent 52dcab2621
commit a82cfc1323
6 files changed
+158 -3

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: j7s-gerrit-fail
spec:
workspaces:
- name: ssh-directory
params:
- name: commit
- name: build-id
steps:
- image: 192.168.1.128:8443/gitssh:latest
script: |
#!/usr/bin/env bash
set -ex
cp -r $(workspaces.ssh-directory.path) ~/.ssh
chmod 700 ~/.ssh
chmod -R 400 ~/.ssh/*
ssh -p 29418 tekton@gerrit.internal.jpace121.net gerrit review \
-m '"Build failed. ID: $(params.build-id)"' \
--verified -1 \
$(params.commit)
+22
View File
@@ -0,0 +1,22 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: j7s-gerrit-success
spec:
workspaces:
- name: ssh-directory
params:
- name: commit
- name: build-id
steps:
- image: 192.168.1.128:8443/gitssh:latest
script: |
#!/usr/bin/env bash
set -ex
cp -r $(workspaces.ssh-directory.path) ~/.ssh
chmod 700 ~/.ssh
chmod -R 400 ~/.ssh/*
ssh -p 29418 tekton@gerrit.internal.jpace121.net gerrit review \
-m '"Build success. ID: $(params.build-id)"' \
--verified +1 \
$(params.commit)
+4 -1
View File
@@ -8,6 +8,7 @@ spec:
- name: ssh-directory
params:
- name: url
- name: commit
steps:
- image: 192.168.1.128:8443/gitssh:latest
script: |
@@ -15,4 +16,6 @@ spec:
cp -r $(workspaces.ssh-directory.path) ~/.ssh
chmod 700 ~/.ssh
chmod -R 400 ~/.ssh/*
git clone $(params.url) $(workspaces.output.path)
git clone $(params.url) $(workspaces.output.path)
cd $(workspaces.output.path)
git checkout -f $(params.commit)