From 3052b511b9e54837cb771d76d5e76db8990d6a38 Mon Sep 17 00:00:00 2001 From: ShaikhSharukh12 <86522478+ShaikhSharukh12@users.noreply.github.com> Date: Sat, 25 Jun 2022 18:43:30 +0530 Subject: [PATCH 1/3] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 84530c2..f6d296f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ pipeline { stage('Install Dependencies') { steps { - sh 'npm install' + sh 'dnf install npm' } } From 41a479752bd5540411ea511f4e66c7900b01b215 Mon Sep 17 00:00:00 2001 From: ShaikhSharukh12 <86522478+ShaikhSharukh12@users.noreply.github.com> Date: Sat, 25 Jun 2022 18:46:49 +0530 Subject: [PATCH 2/3] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f6d296f..56cc575 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ pipeline { stage('Install Dependencies') { steps { - sh 'dnf install npm' + sh 'yum install nginx' } } From 272ba5fd74fd52b600f0f31157d36b8f404ea392 Mon Sep 17 00:00:00 2001 From: ShaikhSharukh12 <86522478+ShaikhSharukh12@users.noreply.github.com> Date: Sat, 25 Jun 2022 18:58:46 +0530 Subject: [PATCH 3/3] Update Jenkinsfile --- Jenkinsfile | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 56cc575..8b2c8ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,28 +1,11 @@ -pipeline { - - agent any - - stages { - - stage('Install Dependencies') { - steps { - sh 'yum install nginx' - } - } - - stage('Test') { - steps { - sh 'echo "testing application..."' +pipeline { + agent any + + stages { + stage('Hello') { + steps { + echo 'Hello World' + } } - } - - stage("Deploy application") { - steps { - sh 'echo "deploying application..."' - } - - } - - } - - } + } +}