Skip to content

Commit 6148574

Browse files
authored
Update Jenkinsfile
1 parent 0f30854 commit 6148574

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

Jenkinsfile

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
pipeline {
1+
pipeliine {
22
agent any
3-
4-
stages {
5-
stage('Build') {
6-
steps {
7-
script {
8-
// Pulling the source code from the GitHub repository using curl
9-
sh 'curl -L https://github.com/Harrydmc/simple-node-js-react-npm-app/archive/refs/heads/main.tar.gz | tar zx'
10-
// Change directory to the downloaded repository
11-
dir('simple-node-js-react-npm-app-main') {
12-
// Install dependencies
13-
sh 'npm install'
14-
}
15-
}
3+
Stage{
4+
5+
stage('Build'){
6+
step{
7+
sh 'npm install'
168
}
179
}
1810
}

0 commit comments

Comments
 (0)