Changed version getting
test-org/runner-rs/pipeline/pr-master There was a failure building this commit Details

pull/37/head
yuobrezkov 2025-01-22 18:27:06 +03:00
parent 57195a71ae
commit 504bc7df84
1 changed files with 3 additions and 4 deletions

7
Jenkinsfile vendored
View File

@ -72,8 +72,7 @@ pipeline {
def targetDirAmd = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/amd64"
def targetDirRisc = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/riscv64"
def packageName = "noxis"
def version = sh(script: "git describe --tags --always", returnStdout: true).trim()
def createDebPackage = { arch, binDir, targetDir, installSize ->
def version = sh(script: "git describe --tags --always $(git rev-list --tags --max-count=1 --branches=rc)", returnStdout: true).trim() def createDebPackage = { arch, binDir, targetDir, installSize ->
echo "Creating deb package for ${arch}..."
sh """
@ -175,8 +174,8 @@ EOF
echo "Uploading deb packages using sshPut..."
sshPut remote: remote, from: "${env.WORKSPACE}/rc/amd64", into: "/home/user/repo/debs/"
sshPut remote: remote, from: "${env.WORKSPACE}/rc/riscv64", into: "/home/user/repo/debs/"
sshPut remote: remote, from: "${env.WORKSPACE}/rc/amd64/*", into: "/home/user/repo/debs/"
sshPut remote: remote, from: "${env.WORKSPACE}/rc/riscv64/*", into: "/home/user/repo/debs/"
echo "Running repository update commands via sshCommand..."