Skip to content

Commit a003e55

Browse files
authored
Merge pull request #6 from norkator/Feature/jenkins-pipeline-implementation
Feature/jenkins pipeline implementation
2 parents e62c09a + 0d06eb8 commit a003e55

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Jenkinsfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
pipeline {
2+
agent any
3+
tools {nodejs "node"}
4+
stages {
5+
stage('Install dependencies') {
6+
steps {
7+
bat 'npm install'
8+
}
9+
}
10+
stage('Run tests') {
11+
steps {
12+
bat 'npm run tests'
13+
}
14+
}
15+
stage('Build project') {
16+
steps {
17+
bat 'npm run build'
18+
}
19+
}
20+
}
21+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Simplified ts api, app template",
55
"main": "./build/index.js",
66
"scripts": {
7+
"tests": "echo 'tests not implemented'",
78
"build": "tsc --skipLibCheck",
89
"start": "tsc --skipLibCheck && node ./build/app.js",
910
"ts:watch": "tsc -w"

0 commit comments

Comments
 (0)