forked from instructure/instructure-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.release
56 lines (54 loc) · 1.6 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pipeline {
agent { label 'docker' }
environment {
NPM_EMAIL="${NPM_EMAIL}"
GIT_EMAIL="${GIT_EMAIL}"
GIT_USERNAME="${GIT_USERNAME}"
GIT_REMOTE_URL="${GIT_REMOTE_URL}"
GIT_REMOTE_NAME="${GIT_REMOTE_NAME}"
UV_THREADPOOL_SIZE=128
}
stages {
stage('Release') {
steps {
withCredentials([
sshUserPrivateKey(
credentialsId: '44aa91d6-ab24-498a-b2b4-911bcb17cc35',
keyFileVariable: 'SSH_KEY_PATH',
usernameVariable: 'SSH_USERNAME'
),
string(credentialsId: 'JIRA_CONSUMER_KEY', variable: 'JIRA_CONSUMER_KEY'),
sshUserPrivateKey(
credentialsId: 'JIRA_PRIVATE_KEY',
keyFileVariable: 'JIRA_PEM_PATH',
usernameVariable: 'JIRA_USERNAME'
),
usernamePassword(
credentialsId: 'JIRA_ACCESS_TOKEN',
usernameVariable: 'JIRA_TOKEN',
passwordVariable: 'JIRA_SECRET'
),
usernamePassword(
credentialsId: 'npm-api-credentials',
usernameVariable: 'NPM_USERNAME',
passwordVariable: 'NPM_TOKEN'
),
usernamePassword(
credentialsId: '2ad9702c-4312-4a72-a0f7-f3b5686db9b5',
usernameVariable: 'SLACK_USERNAME',
passwordVariable: 'SLACK_WEBHOOK'
)
]) {
sh './docker/release'
}
}
}
}
post {
failure {
script {
slackSend channel: "#uidev_rollcall", message: "<${env.BUILD_URL}|${env.JOB_NAME} ${env.BUILD_NUMBER} Failed>."
}
}
}
}