Skip to content

Commit 4e3d259

Browse files
committed
refactor(jenkins): remove Docker agent in favor of agent any
Replace Docker-based agent configuration with `agent any` to align with the quickstart-tutorials approach where Jenkins agents are pre-configured with necessary tools via docker-compose infrastructure. This change simplifies the Jenkinsfile and delegates infrastructure concerns (like port mapping) to the deployment environment.
1 parent 6ef4c97 commit 4e3d259

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

jenkins/Jenkinsfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
pipeline {
2-
agent {
3-
docker {
4-
image 'node:lts-buster-slim'
5-
args '-p 3000:3000'
6-
}
7-
}
2+
agent any
83
environment {
94
CI = 'true'
105
}

jenkins/scripts/deliver.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,3 @@ set +x
2525

2626
echo 'Now...'
2727
echo 'Visit http://localhost:3000 to see your Node.js/React application in action.'
28-
echo '(This is why you specified the "args ''-p 3000:3000''" parameter when you'
29-
echo 'created your initial Pipeline as a Jenkinsfile.)'

0 commit comments

Comments
 (0)