diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2016-07-29 22:47:24 +0200 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2016-07-29 22:49:45 +0200 |
commit | 1ec902166bc91bd3c9038c0671116e5c22802df3 (patch) | |
tree | e78d092faf4550b2f10bce658e8f47bbf6eed17c | |
parent | ab1895d87308bebc9a1444cf6e5d8c8ce5bbe853 (diff) |
Revert "build-odp-deb: embed Debian package generation into the build job"
This reverts commit ab1895d87308bebc9a1444cf6e5d8c8ce5bbe853.
Need to revert this until we figure out how to modify the AC_INIT.
Change-Id: I83c8d992df4df1e54a0d1c978f60c33ef3e66232
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rw-r--r-- | build-odp-deb.yaml | 74 |
1 files changed, 12 insertions, 62 deletions
diff --git a/build-odp-deb.yaml b/build-odp-deb.yaml index d61b314be8..250b2ebe42 100644 --- a/build-odp-deb.yaml +++ b/build-odp-deb.yaml @@ -21,12 +21,12 @@ display-name: 'Build debian source for opendataplane.org' scm: - git: - url: https://git.linaro.org/lng/odp.git + url: https://git.linaro.org/lng/odp-packaging.git refspec: +refs/heads/master:refs/remotes/origin/master name: origin branches: - refs/heads/master - basedir: odp + basedir: odp-packaging skip-tag: true shallow-clone: false wipe-workspace: false @@ -40,75 +40,25 @@ - shell: | #!/bin/bash - set -ex + set -e - wget -qO - http://deb.opendataplane.org/odp.key | sudo apt-key add - - echo 'deb http://deb.opendataplane.org/ jessie main' | sudo tee /etc/apt/sources.list.d/odp.list + sudo apt-get update + sudo apt-get install --no-install-recommends -q -y libssl-dev doxygen asciidoctor mscgen dh-autoreconf graphviz libcunit1-dev libpcap-dev - sudo apt-get -q=2 update - sudo apt-get -q=2 -y --no-install-recommends install debhelper devscripts xz-utils + cd odp-packaging; bash -x ./build-deb-package - pkg_source=odp - cd ${pkg_source} - - base_version=$(git describe --match='v*' | sed -e 's/^v//' | cut -d'-' -f1) - nb_commit=$(git describe --match='v*' | sed -e 's/^v//' | cut -d'-' -f2) - scm_commit=$(git log -n1 --pretty=format:%h) - pkg_version=${base_version}+git${nb_commit}+${scm_commit} - pkg_dir=${pkg_source}-${pkg_version} - - sed -i "s|^AC_INIT.*|AC_INIT([OpenDataPlane], [${base_version}], [lng-odp@lists.linaro.org])|" configure.ac - - git config tar.tar.xz.command "xz -c" - git archive --format=tar.xz --prefix=${pkg_dir}/ origin/master > ../${pkg_source}_${pkg_version}.orig.tar.xz - - cd .. - - tar xf ${pkg_source}_${pkg_version}.orig.tar.xz - - packaging_dir=odp-packaging - packaging_repository=https://git.linaro.org/lng/${packaging_dir}.git - git clone --depth 1 ${packaging_repository} - packaging_commit=$(cd ${packaging_dir} && git log -n1 --pretty=format:%h) - mv ${packaging_dir}/pkg/debian ${pkg_dir} - - rm -rf ${pkg_source} ${packaging_dir} - - cd ${pkg_dir} - - pkg_repository=https://git.linaro.org/lng/odp.git - current_date=$(date -R) - - cat > debian/changelog << EOF - ${pkg_source} (${pkg_version}-0linaro1) unstable; urgency=medium - - * CI - ${pkg_source} snapshot: - - repository: ${pkg_repository} - - commit: ${scm_commit} - - build: ${BUILD_URL} - - - debian/ repository: ${packaging_repository} - - debian/ commit: ${packaging_commit} - - -- Anders Roxell <anders.roxell@linaro.org> ${current_date} - - EOF - - dpkg-buildpackage -d -nc -us -uc -rfakeroot -S -sa - - cd .. - - cat > ${WORKSPACE}/build-package.properties <<EOF - codename=jessie - source=${BUILD_URL}/artifact/${pkg_source}_${pkg_version}-0linaro1.dsc + cat > ${WORKSPACE}/odp-params <<EOF + source=${BUILD_URL}/artifact/$(echo *.dsc) repo=odp EOF + + mv *.dsc *.gz *.xz ${WORKSPACE}/ publishers: - archive: artifacts: '*.dsc, *.gz, *.xz' - trigger-parameterized-builds: - - project: build-package - property-file: build-package.properties + - project: build-all-packages + property-file: odp-params condition: SUCCESS - email: recipients: 'riku.voipio@linaro.org lng-ci@lists.linaro.org' |