[ https://issues.apache.org/jira/browse/AURORA-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073285#comment-15073285 ]
Bill Farner edited comment on AURORA-1568 at 12/29/15 12:10 AM: ---------------------------------------------------------------- FWIW here's how it's done in the nightly CI: {noformat} # Create a source archive. cd aurora version=$(cat .auroraversion).$(date +%Y.%m.%d) # Remove hyphens from version string, convert to lower case. # Note - rpmbuild does not accept hyphens, dch does not accept underscores. version=$(echo $version | tr -d '-' | tr '[:upper:]' '[:lower:]') git archive --prefix=apache-aurora-$version/ -o snapshot.tar.gz HEAD cd ../aurora-packaging ./build-artifact.sh ../aurora/snapshot.tar.gz $version {noformat} was (Author: wfarner): FWIW here's how it's done in the nightly CI: {{noformat}} # Create a source archive. cd aurora version=$(cat .auroraversion).$(date +%Y.%m.%d) # Remove hyphens from version string, convert to lower case. # Note - rpmbuild does not accept hyphens, dch does not accept underscores. version=$(echo $version | tr -d '-' | tr '[:upper:]' '[:lower:]') git archive --prefix=apache-aurora-$version/ -o snapshot.tar.gz HEAD cd ../aurora-packaging ./build-artifact.sh ../aurora/snapshot.tar.gz $version {{noformat}} > rpm builder does not handle snapshot versions > --------------------------------------------- > > Key: AURORA-1568 > URL: https://issues.apache.org/jira/browse/AURORA-1568 > Project: Aurora > Issue Type: Bug > Components: Packaging > Reporter: John Sirois > Priority: Minor > > Failure looks like so: > From aurora: > {noformat} > git archive --prefix=apache-aurora-$(cat .auroraversion)/ -o snapshot.tar.gz > HEAD > tar -tzf snapshot.tar.gz | head -3 > apache-aurora-0.12.0-SNAPSHOT/ > apache-aurora-0.12.0-SNAPSHOT/.auroraversion > apache-aurora-0.12.0-SNAPSHOT/.bowerrc > {noformat} > From aurora-packaging in sibling dir: > {noformat} > ./build-artifact.sh builder/rpm/centos-7 ../aurora/snapshot.tar.gz > 0.12.0-SNAPSHOT > ... > Successfully built 99bf8605d349 > + mkdir -p /scratch/src > + cd /scratch > + tar --strip-components 1 -C src -xf /src.tar.gz > + cp -R /specs/rpm . > + cd rpm > ++ echo 0.12.0-SNAPSHOT > ++ tr - _ > + export AURORA_VERSION=0.12.0_SNAPSHOT > + AURORA_VERSION=0.12.0_SNAPSHOT > + make srpm > ... > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.C6rU5N > + umask 022 > + cd /dist/rpmbuild/BUILD > + cd /dist/rpmbuild/BUILD > + rm -rf apache-aurora-0.12.0_SNAPSHOT > + /usr/bin/gzip -dc /dist/rpmbuild/SOURCES/aurora.tar.gz > + /usr/bin/tar -xvvf - > drwxrwxr-x root/root 0 2015-12-28 22:51 apache-aurora-0.12.0-SNAPSHOT/ > -rw-rw-r-- root/root 16 2015-12-28 22:51 > apache-aurora-0.12.0-SNAPSHOT/.auroraversion > -rw-rw-r-- root/root 35 2015-12-28 22:51 > apache-aurora-0.12.0-SNAPSHOT/.bowerrc > ... > -rwxrwxr-x root/root 5275 2015-12-28 22:51 > apache-aurora-0.12.0-SNAPSHOT/src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh > -rw-rw-r-- root/root 1483 2015-12-28 22:51 > apache-aurora-0.12.0-SNAPSHOT/src/test/sh/org/apache/aurora/e2e/validate_serverset.py > + STATUS=0 > + '[' 0 -ne 0 ']' > + cd apache-aurora-0.12.0_SNAPSHOT > /var/tmp/rpm-tmp.C6rU5N: line 35: cd: apache-aurora-0.12.0_SNAPSHOT: No such > file or directory > error: Bad exit status from /var/tmp/rpm-tmp.C6rU5N (%prep) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)