-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.release
34 lines (32 loc) · 1.27 KB
/
Jenkinsfile.release
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
pipeline {
agent any
stages {
stage('Checkout') {
steps {
script {
checkout([
$class: 'GitSCM',
branches: [[name: 'main']],
userRemoteConfigs: [[credentialsId: 'github_token', url: 'https://github.com/cyse7125-su24-team04/helm-webapp-cve-processor.git']]
])
}
}
}
stage('Release Helm Chart') {
steps {
script {
withCredentials([usernamePassword(credentialsId: 'github_token', usernameVariable: 'GH_USERNAME', passwordVariable: 'GH_TOKEN')]) {
sh 'npm install @semantic-release/commit-analyzer'
sh 'npm install @semantic-release/release-notes-generator'
sh 'npm install @semantic-release/changelog'
sh 'npm install @semantic-release/npm'
sh 'npm install @semantic-release/git'
sh 'npm install @semantic-release/github'
sh 'npm install semantic-release-helm'
sh 'npx semantic-release'
}
}
}
}
}
}