conjur-debify 2.1.0 → 2.1.1.pre.959

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f1513a687cde9e9f2079436b6c9b290748d22a66ebd890c957e4dd1e9200592
4
- data.tar.gz: bdbc0f7c3ce085d8ac9ad012b51c07498efcd21218896eb73e6bd4ef12806391
3
+ metadata.gz: 54fc1479762e398ff05be5b2cbb976e4e6f4d88ebf56873638f8b7aeada45f32
4
+ data.tar.gz: e675b6f641841f102022d3a79d0a3eef4f22c73e09afe3c3b79203878136a1ab
5
5
  SHA512:
6
- metadata.gz: 77413aeaa1c6e74e293522012375671357a265d25d7e9d70cae42df8218b265a12cdfe5612bcab58b569fc9cb07ba30a44ee595f962239322b4871849f8b3b69
7
- data.tar.gz: dc986fbd9bb73204846c8a39ed791432c4d668ac9c1facb51863765e67c81d5ebe004152440ff67b963a5b69abb931924f984c980cd70208c83566d9c6fabcea
6
+ metadata.gz: d82d03422a95a06438dca9e7c1a0bd55ae55fc686aaaff972524dde3f6caa7b7f2a804012934c90078cb43442bcb4975226d1d5fe5ef89b8548bbfa1e42d1da6
7
+ data.tar.gz: f315edaf0c7988f50e64a1d831963c266585f8f04c2e28245b4692a0a8a177dbd38007f8fb2d282e94ad31a8a4838aee4ae0a836e5f0659e0f6c26491ca0a239
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
- ## [Unreleased]
1
+ ## [2.1.1]
2
+ ### Changed
3
+
4
+ - Update to use automated release process
2
5
 
3
6
  # 2.1.0
4
7
  ### Changed
data/Dockerfile CHANGED
@@ -23,7 +23,7 @@ RUN gem install bundler:2.2.30
23
23
  RUN gem build debify.gemspec
24
24
 
25
25
  ARG VERSION
26
- RUN gem install -N conjur-debify-${VERSION}.gem
26
+ RUN gem install -N conjur-debify-*.gem
27
27
 
28
28
  ARG CONJUR_APPLIANCE_URL
29
29
  ENV CONJUR_APPLIANCE_URL ${CONJUR_APPLIANCE_URL:-https://conjurops.itp.conjur.net}
data/Jenkinsfile CHANGED
@@ -1,29 +1,52 @@
1
1
  #!/usr/bin/env groovy
2
2
 
3
+ // Automated release, promotion and dependencies
4
+ properties([
5
+ release.addParams(),
6
+ dependencies(['cyberark/conjur-base-image'])
7
+ ])
8
+
9
+ if (params.MODE == "PROMOTE") {
10
+ release.promote(params.VERSION_TO_PROMOTE) { sourceVersion, targetVersion, assetDirectory ->
11
+ sh './publish-rubygems.sh'
12
+ }
13
+ return
14
+ }
15
+
3
16
  pipeline {
4
17
  agent { label 'executor-v2' }
5
18
 
6
19
  options {
7
20
  timestamps()
8
21
  buildDiscarder(logRotator(daysToKeepStr: '30'))
9
- skipDefaultCheckout()
10
22
  }
11
23
 
12
24
  triggers {
13
25
  cron(getDailyCronString())
14
26
  }
15
27
 
28
+ environment {
29
+ MODE = release.canonicalizeMode()
30
+ }
31
+
16
32
  stages {
17
- stage('Checkout') {
33
+ stage ("Skip build if triggering job didn't create a release") {
34
+ when {
35
+ expression {
36
+ MODE == "SKIP"
37
+ }
38
+ }
18
39
  steps {
19
- // One of our cukes tests to see if debify can correctly
20
- // determine the version for the package being created, based
21
- // on the tags in the repo. By default, the Git SCM plugin
22
- // doesn't pull tags, causing the cuke to fail.
23
- //
24
- // I couldn't find any way to configure the plugin, so I used
25
- // the Snippet Generator to create this:
26
- checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'conjur-jenkins', url: 'git@github.com:conjurinc/debify.git']]])
40
+ script {
41
+ currentBuild.result = 'ABORTED'
42
+ error("Aborting build because this build was triggered from upstream, but no release was built")
43
+ }
44
+ }
45
+ }
46
+ stage('Prepare') {
47
+ steps {
48
+ // Initialize VERSION file
49
+ updateVersion("CHANGELOG.md", "${BUILD_NUMBER}")
27
50
  }
28
51
  }
29
52
  stage('Build docker image') {
@@ -71,28 +94,15 @@ pipeline {
71
94
 
72
95
  stage('Publish to RubyGems') {
73
96
  when {
74
- allOf {
75
- branch 'master'
76
- /* expression {
77
- boolean publish = false
78
-
79
- try {
80
- timeout(time: 5, unit: 'MINUTES') {
81
- input(message: 'Publish to RubyGems?')
82
- publish = true
83
- }
84
- } catch (final ignore) {
85
- publish = false
86
- }
87
-
88
- return publish
89
- }*/
97
+ expression {
98
+ MODE == "RELEASE"
90
99
  }
91
100
  }
92
101
 
93
102
  steps {
94
- checkout scm
95
- sh './publish-rubygem.sh'
103
+ release {
104
+ sh './publish-rubygem.sh'
105
+ }
96
106
  }
97
107
  }
98
108
  }
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1-959
data/debify.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = "https://github.com/conjurinc/debify"
13
13
  spec.license = "MIT"
14
14
 
15
- spec.files = `git ls-files -z`.split("\x0")
15
+ spec.files = `git ls-files -z`.split("\x0").append("VERSION")
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
data/publish-rubygem.sh CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  docker pull registry.tld/conjurinc/publish-rubygem
4
4
 
5
- docker run -i --rm -v $PWD:/src -w /src alpine/git clean -fxd
5
+ docker run -i --rm -v $PWD:/src -w /src alpine/git clean -fxd \
6
+ -e VERSION \
7
+ -e bom-assets/ \
8
+ -e release-assets/
6
9
 
7
10
  summon --yaml "RUBYGEMS_API_KEY: !var rubygems/api-key" \
8
11
  docker run --rm --env-file @SUMMONENVFILE -v "$(pwd)":/opt/src \
9
12
  registry.tld/conjurinc/publish-rubygem debify
10
-
11
- docker run -i --rm -v $PWD:/src -w /src alpine/git clean -fxd
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-debify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1.pre.959
5
5
  platform: ruby
6
6
  authors:
7
7
  - CyberArk Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-05 00:00:00.000000000 Z
11
+ date: 2021-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -246,9 +246,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
246
246
  version: '0'
247
247
  required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  requirements:
249
- - - ">="
249
+ - - ">"
250
250
  - !ruby/object:Gem::Version
251
- version: '0'
251
+ version: 1.3.1
252
252
  requirements: []
253
253
  rubygems_version: 3.1.6
254
254
  signing_key: