Skip to content

Commit

Permalink
Create pipeline Run TI
Browse files Browse the repository at this point in the history
  • Loading branch information
nofarblue committed Aug 24, 2022
1 parent 46e0e40 commit 1edfcdc
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .harness/Run_TI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
pipeline:
name: Run TI
identifier: Run_TI
projectIdentifier: CI_Demos_new_gitX
orgIdentifier: default
tags: {}
properties:
ci:
codebase:
connectorRef: account.Nofar_Github
repoName: jhttp
build: <+input>
sslVerify: false
prCloneStrategy: MergeCommit
stages:
- stage:
name: Build Test and Push
identifier: Test_Build_and_Push
description: hello world java demo
type: CI
spec:
cloneCodebase: true
execution:
steps:
- step:
type: RunTests
description: run unit tests
name: runTestsWithIntelligence
identifier: runTestsWithIntelligence
timeout: 30m
spec:
connectorRef: account.nofar_dockerhub
image: maven:3.5.2-jdk-8-alpine
language: Java
buildTool: Maven
args: test
packages: io.harness.
runOnlySelectedTests: true
postCommand: mvn package -DskipTests
reports:
type: JUnit
spec:
paths:
- "**/*.xml"
resources:
limits:
memory: 5000Mi
cpu: "1"
- step:
type: BuildAndPushDockerRegistry
name: Build and push image to DockerHub
identifier: Build_and_push_image_to_DockerHub
spec:
connectorRef: account.nofar_dockerhub
repo: bluebbb/javademo
tags:
- <+pipeline.sequenceId>
optimize: true
- step:
type: Run
name: echo
identifier: echo
spec:
connectorRef: account.nofar_dockerhub
image: <+input>
shell: Sh
command: echo "hello"
infrastructure:
type: KubernetesDirect
spec:
connectorRef: account.k8scluster
namespace: harness-delegate-pmdemo
automountServiceAccountToken: true
nodeSelector: {}
os: Linux
sharedPaths:
- /additiona/path
variables: []

0 comments on commit 1edfcdc

Please sign in to comment.