Skip to content

Commit

Permalink
Update thod pipeline to remove unnecesarry task
Browse files Browse the repository at this point in the history
  • Loading branch information
kornys committed Aug 22, 2023
1 parent 7cea46d commit 898fe0f
Showing 1 changed file with 62 additions and 73 deletions.
Original file line number Diff line number Diff line change
@@ -1,74 +1,4 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: thor-test-suite-task
labels:
project: tealc
annotations:
argocd.argoproj.io/hook: PreSync
spec:
workspaces:
- name: task-ws
steps:
- name: execute-tests
image: quay.io/mk-ci-cd/mas-ci-tools:latest
env:
- name: WORKER_01_USERNAME
valueFrom:
secretKeyRef:
name: worker-01-tekton
key: username
- name: WORKER_01_PASSWORD
valueFrom:
secretKeyRef:
name: worker-01-tekton
key: password
- name: WORKER_01_URL
valueFrom:
secretKeyRef:
name: worker-01-tekton
key: server
- name: WORKER_02_USERNAME
valueFrom:
secretKeyRef:
name: worker-02-tekton
key: username
- name: WORKER_02_PASSWORD
valueFrom:
secretKeyRef:
name: worker-02-tekton
key: password
- name: WORKER_02_URL
valueFrom:
secretKeyRef:
name: worker-02-tekton
key: server
- name: WORKER_03_USERNAME
valueFrom:
secretKeyRef:
name: worker-03-tekton
key: username
- name: WORKER_03_PASSWORD
valueFrom:
secretKeyRef:
name: worker-03-tekton
key: password
- name: WORKER_03_URL
valueFrom:
secretKeyRef:
name: worker-03-tekton
key: server
script: |
mkdir -p /opt/thor
cd /opt/thor

git clone https://github.com/ExcelentProject/thor.git

cd thor
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
mvn test --no-transfer-progress
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: thor-test-suite-pipeline
Expand All @@ -81,11 +11,70 @@ spec:
- name: pipeline-ws
tasks:
- name: thor
taskRef:
name: thor-test-suite-task
workspaces:
- name: task-ws
- name: pipeline-ws
workspace: pipeline-ws
taskSpec:
workspaces:
- name: pipeline-ws
steps:
- name: execute-tests
image: quay.io/mk-ci-cd/mas-ci-tools:latest
env:
- name: WORKER_01_USERNAME
valueFrom:
secretKeyRef:
name: worker-01-tekton
key: username
- name: WORKER_01_PASSWORD
valueFrom:
secretKeyRef:
name: worker-01-tekton
key: password
- name: WORKER_01_URL
valueFrom:
secretKeyRef:
name: worker-01-tekton
key: server
- name: WORKER_02_USERNAME
valueFrom:
secretKeyRef:
name: worker-02-tekton
key: username
- name: WORKER_02_PASSWORD
valueFrom:
secretKeyRef:
name: worker-02-tekton
key: password
- name: WORKER_02_URL
valueFrom:
secretKeyRef:
name: worker-02-tekton
key: server
- name: WORKER_03_USERNAME
valueFrom:
secretKeyRef:
name: worker-03-tekton
key: username
- name: WORKER_03_PASSWORD
valueFrom:
secretKeyRef:
name: worker-03-tekton
key: password
- name: WORKER_03_URL
valueFrom:
secretKeyRef:
name: worker-03-tekton
key: server
script: |
mkdir -p /opt/thor
cd /opt/thor

git clone https://github.com/ExcelentProject/thor.git

cd thor
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
mvn test --no-transfer-progress
finally:
- name: notify-slack
when:
Expand Down

0 comments on commit 898fe0f

Please sign in to comment.