Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 0 additions & 68 deletions .ci/pipeline/dr_weekly_jjb.yaml

This file was deleted.

91 changes: 0 additions & 91 deletions .ci/pipeline/dr_weekly_matrix.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion .ci/pipeline/release_jjb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,17 @@
name: "conf_file"
default: ".ci/pipeline/release_matrix_job.yaml"
description: "job config file. Do not change it"
- bool:
name: "do_dr_build"
default: false
description: "Build DR weekly"
pipeline-scm:
scm:
- git:
url: "{jjb_git}"
credentials-id: 'swx-jenkins_ssh_key'
branches: ['$sha1']
shallow-clone: true
shallow-clone: false
depth: 2
refspec: "+refs/pull/*:refs/remotes/origin/pr/*"
browser: githubweb
Expand Down
12 changes: 9 additions & 3 deletions .ci/pipeline/release_matrix_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kubernetes:
arch_table:
x86_64:
nodeSelector: 'kubernetes.io/arch=amd64'
jnlpImage: 'harbor.mellanox.com/toolbox/c3po-jnlp:latest'
jnlpImage: 'nbu-harbor.gtm.nvidia.com/toolbox/c3po-jnlp:latest'

env:
MAIL_FROM: [email protected]
Expand Down Expand Up @@ -48,13 +48,19 @@ steps:
- name: Release
parallel: false
run: |
.ci/do_release.sh
if ${do_dr_build}; then
git checkout tags/${release_tag}
fi
.ci/do_release.sh
archiveArtifacts: "**/build_pkg.log,**/packages/*.rpm"

pipeline_start:
shell: action
module: groovy
run: |
if (params.do_dr_build) {
env.release_tag = sh (returnStdout: true, script: "git describe --tags --abbrev=0 2>/dev/null").trim()
}
echo "Starting release process for LibXLIO-${release_tag}"
currentBuild.displayName += "-${release_tag}"

Expand All @@ -66,7 +72,7 @@ pipeline_stop:
mail from: "${MAIL_FROM}",
mimeType: 'text/html',
to: "${notification_email}",
subject: "Release build ended for LibXLIO - ${release_tag}",
subject: "${params.do_dr_build ? 'Weekly DR' : 'Release'} build ended for LibXLIO - ${release_tag}",
body: """
<p><b>Tag:</b> ${release_tag}</p>
<p><b>Build url:</b> <a href=${currentBuild.absoluteUrl}>link</a></p>
Expand Down