Skip to content

Commit 455469f

Browse files
committed
libcouchbase: fix openssl11 in packaging
1 parent 19582c8 commit 455469f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

libcouchbase/Jenkinsfile.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ def package_deb(name, arch, codename, VERSION) {
259259
def package_srpm(name, bits, relno, arch, mock, VERSION) {
260260
dir("ws_${name}${relno}-${bits}/build") {
261261
unstash 'tarball'
262+
if (!(relno == 7 && name == 'centos')) {
263+
sh("sed -i 's/openssl11-devel/openssl-devel/g' ../libcouchbase/packaging/rpm/libcouchbase.spec.in")
264+
}
262265
sh("""
263266
sed 's/@VERSION@/${VERSION.rpmVer()}/g;s/@RELEASE@/${VERSION.rpmRel()}/g;s/@TARREDAS@/${VERSION.tarName()}/g' \
264267
< ../libcouchbase/packaging/rpm/libcouchbase.spec.in > libcouchbase.spec
@@ -280,9 +283,6 @@ def package_rpm(name, bits, relno, arch, mock, VERSION) {
280283
sh("rm -rf libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}/*.log")
281284
sh("tar cf libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}.tar libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}")
282285
archiveArtifacts(artifacts: "libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}.tar", fingerprint: true)
283-
if (name == 'centos' && relno == 7 && arch == 'x86_64') {
284-
stash(includes: "libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}/*.src.rpm", name: '${name}7-srpm')
285-
}
286286
}
287287
}
288288
<% end %>

libcouchbase/lcb-lnx-scripted-build-pipeline.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ def package_deb(name, arch, codename, VERSION) {
190190
def package_srpm(name, bits, relno, arch, mock, VERSION) {
191191
dir("ws_${name}${relno}-${bits}/build") {
192192
unstash 'tarball'
193+
if (!(relno == 7 && name == 'centos')) {
194+
sh("sed -i 's/openssl11-devel/openssl-devel/g' ../libcouchbase/packaging/rpm/libcouchbase.spec.in")
195+
}
193196
sh("""
194197
sed 's/@VERSION@/${VERSION.rpmVer()}/g;s/@RELEASE@/${VERSION.rpmRel()}/g;s/@TARREDAS@/${VERSION.tarName()}/g' \
195198
< ../libcouchbase/packaging/rpm/libcouchbase.spec.in > libcouchbase.spec
@@ -211,9 +214,6 @@ def package_rpm(name, bits, relno, arch, mock, VERSION) {
211214
sh("rm -rf libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}/*.log")
212215
sh("tar cf libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}.tar libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}")
213216
archiveArtifacts(artifacts: "libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}.tar", fingerprint: true)
214-
if (name == 'centos' && relno == 7 && arch == 'x86_64') {
215-
stash(includes: "libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}/*.src.rpm", name: '${name}7-srpm')
216-
}
217217
}
218218
}
219219

libcouchbase/lcb-scripted-build-pipeline.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ def package_deb(name, arch, codename, VERSION) {
190190
def package_srpm(name, bits, relno, arch, mock, VERSION) {
191191
dir("ws_${name}${relno}-${bits}/build") {
192192
unstash 'tarball'
193+
if (!(relno == 7 && name == 'centos')) {
194+
sh("sed -i 's/openssl11-devel/openssl-devel/g' ../libcouchbase/packaging/rpm/libcouchbase.spec.in")
195+
}
193196
sh("""
194197
sed 's/@VERSION@/${VERSION.rpmVer()}/g;s/@RELEASE@/${VERSION.rpmRel()}/g;s/@TARREDAS@/${VERSION.tarName()}/g' \
195198
< ../libcouchbase/packaging/rpm/libcouchbase.spec.in > libcouchbase.spec
@@ -211,9 +214,6 @@ def package_rpm(name, bits, relno, arch, mock, VERSION) {
211214
sh("rm -rf libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}/*.log")
212215
sh("tar cf libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}.tar libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}")
213216
archiveArtifacts(artifacts: "libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}.tar", fingerprint: true)
214-
if (name == 'centos' && relno == 7 && arch == 'x86_64') {
215-
stash(includes: "libcouchbase-${VERSION.tar()}_${name}${relno}_${arch}/*.src.rpm", name: '${name}7-srpm')
216-
}
217217
}
218218
}
219219

0 commit comments

Comments
 (0)