-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
46 lines (37 loc) · 1.04 KB
/
Jenkinsfile
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
pipeline {
agent {
docker {
image 'nikolaik/python-nodejs:python3.6-nodejs14-alpine'
}
}
environment {
DISCORD_TOKEN=credentials('DISCORD_TOKEN')
SECRETAUTH=credentials('SECRETAUTH')
DISCORD_CLIENT_ID=credentials('DISCORD_CLIENT_ID')
DISCORD_CLIENT_SECRET=credentials('DISCORD_CLIENT_SECRET')
MONGODB_URL=credentials('MONGODB_URL')
JENKINS=true
}
stages {
stage("Build") {
steps {
echo 'Checking apps.'
dir("./backend") {
sh 'npm --version'
sh 'node --version'
sh 'npm install'
echo 'Installing Typescript'
sh 'npm i typescript -g'
echo 'Compiling'
sh 'tsc'
}
}
}
stage("Checking code") {
steps {
echo 'Checking code..'
echo 'hello'
}
}
}
}