Skip to content

Commit 6d10ae3

Browse files
Update Jenkinsfile
1 parent be2f75d commit 6d10ae3

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Jenkinsfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
pipeline {
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
}

0 commit comments

Comments
 (0)