Track otherwise untracked changes.
This commit is contained in:
1 parent
52dcab2621
commit
a82cfc1323
6 files changed
+158
-3
No files matched your search
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
Reference in new issue
Block a user