-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
46 lines (32 loc) · 1.03 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
properties([pipelineTriggers([githubPush()])])
pipeline {
agent any
environment {
GITHUB_TOKEN_SECRET = credentials('gh-token-secret')
GITHUB_TOKEN = "$GITHUB_TOKEN_SECRET_PSW"
}
stages {
stage('Checkout Repo') {
steps {
checkout([
$class: 'GitSCM',
branches: [[name: 'main']],
userRemoteConfigs: [[
url: 'https://github.com/csye7125-fall2022-group01/helm-chart.git',
credentialsId: 'gh-token',
]]
])
}
}
stage('release') {
steps {
sh "npm install @semantic-release/git -D"
sh "npm install semantic-release-github -D"
sh "npm install @semantic-release/exec -D"
sh "npm install semantic-release-yaml -D"
sh "npm install semantic-release/changelog -D"
sh "npx semantic-release --debug"
}
}
}
}