Skip to content

Commit

Permalink
Do not use TARBALL_NAME anymore
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 Oct 6, 2023
1 parent abbc13b commit df5356f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jenkins-scripts/dsl/_configs_/OSRFSourceCreation.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class OSRFSourceCreation
parameters {
currentBuild()
predefinedProps([PROJECT_NAME_TO_COPY_ARTIFACTS: "\${JOB_NAME}"])
propertiesFile(properties_file) // TARBALL_NAME
propertiesFile(properties_file) // SOURCE_TARBALL_URI
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions jenkins-scripts/dsl/test.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ repo_uploader.with
parameters
{
stringParam('PACKAGE','','Package name')
stringParam('TARBALL_NAME', '', 'Tarball name to upload')
stringParam('S3_UPLOAD_PATH','', 'S3 path to upload')
stringParam('S3_FILES_TO_UPLOAD','', 'S3 file names to upload')
stringParam('UPLOAD_TO_REPO','none','repo to upload')
Expand All @@ -63,7 +62,7 @@ repo_uploader.with
{
copyArtifacts('${PROJECT_NAME_TO_COPY_ARTIFACTS}')
{
includePatterns("${pkg_sources_dir}/\${TARBALL_NAME}")
includePatterns("${pkg_sources_dir}/*")
buildSelector {
upstreamBuild()
}
Expand All @@ -75,7 +74,10 @@ repo_uploader.with
# check that the tarball name actually exist

ls -R \${WORKSPACE}
test -f \${WORKSPACE}/${pkg_sources_dir}/\${TARBALL_NAME}

for pkg in \$(ls ${pkg_sources_dir}/); do
test -f \${WORKSPACE}/${pkg_sources_dir}/\${pkg}
done

echo "Fake upload of \${S3_FILES_TO_UPLOAD} to \${S3_UPLOAD_PATH}"
# code copied from repository_uploader
Expand Down

0 comments on commit df5356f

Please sign in to comment.