Skip to content

Commit dcb9221

Browse files
authored
Update ci-pipeline.yaml
1 parent 7248f33 commit dcb9221

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

.harness/ci-pipeline.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,19 @@ pipeline:
2424

2525
infrastructure:
2626
type: Cloud
27-
spec: {}
27+
spec:
28+
connectorRef: account.harnessImage # 👈 FIX
2829

2930
execution:
3031
steps:
31-
3232
- step:
3333
type: Run
3434
name: Verify Repo
3535
identifier: verify_repo
3636
spec:
3737
shell: Sh
3838
command: |
39-
echo "Working directory:"
4039
pwd
41-
echo "Listing files:"
4240
ls -lrt
4341
4442
- step:
@@ -49,7 +47,6 @@ pipeline:
4947
image: maven:3.9.6-eclipse-temurin-17
5048
shell: Sh
5149
command: |
52-
echo "Starting Maven Build..."
5350
mvn clean package -DskipTests
5451
5552
- step:
@@ -59,18 +56,5 @@ pipeline:
5956
spec:
6057
shell: Sh
6158
command: |
62-
echo "Checking target directory..."
6359
ls -lrt target/ || echo "No target folder"
64-
echo "WAR files:"
6560
ls target/*.war || echo "No WAR found"
66-
67-
- step:
68-
type: Run
69-
name: Artifact Info
70-
identifier: artifact_info
71-
spec:
72-
shell: Sh
73-
command: |
74-
echo "Build completed successfully"
75-
echo "Build Number: <+pipeline.sequenceId>"
76-
echo "Branch: <+codebase.branch>"

0 commit comments

Comments
 (0)