Skip to content

Commit

Permalink
CI: Fix packaging (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
eidenyoshida authored Nov 28, 2023
1 parent 8c13064 commit f9cc03e
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions .jenkins/common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,9 @@ def runTestCommand (platform, project, gfilter)

def runPackageCommand(platform, project)
{

def command

if(platform.jenkinsLabel.contains('centos') || platform.jenkinsLabel.contains('sles'))
{
command = """
set -x
cd ${project.paths.project_build_prefix}/build/release
make package
mkdir -p package
mv *.rpm package/
rpm -qlp package/*.rpm
"""

platform.runCommand(this, command)
platform.archiveArtifacts(this, """${project.paths.project_build_prefix}/build/release/package/*.rpm""")
}
else
{
command = """
set -x
cd ${project.paths.project_build_prefix}/build/release
make package
mkdir -p package
mv *.deb package/
"""

platform.runCommand(this, command)
platform.archiveArtifacts(this, """${project.paths.project_build_prefix}/build/release/package/*.deb""")
}
def packageHelper = platform.makePackage(platform.jenkinsLabel,"${project.paths.project_build_prefix}/build/release")
platform.runCommand(this, packageHelper[0])
platform.archiveArtifacts(this, packageHelper[1])
}

return this
Expand Down

0 comments on commit f9cc03e

Please sign in to comment.