Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
noos
  • Loading branch information
jpdavis-prof authored Aug 9, 2023
1 parent 53e3da9 commit bc0fdbc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Jenkinsfile.github
Original file line number Diff line number Diff line change
Expand Up @@ -166,22 +166,18 @@ pipeline {
stage('Publish') {
steps {
script {
def sleVersion = sh(returnStdout: true, script: 'awk -F= \'/VERSION_ID/{gsub(/["]/,""); print \$NF}\' /etc/os-release').trim()
def sles_version_parts = "${sleVersion}".tokenize('.')
def sles_major = "${sles_version_parts[0]}"
def sles_minor = "${sles_version_parts[1]}"
publishCsmRpms(
arch: "${ARCH}",
component: env.NAME,
isStable: isStable,
os: "sle-${sles_major}sp${sles_minor}",
os: "noos",
pattern: "dist/rpmbuild/${ARCH}/${PYTHON_VERSION}/RPMS/${ARCH}/*.rpm",
)
publishCsmRpms(
arch: "src",
component: env.NAME,
isStable: isStable,
os: "sle-${sles_major}sp${sles_minor}",
os: "noos",
pattern: "dist/rpmbuild/${ARCH}/${PYTHON_VERSION}/SRPMS/*.rpm",
)
}
Expand Down

0 comments on commit bc0fdbc

Please sign in to comment.