Browse Source

Call generate-reprepro-codename in reprepro_wrapper + update README accordingly

reprepro_wrapper is doing various operations on "reprepro $REPOS", so
create the repository codename here. It doesn't make much sense to
require the user to call it with the very same parameter themselves.

Thanks: Christoph Berg <myon@debian.org> for idea + patch
merge-requests/109/head
Michael Prokop 10 years ago
parent
commit
456305ed22
  1. 15
      README.org
  2. 2
      scripts/build-and-provide-package

15
README.org

@ -79,8 +79,6 @@ NOTE: the "Delete workspace before build starts" option provided by the [[https:
Then add another build step of "/Execute shell/" as follows:
#+BEGIN_EXAMPLE
# JENKINS_DEBIAN_GLUE_SOURCE_HEADER
# when using git:
/usr/bin/generate-git-snapshot
@ -120,11 +118,6 @@ Screenshot for this /Copy artifacts/ configuration:
In the "/Build/" section add a build step "/Execute shell/" using:
#+BEGIN_EXAMPLE
# JENKINS_DEBIAN_GLUE_BINARIES_HEADER
REPOS="${JOB_NAME%-binaries*}"
/usr/bin/generate-reprepro-codename "${REPOS}"
/usr/bin/build-and-provide-package
#+END_EXAMPLE
@ -303,10 +296,6 @@ The build-and-provide-package script does support such distributed builds by usi
Usage example for the *-binaries job:
#+BEGIN_EXAMPLE
# JENKINS_DEBIAN_GLUE_BINARIES_HEADER
REPOS="${JOB_NAME%-binaries*}"
sudo /usr/bin/generate-reprepro-codename "${REPOS}"
export BUILD_ONLY=true
export SUDO_CMD=sudo
/usr/bin/build-and-provide-package
@ -317,7 +306,6 @@ Create a *-repos job which gets triggered from the *-binaries job. Don't forget
Inside the *-repos job you can use something like:
#+BEGIN_EXAMPLE
# JENKINS_DEBIAN_GLUE_REPOS_HEADER
mkdir -p binaries
for suffix in gz bz2 xz deb dsc changes ; do
@ -327,9 +315,6 @@ done
# if building a tagged version then do not include that one in the release-trunk repository
case "$branch" in tags/*|branches/*) export IGNORE_RELEASE_TRUNK=true;; esac
REPOS="${JOB_NAME%-repos*}"
sudo /usr/bin/generate-reprepro-codename "${REPOS}"
export SUDO_CMD=sudo
export BASE_PATH="binaries/"
export PROVIDE_ONLY=true

2
scripts/build-and-provide-package

@ -341,6 +341,8 @@ reprepro_wrapper() {
bailout 1 "Error: repository ${REPOSITORY} does not exist."
fi
${SUDO_CMD:-} generate-reprepro-codename "${REPOS}"
remove_packages
remove_missing_binary_packages

Loading…
Cancel
Save