-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
50 lines (50 loc) · 1.47 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
47
48
49
50
pipeline {
agent{
docker {
image 'fabio975/node-22-pnpm'
}
}
environment {
DATABASE_URL = credentials('DATABASE_URL')
NEXTAUTH_SECRET = credentials('NEXTAUTH_SECRET')
NEXTAUTH_URL = credentials('NEXTAUTH_URL')
NEXTAUTH_JWT_SECRET = credentials('NEXTAUTH_JWT_SECRET')
CLIENT_SECRET = credentials('CLIENT_SECRET')
WAZUH_RSYSLOG = credentials('WAZUH_RSYSLOG')
SYSLOG_PORT = credentials('SYSLOG_PORT')
REMOTELOGGER = credentials('REMOTELOGGER')
NEXT_PUBLIC_AUTH_URL = credentials('NEXT_PUBLIC_AUTH_URL')
NEXT_PUBLIC_KEYCLOAK_FRONTEND_URL = credentials('NEXT_PUBLIC_KEYCLOAK_FRONTEND_URL')
NEXT_PUBLIC_KEYCLOAK_REALM = credentials('NEXT_PUBLIC_KEYCLOAK_REALM')
NEXT_PUBLIC_KEYCLOAK_CLIENT_ID = credentials('NEXT_PUBLIC_KEYCLOAK_CLIENT_ID')
}
stages {
stage('Install') {
steps{
sh 'pnpm install'
}
}
stage('Build') {
steps {
sh 'pnpm build'
}
}
stage('Release'){
steps {
sh '''
pnpm exec semantic-release
'''
}
}
stage('Package') {
steps {
echo 'Package....'
}
}
stage('Deploy') {
steps {
echo 'Deploy....'
}
}
}
}