-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
53 lines (47 loc) · 1.13 KB
/
Jenkinsfile
File metadata and controls
53 lines (47 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /usr/bin/env groovy
library identifier: 'jenkins-shared-lib-node-js-apps@main', retriever: modernSCM([$class: 'GitSCMSource',
remote: 'https://github.com/Nella1a/jenkins-shared-lib-node-js-apps.git',
credentialsId: 'github-credentials'
])
pipeline {
agent any
stages {
stage ('Run Tests') {
steps {
script {
echo 'run tests'
sh 'npm install'
sh 'npm run test'
}
}
}
stage('Increment Version') {
steps {
script {
echo "increment version"
}
}
}
stage('Build Docker Image') {
steps {
script {
echo 'Building the docker image'
}
}
}
stage ("Commit Version Update") {
steps {
script {
echo "Commit changes to github"
}
}
}
stage ("Deploy") {
steps {
script {
echo "Deploying ... "
}
}
}
}
}