packaging 0.109.7 → 0.110.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/packaging/platforms.rb +0 -8
- data/lib/packaging/util.rb +0 -1
- data/spec/lib/packaging/sign_spec.rb +1 -1
- data/tasks/jenkins.rake +0 -16
- data/tasks/ship.rake +0 -33
- metadata +18 -19
- data/lib/packaging/util/apt_staging_server.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d2201555910a89425cf802f7b7126d167c2e2cb8d0c7ada3adeb7ba7dc29f05
|
4
|
+
data.tar.gz: 929d502f2ac04d67578be5cbde92915093ec8d70491f0e83127d72528dcb2fe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2daf0d7f45ec14f6c1a6fc92dcf1899e5fc916e32f9190285381c9fccde816a23aabff6367ab8abad6c6d71ffcc339d2a1cbaf8769ec53bab19d40b28ed41419
|
7
|
+
data.tar.gz: ceb3b6e5aa2c3cd6c0d097feb7b08d22e569e175ba10c395f6dfd732e3a438224bbd17065710235f8a36cb11917a5e07f89de19d5ac8b04bc13412b63a482021
|
data/lib/packaging/platforms.rb
CHANGED
@@ -123,14 +123,6 @@ module Pkg
|
|
123
123
|
},
|
124
124
|
|
125
125
|
'sles' => {
|
126
|
-
'11' => {
|
127
|
-
architectures: ['x86_64', 'i386'],
|
128
|
-
source_architecture: 'SRPMS',
|
129
|
-
package_format: 'rpm',
|
130
|
-
source_package_formats: ['src.rpm'],
|
131
|
-
signature_format: 'v3',
|
132
|
-
repo: true,
|
133
|
-
},
|
134
126
|
'12' => {
|
135
127
|
architectures: ['x86_64', 'ppc64le'],
|
136
128
|
source_architecture: 'SRPMS',
|
data/lib/packaging/util.rb
CHANGED
@@ -63,7 +63,7 @@ describe 'Pkg::Sign' do
|
|
63
63
|
%W[#{rpm_directory}/aix/7.1/PC1/ppc/puppet-agent-5.5.3-1.aix7.1.ppc.rpm]
|
64
64
|
end
|
65
65
|
let(:v3_rpms) do
|
66
|
-
%W[#{rpm_directory}/
|
66
|
+
%W[#{rpm_directory}/redhatfips/7/PC1/x86_64/puppet-agent-5.5.3-1.redhatfips7.x86_64.rpm]
|
67
67
|
end
|
68
68
|
let(:v4_rpms) do
|
69
69
|
%W[%#{rpm_directory}/el/7/PC1/aarch64/puppet-agent-5.5.3-1.el7.aarch64.rpm]
|
data/tasks/jenkins.rake
CHANGED
@@ -299,14 +299,6 @@ namespace :pl do
|
|
299
299
|
Rake::Task['pl:jenkins:stage_nightlies'].invoke
|
300
300
|
Rake::Task['pl:remote:update_nightly_repos'].invoke
|
301
301
|
Rake::Task['pl:remote:deploy_nightlies_to_s3'].invoke
|
302
|
-
|
303
|
-
# This serves as a cheap feature toggle to avoid things not ready to
|
304
|
-
# use it. It should be removed in future versions.
|
305
|
-
if ENV['NIGHTLY_SHIP_TO_GCP']
|
306
|
-
## apt.repos.puppet.com
|
307
|
-
Rake::Task['pl:stage_nightly_debs'].invoke
|
308
|
-
Rake::Task['pl:remote:sync_apt_repo_to_gcp'].invoke
|
309
|
-
end
|
310
302
|
end
|
311
303
|
|
312
304
|
task :ship_final => "pl:fetch" do
|
@@ -314,14 +306,6 @@ namespace :pl do
|
|
314
306
|
Rake::Task['pl:remote:update_foss_repos'].invoke
|
315
307
|
Rake::Task['pl:remote:deploy_final_builds_to_s3'].invoke
|
316
308
|
Rake::Task['pl:remote:deploy_to_rsync_server'].invoke
|
317
|
-
|
318
|
-
# This serves as a cheap feature toggle to avoid things not ready to
|
319
|
-
# use it. It should be removed in future versions.
|
320
|
-
if ENV['STABLE_SHIP_TO_GCP']
|
321
|
-
## apt.repos.puppet.com
|
322
|
-
Rake::Task['pl:stage_stable_debs'].invoke
|
323
|
-
Rake::Task['pl:remote:sync_apt_repo_to_gcp'].invoke
|
324
|
-
end
|
325
309
|
end
|
326
310
|
|
327
311
|
task :stage_release_packages => "pl:fetch" do
|
data/tasks/ship.rake
CHANGED
@@ -297,27 +297,6 @@ namespace :pl do
|
|
297
297
|
end
|
298
298
|
end
|
299
299
|
|
300
|
-
desc "Sync signed apt repos from #{Pkg::Config.apt_signing_server} to Google Cloud Platform"
|
301
|
-
task :sync_apt_repo_to_gcp => 'pl:fetch' do
|
302
|
-
GCP_REPO_SYNC = '/usr/local/bin/gcp_repo_sync'
|
303
|
-
target_site = 'apt.repos.puppet.com'
|
304
|
-
sync_command_puppet_6 = "#{GCP_REPO_SYNC} #{target_site} puppet6"
|
305
|
-
sync_command_puppet_7 = "#{GCP_REPO_SYNC} #{target_site} puppet7"
|
306
|
-
print "Sync apt repos from #{Pkg::Config.apt_signing_server} to #{target_site}? [y,n] "
|
307
|
-
next unless Pkg::Util.ask_yes_or_no
|
308
|
-
puts
|
309
|
-
|
310
|
-
Pkg::Util::Execution.retry_on_fail(times: 3) do
|
311
|
-
Pkg::Util::Net.remote_execute(Pkg::Config.apt_signing_server, sync_command_puppet_6)
|
312
|
-
end
|
313
|
-
|
314
|
-
Pkg::Util::Execution.retry_on_fail(times: 3) do
|
315
|
-
Pkg::Util::Net.remote_execute(Pkg::Config.apt_signing_server, sync_command_puppet_7)
|
316
|
-
end
|
317
|
-
end
|
318
|
-
# Keep 'deploy' for backward compatibility
|
319
|
-
task :deploy_apt_repo_to_gcp => :sync_apt_repo_to_gcp
|
320
|
-
|
321
300
|
desc "Sync apt, yum, and downloads.pl.com to AWS S3"
|
322
301
|
task :deploy_final_builds_to_s3 => "pl:fetch" do
|
323
302
|
Rake::Task['pl:remote:deploy_apt_repo_to_s3'].invoke
|
@@ -390,18 +369,6 @@ namespace :pl do
|
|
390
369
|
)
|
391
370
|
end
|
392
371
|
|
393
|
-
## This is the new-style apt stager
|
394
|
-
desc "Stage debs to #{Pkg::Config.apt_signing_server}"
|
395
|
-
task stage_stable_debs: 'pl:fetch' do
|
396
|
-
Pkg::Util::AptStagingServer.send_packages('pkg', 'stable')
|
397
|
-
end
|
398
|
-
task stage_debs: :stage_stable_debs
|
399
|
-
|
400
|
-
desc "Stage nightly debs to #{Pkg::Config.apt_signing_server}"
|
401
|
-
task stage_nightly_debs: 'pl:fetch' do
|
402
|
-
Pkg::Util::AptStagingServer.send_packages('pkg', 'nightly')
|
403
|
-
end
|
404
|
-
|
405
372
|
desc 'Ship built gem to rubygems.org, internal Gem mirror, and public file server'
|
406
373
|
task ship_gem: 'pl:fetch' do
|
407
374
|
# We want to ship a Gem only for projects that build gems, so
|
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.110.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet By Perforce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|
@@ -185,7 +185,6 @@ files:
|
|
185
185
|
- lib/packaging/sign/rpm.rb
|
186
186
|
- lib/packaging/tar.rb
|
187
187
|
- lib/packaging/util.rb
|
188
|
-
- lib/packaging/util/apt_staging_server.rb
|
189
188
|
- lib/packaging/util/build_metadata.rb
|
190
189
|
- lib/packaging/util/date.rb
|
191
190
|
- lib/packaging/util/distribution_server.rb
|
@@ -309,27 +308,27 @@ specification_version: 4
|
|
309
308
|
summary: Puppet by Perforce packaging automation
|
310
309
|
test_files:
|
311
310
|
- spec/lib/packaging_spec.rb
|
312
|
-
- spec/lib/packaging/deb_spec.rb
|
313
311
|
- spec/lib/packaging/deb/repo_spec.rb
|
314
|
-
- spec/lib/packaging/sign_spec.rb
|
315
|
-
- spec/lib/packaging/tar_spec.rb
|
316
|
-
- spec/lib/packaging/retrieve_spec.rb
|
317
|
-
- spec/lib/packaging/platforms_spec.rb
|
318
312
|
- spec/lib/packaging/rpm/repo_spec.rb
|
319
|
-
- spec/lib/packaging/
|
313
|
+
- spec/lib/packaging/sign_spec.rb
|
314
|
+
- spec/lib/packaging/deb_spec.rb
|
315
|
+
- spec/lib/packaging/artifactory_spec.rb
|
320
316
|
- spec/lib/packaging/paths_spec.rb
|
317
|
+
- spec/lib/packaging/config_spec.rb
|
318
|
+
- spec/lib/packaging/repo_spec.rb
|
319
|
+
- spec/lib/packaging/util/jenkins_spec.rb
|
320
|
+
- spec/lib/packaging/util/git_spec.rb
|
321
|
+
- spec/lib/packaging/util/misc_spec.rb
|
321
322
|
- spec/lib/packaging/util/version_spec.rb
|
323
|
+
- spec/lib/packaging/util/execution_spec.rb
|
324
|
+
- spec/lib/packaging/util/ship_spec.rb
|
322
325
|
- spec/lib/packaging/util/rake_utils_spec.rb
|
323
|
-
- spec/lib/packaging/util/
|
326
|
+
- spec/lib/packaging/util/file_spec.rb
|
327
|
+
- spec/lib/packaging/util/gpg_spec.rb
|
324
328
|
- spec/lib/packaging/util/os_spec.rb
|
325
329
|
- spec/lib/packaging/util/git_tag_spec.rb
|
326
|
-
- spec/lib/packaging/util/execution_spec.rb
|
327
|
-
- spec/lib/packaging/util/misc_spec.rb
|
328
|
-
- spec/lib/packaging/util/gpg_spec.rb
|
329
330
|
- spec/lib/packaging/util/net_spec.rb
|
330
|
-
- spec/lib/packaging/
|
331
|
-
- spec/lib/packaging/
|
332
|
-
- spec/lib/packaging/
|
333
|
-
- spec/lib/packaging/
|
334
|
-
- spec/lib/packaging/config_spec.rb
|
335
|
-
- spec/lib/packaging/artifactory_spec.rb
|
331
|
+
- spec/lib/packaging/retrieve_spec.rb
|
332
|
+
- spec/lib/packaging/gem_spec.rb
|
333
|
+
- spec/lib/packaging/tar_spec.rb
|
334
|
+
- spec/lib/packaging/platforms_spec.rb
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Utility methods for handling Apt staging server.
|
2
|
-
|
3
|
-
module Pkg::Util::AptStagingServer
|
4
|
-
def self.send_packages(pkg_directory, apt_component = 'stable')
|
5
|
-
%x(apt-stage-artifacts --component=#{apt_component} #{pkg_directory})
|
6
|
-
fail 'APT artifact staging failed.' unless $CHILD_STATUS.success?
|
7
|
-
end
|
8
|
-
end
|