Skip to content

Commit

Permalink
Add an step to export TARBALL_NAME
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Sep 7, 2023
1 parent 9369151 commit cd95ce3
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions jenkins-scripts/dsl/_configs_/OSRFSourceCreation.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,37 @@ class OSRFSourceCreation
'RTOOLS_BRANCH: ' + build.buildVariableResolver.resolve('RTOOLS_BRANCH'));
""".stripIndent()
)
shell("""\
#!/bin/bash -xe
# Use Jammy/amd64 as base image to generate sources
export DISTRO=jammy
export ARCH=amd64
/bin/bash -x ./scripts/jenkins-scripts/docker/gz-source-generation.bash
""".stripIndent()
)
shell("""\
#!/bin/bash -xe
export DISTRO=jammy
export ARCH=amd64
#!/bin/bash -xe
# Export information from the build in properties_files. The tarball extraction helps to
# deal with changes in the compression of the tarballs.
tarball=\$(find \${WORKSPACE}/${pkg_sources_dir} \
-type f \
-name ${canonical_package_name}-\${VERSION}.tar.* \
-printf "%f\\n")
if [[ -z \${tarball} ]] || [[ \$(wc -w <<< \${tarball}) != 1 ]]; then
echo "Tarball name extraction returned \${tarball} which is not a one word string"
exit 1
fi
echo "TARBALL_NAME=\${tarball}" >> ${properties_file}
""".stripIndent()
)
}
}
}

/bin/bash -x ./scripts/jenkins-scripts/docker/gz-source-generation.bash
""".stripIndent())
}
}
}
Expand Down

0 comments on commit cd95ce3

Please sign in to comment.