File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1+
12pipeline {
23 agent any
34
@@ -12,16 +13,16 @@ pipeline {
1213 steps {
1314 sh '''
1415 echo "Checking Python version..."
15- python3 --version || { echo "Python not found"; exit 1; }
16-
16+ python3 --version
17+
1718 echo "Checking Node version..."
18- node -v || { echo "Node.js not found"; exit 1; }
19+ node -v || ( echo "Node.js not found" && exit 1)
1920
20- echo "Checking npm..."
21- npm -v || { echo "npm not found"; exit 1; }
21+ echo "Checking npm version ..."
22+ npm -v || ( echo "npm not found" && exit 1)
2223
23- echo "Checking Serverless CLI ..."
24- serverless -v || { echo "Serverless not found"; exit 1; }
24+ echo "Checking Serverless version ..."
25+ serverless --version || ( echo "Serverless CLI not found" && exit 1)
2526 '''
2627 }
2728 }
@@ -47,10 +48,10 @@ pipeline {
4748
4849 post {
4950 failure {
50- echo " Pipeline failed. Check logs above 👆"
51+ echo ' Pipeline failed. Check logs above 👆'
5152 }
5253 success {
53- echo " ✅ Deployed to AWS Lambda successfully! "
54+ echo ' ✅ Deployment successful! '
5455 }
5556 }
5657}
You can’t perform that action at this time.
0 commit comments