Skip to content

Commit 4714dd2

Browse files
authored
Update Jenkinsfile
1 parent ac045a0 commit 4714dd2

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Diff for: Jenkinsfile

+14-13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ git_deploy_user = "iguazio-prod-git-user"
88
git_deploy_user_token = "iguazio-prod-git-user-token"
99
git_deploy_user_private_key = "iguazio-prod-git-user-private-key"
1010

11+
1112
def build_v3io_tsdb(TAG_VERSION) {
1213
withCredentials([
1314
string(credentialsId: git_deploy_user_token, variable: 'GIT_TOKEN')
@@ -135,7 +136,6 @@ def build_nuclio(V3IO_TSDB_VERSION, internal_status="stable") {
135136
common.shellc("git commit -m 'Updated TSDB to ${V3IO_TSDB_VERSION}'")
136137
} catch (err) {
137138
echo "Can not commit"
138-
echo err
139139
}
140140
try {
141141
if ( "${internal_status}" == "unstable" ) {
@@ -209,7 +209,6 @@ def build_prometheus(V3IO_TSDB_VERSION, FRAMES_VERSION, internal_status="stable"
209209
common.shellc("git commit -m 'Updated TSDB to ${V3IO_TSDB_VERSION}'")
210210
} catch (err) {
211211
echo "Can not commit"
212-
echo err
213212
}
214213
try {
215214
if ( "${internal_status}" == "unstable" ) {
@@ -281,7 +280,6 @@ def build_frames(V3IO_TSDB_VERSION, internal_status="stable") {
281280
common.shellc("git commit -m 'Updated TSDB to ${V3IO_TSDB_VERSION}'")
282281
} catch (err) {
283282
echo "Can not commit"
284-
echo err
285283
}
286284
try {
287285
if ( "${internal_status}" == "unstable" ) {
@@ -391,7 +389,7 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
391389
def FRAMES_NEXT_VERSION
392390
def next_versions = ['prometheus':null, 'tsdb-nuclio':null, 'frames':null]
393391

394-
pipelinex = library(identifier: 'pipelinex@_exc', retriever: modernSCM(
392+
pipelinex = library(identifier: 'pipelinex@_fix_py', retriever: modernSCM(
395393
[$class: 'GitSCMSource',
396394
credentialsId: git_deploy_user_private_key,
397395
remote: "[email protected]:iguazio/pipelinex.git"])).com.iguazio.pipelinex
@@ -445,9 +443,10 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
445443

446444
stage('create tsdb-nuclio prerelease') {
447445
container('jnlp') {
448-
echo "Triggered tsdb-nuclio development will be builded with last tsdb stable version"
449-
github.delete_release("tsdb-nuclio", git_project_user, "unstable", GIT_TOKEN)
450-
github.create_prerelease("tsdb-nuclio", git_project_user, "unstable", GIT_TOKEN, "development")
446+
// development has been triggered when committed to it in github-webhook nuclio function
447+
// echo "Triggered tsdb-nuclio development will be builded with last tsdb stable version"
448+
// github.delete_release("tsdb-nuclio", git_project_user, "unstable", GIT_TOKEN)
449+
// github.create_prerelease("tsdb-nuclio", git_project_user, "unstable", GIT_TOKEN, "development")
451450

452451
echo "Trigger tsdb-nuclio ${NEXT_VERSION} with tsdb ${MAIN_TAG_VERSION}"
453452
github.create_prerelease("tsdb-nuclio", git_project_user, NEXT_VERSION, GIT_TOKEN)
@@ -486,9 +485,10 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
486485

487486
stage('create frames prerelease') {
488487
container('jnlp') {
489-
echo "Triggered frames development will be builded with last tsdb stable version"
490-
github.delete_release("frames", git_project_user, "unstable", GIT_TOKEN)
491-
github.create_prerelease("frames", git_project_user, "unstable", GIT_TOKEN, "development")
488+
// development has been triggered when committed to it in github-webhook nuclio function
489+
// echo "Triggered frames development will be builded with last tsdb stable version"
490+
// github.delete_release("frames", git_project_user, "unstable", GIT_TOKEN)
491+
// github.create_prerelease("frames", git_project_user, "unstable", GIT_TOKEN, "development")
492492

493493
echo "Trigger frames ${NEXT_VERSION} with tsdb ${MAIN_TAG_VERSION}"
494494
github.create_prerelease("frames", git_project_user, NEXT_VERSION, GIT_TOKEN)
@@ -553,9 +553,10 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
553553

554554
stage('create prometheus prerelease') {
555555
container('jnlp') {
556-
echo "Triggered prometheus development will be builded with last tsdb stable version"
557-
github.delete_release("prometheus", git_project_user, "unstable", GIT_TOKEN)
558-
github.create_prerelease("prometheus", git_project_user, "unstable", GIT_TOKEN, "development")
556+
// development has been triggered when committed to it in github-webhook nuclio function
557+
// echo "Triggered prometheus development will be builded with last tsdb stable version"
558+
// github.delete_release("prometheus", git_project_user, "unstable", GIT_TOKEN)
559+
// github.create_prerelease("prometheus", git_project_user, "unstable", GIT_TOKEN, "development")
559560

560561
echo "Trigger prometheus ${NEXT_VERSION} with tsdb ${MAIN_TAG_VERSION}"
561562
github.create_prerelease("prometheus", git_project_user, NEXT_VERSION, GIT_TOKEN)

0 commit comments

Comments
 (0)