diff --git a/Jenkinsfile b/Jenkinsfile index 04053c6..0129978 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,10 +75,16 @@ // [ run: { echo "Building packages"; echo "Archive packages"; }, on: 'windows', ] // [ run: { echo "Building packages"; echo "Archive packages"; }, on: 'mac', ] [ - run: { echo "Building packages"; }, + run: { + echo "Building packages"; + sh "mkdir -p target/packages && echo 'testpkg' > target/packages/\${DIST}.pkg" + }, in: [ 'ubuntu-16', 'centos-7', ], on: 'docker', - post: { echo "Archiving packages" }, + post: { + echo "Archiving packages" + archiveArtifacts(artifacts: 'target/packages/**', allowEmptyArchive: false) + }, ], ] } @@ -87,7 +93,11 @@ name = 'publish' tasks = [ [ - pre: { echo "Unarchiving packages" }, + pre: { + echo "Unarchiving packages" + unarchive(mapping:['target/packages/' : 'target']) + sh("ls -lA target/packages") + }, run: { echo "Creating repo with packages" }, in: [ 'ubuntu-16', 'centos-7', ], on: 'docker',