conjur-debify 2.1.0 → 2.1.1.pre.957
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/Dockerfile +1 -1
- data/Jenkinsfile +39 -19
- data/VERSION +1 -1
- data/debify.gemspec +1 -1
- data/publish-rubygem.sh +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 900a9fd06b803b1a556d3b718cb8db6ac73b442eb78b414417af39764783d214
|
4
|
+
data.tar.gz: d634ed0e025e341cca3a0e085bdbd75dde1f965112dffcb2bdbf9c920209aa6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a143de7e6c1b954d95ed224c96d477afdaa63cf4642019b7b01392b68f5e214246eb3c3a568d1dfc3d43b8d05c288f7b449dc9a8ad6500bf3ca2c45a516897e5
|
7
|
+
data.tar.gz: 154e6740f311f41038631cadc7aeff5a52922b6dbf150d7058cf0bb90fd6fc4b0119ecef507cc301cf6f10621ce132254189e39582de1e2897876d81842f0d0f
|
data/CHANGELOG.md
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
|
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,5 +1,18 @@
|
|
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
|
|
@@ -13,8 +26,25 @@ pipeline {
|
|
13
26
|
cron(getDailyCronString())
|
14
27
|
}
|
15
28
|
|
29
|
+
environment {
|
30
|
+
MODE = release.canonicalizeMode()
|
31
|
+
}
|
32
|
+
|
16
33
|
stages {
|
17
|
-
stage('
|
34
|
+
stage ("Skip build if triggering job didn't create a release") {
|
35
|
+
when {
|
36
|
+
expression {
|
37
|
+
MODE == "SKIP"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
steps {
|
41
|
+
script {
|
42
|
+
currentBuild.result = 'ABORTED'
|
43
|
+
error("Aborting build because this build was triggered from upstream, but no release was built")
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
stage('Prepare') {
|
18
48
|
steps {
|
19
49
|
// One of our cukes tests to see if debify can correctly
|
20
50
|
// determine the version for the package being created, based
|
@@ -24,6 +54,9 @@ pipeline {
|
|
24
54
|
// I couldn't find any way to configure the plugin, so I used
|
25
55
|
// the Snippet Generator to create this:
|
26
56
|
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']]])
|
57
|
+
|
58
|
+
// Initialize VERSION file
|
59
|
+
updateVersion("CHANGELOG.md", "${BUILD_NUMBER}")
|
27
60
|
}
|
28
61
|
}
|
29
62
|
stage('Build docker image') {
|
@@ -71,28 +104,15 @@ pipeline {
|
|
71
104
|
|
72
105
|
stage('Publish to RubyGems') {
|
73
106
|
when {
|
74
|
-
|
75
|
-
|
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
|
-
}*/
|
107
|
+
expression {
|
108
|
+
MODE == "RELEASE"
|
90
109
|
}
|
91
110
|
}
|
92
111
|
|
93
112
|
steps {
|
94
|
-
|
95
|
-
|
113
|
+
release {
|
114
|
+
sh './publish-rubygem.sh'
|
115
|
+
}
|
96
116
|
}
|
97
117
|
}
|
98
118
|
}
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.1-957
|
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,7 +2,7 @@
|
|
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 -e VERSION
|
6
6
|
|
7
7
|
summon --yaml "RUBYGEMS_API_KEY: !var rubygems/api-key" \
|
8
8
|
docker run --rm --env-file @SUMMONENVFILE -v "$(pwd)":/opt/src \
|
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.
|
4
|
+
version: 2.1.1.pre.957
|
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-
|
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:
|
251
|
+
version: 1.3.1
|
252
252
|
requirements: []
|
253
253
|
rubygems_version: 3.1.6
|
254
254
|
signing_key:
|