packaging 0.105.0 → 0.106.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/tasks/ship.rake +17 -7
  3. metadata +19 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 296bfdcecf936f80297894792d9b9a1bb3a83a422a61e4976aca3916dd6c9a2b
4
- data.tar.gz: 0c76c4482d82367cef9d988fc1e31080f718322e4eab1fe9a5176f4544c8a3ce
3
+ metadata.gz: eb8f591fe70bfaa1b456f862d1898608ac697a17fd6875f03bf9ccc3a70aca0f
4
+ data.tar.gz: 5d14a9da028019e933ffe9b723170d222bd7684aeacc85081f7002ac683739d6
5
5
  SHA512:
6
- metadata.gz: 071534bcce41eb8b11517d21592399a9f94c45b20a70259aa5a13c4bf3ec5bfd6cab5e517698e6f8884736a932a62d0212d945cb97ad549bdf8c80242f594f8e
7
- data.tar.gz: 532cca35cd6eeea218c8a6cdcdf00f0802f0c0ae33fc009f6f42bd7c39056f45b147abaf971879e2f5532541e1d08c0c6267425d32aa69dad9c11f036697c183
6
+ metadata.gz: bd7b31167dcd20809a694b8366493be1e2ab67138d97c90ad283ca4852ecca37c6726642bb20e9ac83a0b97d606a780825e4133d9cffa357e602ea0d1e96d779
7
+ data.tar.gz: ab8c6af7044c77070b5568023beb9962506622cb90d472d07d795deb8d6b99abea94cf29077e6e5ee71990f20aa1d0672dab83a7c1192a9845c580407a4f3259
data/tasks/ship.rake CHANGED
@@ -640,14 +640,18 @@ namespace :pl do
640
640
 
641
641
  # It is odd to namespace this ship task under :jenkins, but this task is
642
642
  # intended to be a component of the jenkins-based build workflow even if it
643
- # doesn't interact with jenkins directly. The :target argument is so that we
644
- # can invoke this task with a subdirectory of the standard distribution
645
- # server path. That way we can separate out built artifacts from
646
- # signed/actually shipped artifacts e.g. $path/shipped/ or $path/artifacts.
643
+ # doesn't interact with jenkins directly.
644
+
645
+ # The :target argument is so that we can invoke this task with a
646
+ # subdirectory of the standard distribution server path. That way we
647
+ # can separate out built artifacts from signed/actually shipped
648
+ # artifacts: $path/shipped or $path/artifacts.
649
+
647
650
  namespace :jenkins do
648
- # The equivalent to invoking this task is calling Pkg::Util::Ship.ship_to_artifactory(local_directory, target)
649
651
  desc 'ship pkg directory contents to artifactory'
650
652
  task :ship_to_artifactory, :local_dir do |_t, args|
653
+ # The equivalent to invoking this task is calling
654
+ # Pkg::Util::Ship.ship_to_artifactory(local_directory, target)
651
655
  Pkg::Util::RakeUtils.invoke_task('pl:fetch')
652
656
  unless Pkg::Config.project
653
657
  fail "Error: 'project' must be set in build_defaults.yaml or " \
@@ -655,9 +659,15 @@ namespace :pl do
655
659
  end
656
660
 
657
661
  artifactory = Pkg::ManageArtifactory.new(Pkg::Config.project, Pkg::Config.ref)
658
-
659
662
  local_dir = args.local_dir || 'pkg'
660
- Dir.glob("#{local_dir}/**/*").reject { |e| File.directory? e }.each do |artifact|
663
+
664
+ # Artifactory generates its own 'sha1' files. Shipping them confuses Artifactory
665
+ # terribly.
666
+ shippable = Dir.glob("#{local_dir}/**/*").reject do |e|
667
+ File.directory?(e) || File.extname(e) == '.sha1'
668
+ end
669
+
670
+ shippable.each do |artifact|
661
671
  # Always deploy yamls and jsons
662
672
  if artifact.end_with?('.yaml', '.json')
663
673
  artifactory.deploy_package(artifact)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.105.0
4
+ version: 0.106.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug
@@ -296,27 +296,27 @@ specification_version: 4
296
296
  summary: Puppet Labs' packaging automation
297
297
  test_files:
298
298
  - spec/lib/packaging_spec.rb
299
- - spec/lib/packaging/artifactory_spec.rb
300
- - spec/lib/packaging/deb_spec.rb
301
- - spec/lib/packaging/retrieve_spec.rb
299
+ - spec/lib/packaging/platforms_spec.rb
300
+ - spec/lib/packaging/tar_spec.rb
302
301
  - spec/lib/packaging/rpm/repo_spec.rb
303
- - spec/lib/packaging/deb/repo_spec.rb
304
- - spec/lib/packaging/config_spec.rb
302
+ - spec/lib/packaging/artifactory_spec.rb
303
+ - spec/lib/packaging/gem_spec.rb
305
304
  - spec/lib/packaging/paths_spec.rb
306
- - spec/lib/packaging/tar_spec.rb
307
- - spec/lib/packaging/repo_spec.rb
308
305
  - spec/lib/packaging/sign_spec.rb
309
- - spec/lib/packaging/platforms_spec.rb
310
- - spec/lib/packaging/util/version_spec.rb
311
- - spec/lib/packaging/util/os_spec.rb
312
- - spec/lib/packaging/util/misc_spec.rb
313
- - spec/lib/packaging/util/git_spec.rb
314
- - spec/lib/packaging/util/jenkins_spec.rb
315
- - spec/lib/packaging/util/execution_spec.rb
316
- - spec/lib/packaging/util/git_tag_spec.rb
306
+ - spec/lib/packaging/config_spec.rb
317
307
  - spec/lib/packaging/util/gpg_spec.rb
318
- - spec/lib/packaging/util/file_spec.rb
308
+ - spec/lib/packaging/util/jenkins_spec.rb
319
309
  - spec/lib/packaging/util/net_spec.rb
310
+ - spec/lib/packaging/util/git_tag_spec.rb
320
311
  - spec/lib/packaging/util/rake_utils_spec.rb
312
+ - spec/lib/packaging/util/os_spec.rb
313
+ - spec/lib/packaging/util/misc_spec.rb
314
+ - spec/lib/packaging/util/execution_spec.rb
315
+ - spec/lib/packaging/util/git_spec.rb
321
316
  - spec/lib/packaging/util/ship_spec.rb
322
- - spec/lib/packaging/gem_spec.rb
317
+ - spec/lib/packaging/util/version_spec.rb
318
+ - spec/lib/packaging/util/file_spec.rb
319
+ - spec/lib/packaging/deb_spec.rb
320
+ - spec/lib/packaging/repo_spec.rb
321
+ - spec/lib/packaging/retrieve_spec.rb
322
+ - spec/lib/packaging/deb/repo_spec.rb