-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile.TEST
50 lines (50 loc) · 1.22 KB
/
Jenkinsfile.TEST
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
pipeline {
environment {
pullId = "${params.pullId}"
repositoryName = "${params.repo}"
branchName = "${params.branch_name}"
}
agent
{
node {
label 'master'
customWorkspace "${env.JobPath}"
}
}
stages {
stage('Initialization') {
steps {
echo "Cloning branch"
git branch: "${branchName}", credentialsId: '1', url: "https://github.com/nagenderRawat/${repositoryName}"
script {
sh "node --version"
sh "npm --version"
sh "npm install"
}
}
}
stage('Tests') {
steps {
echo "test ran successfully"
}
}
stage('Code Coverage') {
steps {
echo "code coverage done successfully"
}
post {
success {
echo "post code coverage success"
}
}
}
}
post{
success {
echo "test passed successfully"
}
failure {
echo "test failed"
}
}
}