-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile.LINT
64 lines (63 loc) · 1.77 KB
/
Jenkinsfile.LINT
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
54
55
56
57
58
59
60
61
62
63
pipeline {
environment {
pullId = "${params.pullId}"
repositoryName = "${params.repo}"
branchName = "${params.branch_name}"
HOME = '.'
}
agent {
docker {
image 'node:6-alpine'
args '-p 3000:3000 -p 5000:5000'
}
}
stages {
stage('Initialization') {
steps {
echo "branch name ${branchName}"
echo "repositoryName name ${repositoryName}"
echo "pullId name ${pullId}"
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('TypeScript Build') {
steps{
echo "ts build done"
}
}
stage('Lint Checks') {
parallel {
stage('Prettier Check') {
steps{
echo "prettier checks passed"
}
}
stage('Lint Check') {
steps{
echo "lint check passed"
}
}
stage('SonarQube')
{
steps{
echo "sonar test passed"
}
}
}
}
}
post{
success {
echo "all checks passed successfully"
}
failure {
echo "failes lint job..."
}
}
}