-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathJenkinsfile
47 lines (43 loc) · 1.71 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
label = "${UUID.randomUUID().toString()}"
BUILD_FOLDER = "/go"
attempts=15
git_project = "v3io-tsdb"
git_project_user = "v3io"
git_project_upstream_user = "v3io"
git_deploy_user = "iguazio-prod-git-user"
git_deploy_user_token = "iguazio-prod-git-user-token"
git_deploy_user_private_key = "iguazio-prod-git-user-private-key"
podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang") {
def MAIN_TAG_VERSION
def FRAMES_NEXT_VERSION
def next_versions = ['prometheus':null, 'tsdb-nuclio':null, 'frames':null]
pipelinex = library(identifier: 'pipelinex@development', retriever: modernSCM(
[$class: 'GitSCMSource',
credentialsId: git_deploy_user_private_key,
remote: "[email protected]:iguazio/pipelinex.git"])).com.iguazio.pipelinex
common.notify_slack {
node("${git_project}-${label}") {
withCredentials([
string(credentialsId: git_deploy_user_token, variable: 'GIT_TOKEN')
]) {
stage('get tag data') {
container('jnlp') {
MAIN_TAG_VERSION = github.get_tag_version(TAG_NAME)
echo "$MAIN_TAG_VERSION"
}
}
}
}
node("${git_project}-${label}") {
withCredentials([
string(credentialsId: git_deploy_user_token, variable: 'GIT_TOKEN')
]) {
stage('update release status') {
container('jnlp') {
github.update_release_status(git_project, git_project_user, "${MAIN_TAG_VERSION}", GIT_TOKEN)
}
}
}
}
}
}