From 4f96e7ae52be77e6578753d50e2372115fbb7e2a Mon Sep 17 00:00:00 2001 From: Sergey Kalinin Date: Thu, 23 Jul 2020 19:18:50 +0000 Subject: [PATCH] =?UTF-8?q?bitbucket-pipelines.yml=20=D0=BE=D1=82=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=20=D0=BE=D0=BD=D0=BB=D0=B0=D0=B9=D0=BD=20=D0=BD=D0=B0=20?= =?UTF-8?q?Bitbucket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bitbucket-pipelines.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index d2988c4..deebf2a 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -10,13 +10,12 @@ pipelines: - step: script: - WORKDIR=/home/rpmbuild - #- ls -R -la ${WORKDIR} - - VERSION=$(grep Version rac_gui.tcl | grep -oE '\b[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\b') - - RELEASE=$(grep Release rac_gui.tcl | grep -oE '\b[0-9]{1,3}\b') - - mkdir ${WORKDIR}/rac-gui - - cp -R * ${WORKDIR}/rac-gui - - tar czf ${WORKDIR}/rpmbuild/SOURCES/rac-gui-${VERSION}-${RELEASE}.tar.gz ${WORKDIR}/rac-gui - - cp rac_gui.spec ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec + - cd ${WORKDIR} + - git clone https://bitbucket.org/svk28/rac-gui.git + - VERSION=$(grep Version ${WORKDIR}/rac-gui/rac_gui.tcl | grep -oE '\b[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\b') + - RELEASE=$(grep Release ${WORKDIR}/rac-gui/rac_gui.tcl | grep -oE '\b[0-9]{1,3}\b') + - tar czf ${WORKDIR}/rpmbuild/SOURCES/rac-gui-${VERSION}-${RELEASE}.tar.gz rac-gui + - cp ${WORKDIR}/rac-gui/rac_gui.spec ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec - sed -i "s/.*Version:.*/Version:\t${VERSION}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec - sed -i "s/.*Release:.*/Release:\t${RELEASE}/" ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec - rpmbuild -ba ${WORKDIR}/rpmbuild/SPECS/rac_gui.spec