Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .harness/input1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
inputSet:
name: input1
identifier: input1
orgIdentifier: default
projectIdentifier: shauryaTest
pipeline:
identifier: remote
properties:
ci:
codebase:
build:
type: branch
spec:
branch: main-patch
stages:
- stage:
identifier: build
type: CI
spec:
execution:
steps:
- step:
identifier: Run_1
type: Run
spec:
image: alpine
40 changes: 40 additions & 0 deletions .harness/remote.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
pipeline:
name: remote
identifier: remote
projectIdentifier: shauryaTest
orgIdentifier: default
tags: {}
properties:
ci:
codebase:
connectorRef: accountsk
repoName: goHelloWorldServer
build: <+input>
stages:
- stage:
name: build
identifier: build
description: ""
type: CI
spec:
cloneCodebase: true
infrastructure:
type: KubernetesDirect
spec:
connectorRef: k8stest
namespace: harness-delegate-ng
automountServiceAccountToken: true
nodeSelector: {}
os: Linux
execution:
steps:
- step:
type: Run
name: Run_1
identifier: Run_1
spec:
connectorRef: test
image: <+input>
shell: Sh
command: echo node --version
description: echo
154 changes: 154 additions & 0 deletions .harness/shauryatestingfailing_Clone_Clone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
---
pipeline:
projectIdentifier: "shauryaTest"
orgIdentifier: "default"
tags: {}
stages:
- stage:
name: "build test and push "
identifier: "build_test_and_push"
type: "CI"
spec:
cloneCodebase: false
infrastructure:
type: "KubernetesDirect"
spec:
connectorRef: "k8stest"
namespace: "harness-delegate-ng"
automountServiceAccountToken: true
nodeSelector: {}
os: "Linux"
execution:
steps:
- step:
type: "Run"
name: "run unit tests"
identifier: "run_unit_tests"
spec:
connectorRef: "new_docker_test"
image: "golang:1.15"
shell: "Sh"
command: "go get gotest.tools/gotestsum\ngotestsum --format=standard-verbose\
\ --junitfile unit-tests.xml\nCGO_ENABLED=0 GOOS=linux GOARCH=amd64\
\ go build -a -tags netgo"
reports:
type: "JUnit"
spec:
paths:
- "*.xml"
- step:
type: "Run"
name: "run unit tests 2"
identifier: "run_unit_tests_2"
spec:
connectorRef: "new_docker_test"
image: "golang:1.15"
shell: "Sh"
command: "go get gotest.tools/gotestsum\ngotestsum --format=standard-verbose\
\ --junitfile unit-tests.xml\nCGO_ENABLED=0 GOOS=linux GOARCH=amd64\
\ go build -a -tags netgo"
reports:
type: "JUnit"
spec:
paths:
- "*.xml"
when:
stageStatus: "All"
failureStrategies: []
- parallel:
- step:
name: "acr"
identifier: "acr"
template:
templateRef: "acr"
versionLabel: "1"
- step:
type: "BuildAndPushACR"
name: "acr 2"
identifier: "acr_2"
spec:
connectorRef: "account.testAzureConnector0Ma5pDuhvg"
repository: "rep2"
subscriptionId: "123"
tags:
- "tag 2"
- step:
type: "BuildAndPushACR"
name: "acrfrominput"
identifier: "acrfrominput"
spec:
connectorRef: "<+input>"
repository: "<+input>"
subscriptionId: "<+input>"
tags:
- "acrinput"
serviceDependencies:
- identifier: "sql"
name: "sql"
type: "Service"
description: "sql"
spec:
connectorRef: "test"
image: "mysql:5"
variables: []
- stage:
name: "build test and push 2 "
identifier: "build_test_and_push_2"
description: ""
type: "CI"
spec:
cloneCodebase: true
infrastructure:
type: "KubernetesDirect"
spec:
connectorRef: "k8stest"
namespace: "harness-delegate-ng"
nodeSelector: {}
os: "Linux"
execution:
steps:
- step:
type: "Run"
name: "run unit tests"
identifier: "run_unit_tests"
spec:
connectorRef: "new_docker_test"
image: "golang:1.15"
shell: "Sh"
command: "go get gotest.tools/gotestsum\ngotestsum --format=standard-verbose\
\ --junitfile unit-tests.xml\nCGO_ENABLED=0 GOOS=linux GOARCH=amd64\
\ go build -a -tags netgo"
reports:
type: "JUnit"
spec:
paths:
- "*.xml"
- step:
type: "Run"
name: "run unit tests 2"
identifier: "run_unit_tests_2"
spec:
connectorRef: "new_docker_test"
image: "golang:1.15"
shell: "Sh"
command: "go get gotest.tools/gotestsum\ngotestsum --format=standard-verbose\
\ --junitfile unit-tests.xml\nCGO_ENABLED=0 GOOS=linux GOARCH=amd64\
\ go build -a -tags netgo"
reports:
type: "JUnit"
spec:
paths:
- "*.xml"
when:
stageStatus: "All"
failureStrategies: []
when:
pipelineStatus: "All"
storeType: "INLINE"
properties:
ci:
codebase:
connectorRef: "githubtest"
build: "<+input>"
identifier: "shauryatestingfailing_Clone_Clone"
name: "shaurya-testing-failing - Clone - Clone"