Skip to content

Commit 0f30854

Browse files
author
Harrydmc
committed
source url
1 parent f61177a commit 0f30854

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

Jenkinsfile

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
pipeliine {
1+
pipeline {
22
agent any
3-
Stage{
4-
stage('Build'){
5-
step{
6-
sh 'npm install'
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+
}
716
}
817
}
918
}
10-
}
19+
}

0 commit comments

Comments
 (0)