Skip to content

Commit b4fbfb4

Browse files
dinalgkirok
andauthored
V0.9.x disable trigger (#520)
* do not trigger v0.9.0 * github.BUILD_FOLDER * github.BUILD_FOLDER * fix path * fix path Co-authored-by: Gall Zvyagin <[email protected]>
1 parent 3448205 commit b4fbfb4

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

Jenkinsfile

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
label = "${UUID.randomUUID().toString()}"
2-
BUILD_FOLDER = "/go"
2+
BUILD_FOLDER = "/home/jenkins/go"
33
attempts=15
44
git_project = "v3io-tsdb"
55
git_project_user = "v3io"
@@ -30,7 +30,8 @@ def build_v3io_tsdb(TAG_VERSION) {
3030
GO111MODULE=on GOOS=linux GOARCH=amd64 TRAVIS_TAG=${TAG_VERSION} make bin
3131
GO111MODULE=on GOOS=darwin GOARCH=amd64 TRAVIS_TAG=${TAG_VERSION} make bin
3232
GO111MODULE=on GOOS=windows GOARCH=amd64 TRAVIS_TAG=${TAG_VERSION} make bin
33-
ls -la /go/bin
33+
mv /go/bin/* ${BUILD_FOLDER}/
34+
ls -la ${BUILD_FOLDER}
3435
"""
3536
}
3637
}
@@ -40,13 +41,13 @@ def build_v3io_tsdb(TAG_VERSION) {
4041
container('jnlp') {
4142
RELEASE_ID = github.get_release_id(git_project, git_project_user, "${TAG_VERSION}", GIT_TOKEN)
4243

43-
github.upload_asset(git_project, git_project_user, "tsdbctl-${TAG_VERSION}-linux-amd64", RELEASE_ID, GIT_TOKEN)
44-
github.upload_asset(git_project, git_project_user, "tsdbctl-${TAG_VERSION}-darwin-amd64", RELEASE_ID, GIT_TOKEN)
45-
github.upload_asset(git_project, git_project_user, "tsdbctl-${TAG_VERSION}-windows-amd64", RELEASE_ID, GIT_TOKEN)
44+
github.upload_asset(git_project, git_project_user, "tsdbctl-${TAG_VERSION}-linux-amd64", RELEASE_ID, GIT_TOKEN, BUILD_FOLDER)
45+
github.upload_asset(git_project, git_project_user, "tsdbctl-${TAG_VERSION}-darwin-amd64", RELEASE_ID, GIT_TOKEN, BUILD_FOLDER)
46+
github.upload_asset(git_project, git_project_user, "tsdbctl-${TAG_VERSION}-windows-amd64", RELEASE_ID, GIT_TOKEN, BUILD_FOLDER)
4647
withCredentials([
4748
string(credentialsId: pipelinex.PackagesRepo.ARTIFACTORY_IGUAZIO[2], variable: 'PACKAGES_ARTIFACTORY_PASSWORD')
4849
]) {
49-
common.upload_file_to_artifactory(pipelinex.PackagesRepo.ARTIFACTORY_IGUAZIO[0], pipelinex.PackagesRepo.ARTIFACTORY_IGUAZIO[1], PACKAGES_ARTIFACTORY_PASSWORD, "iguazio-devops/k8s", "tsdbctl-${TAG_VERSION}-linux-amd64")
50+
common.upload_file_to_artifactory(pipelinex.PackagesRepo.ARTIFACTORY_IGUAZIO[0], pipelinex.PackagesRepo.ARTIFACTORY_IGUAZIO[1], PACKAGES_ARTIFACTORY_PASSWORD, "iguazio-devops/k8s", "tsdbctl-${TAG_VERSION}-linux-amd64", BUILD_FOLDER)
5051
}
5152
}
5253
}
@@ -304,7 +305,7 @@ def wait_for_release(V3IO_TSDB_VERSION, next_versions, tasks_list) {
304305
withCredentials([
305306
string(credentialsId: git_deploy_user_token, variable: 'GIT_TOKEN')
306307
]) {
307-
if (V3IO_TSDB_VERSION != "unstable") {
308+
if (V3IO_TSDB_VERSION != "unstable" && ! V3IO_TSDB_VERSION.startsWith('v0.9.')) {
308309
stage('waiting for prereleases moved to releases') {
309310
container('jnlp') {
310311
i = 0
@@ -379,7 +380,7 @@ def wait_for_release(V3IO_TSDB_VERSION, next_versions, tasks_list) {
379380
}
380381
} else {
381382
stage('info') {
382-
echo("Unstable tsdb doesn't trigger tsdb-nuclio and prometheus")
383+
echo("Unstable and v0.9.* tsdb doesn't trigger tsdb-nuclio and prometheus")
383384
}
384385
}
385386
}
@@ -429,7 +430,7 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
429430
]) {
430431
def NEXT_VERSION
431432

432-
if (MAIN_TAG_VERSION != "unstable") {
433+
if (MAIN_TAG_VERSION != "unstable" && ! MAIN_TAG_VERSION.startsWith('v0.9.')) {
433434
stage('get previous release version') {
434435
container('jnlp') {
435436
CURRENT_VERSION = github.get_short_tag_version("tsdb-nuclio", git_project_user, GIT_TOKEN)
@@ -455,7 +456,7 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
455456
}
456457
} else {
457458
stage('info') {
458-
echo("Unstable tsdb doesn't trigger tsdb-nuclio")
459+
echo("Unstable and v0.9.* tsdb doesn't trigger tsdb-nuclio")
459460
}
460461
}
461462
}
@@ -470,7 +471,7 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
470471
]) {
471472
def NEXT_VERSION
472473

473-
if (MAIN_TAG_VERSION != "unstable") {
474+
if (MAIN_TAG_VERSION != "unstable" && ! MAIN_TAG_VERSION.startsWith('v0.9.')) {
474475
stage('get previous release version') {
475476
container('jnlp') {
476477
CURRENT_VERSION = github.get_short_tag_version("frames", git_project_user, GIT_TOKEN)
@@ -497,7 +498,7 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
497498
}
498499
} else {
499500
stage('info') {
500-
echo("Unstable tsdb doesn't trigger frames")
501+
echo("Unstable and v0.9.* tsdb doesn't trigger frames")
501502
}
502503
}
503504
}
@@ -522,7 +523,7 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
522523
def TAG_VERSION
523524
def NEXT_VERSION
524525

525-
if (MAIN_TAG_VERSION != "unstable") {
526+
if (MAIN_TAG_VERSION != "unstable" && ! MAIN_TAG_VERSION.startsWith('v0.9.')) {
526527
stage('get current version') {
527528
container('jnlp') {
528529
sh """
@@ -566,7 +567,7 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker-golang")
566567
}
567568
} else {
568569
stage('info') {
569-
echo("Unstable tsdb doesn't trigger prometheus")
570+
echo("Unstable and v0.9.* tsdb doesn't trigger prometheus")
570571
}
571572
}
572573
}

0 commit comments

Comments
 (0)