packaging 0.105.0 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tasks/ship.rake +17 -7
- metadata +19 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb8f591fe70bfaa1b456f862d1898608ac697a17fd6875f03bf9ccc3a70aca0f
|
|
4
|
+
data.tar.gz: 5d14a9da028019e933ffe9b723170d222bd7684aeacc85081f7002ac683739d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
644
|
-
|
|
645
|
-
#
|
|
646
|
-
#
|
|
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
|
-
|
|
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.
|
|
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-
|
|
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/
|
|
300
|
-
- spec/lib/packaging/
|
|
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/
|
|
304
|
-
- spec/lib/packaging/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|