You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by wo...@apache.org on 2017/05/23 03:57:52 UTC

couchdb-ci git commit: Support logfile uploader, sudo, lintian-ubuntu

Repository: couchdb-ci
Updated Branches:
  refs/heads/master f65d4a216 -> 364ff9f71


Support logfile uploader, sudo, lintian-ubuntu


Project: http://git-wip-us.apache.org/repos/asf/couchdb-ci/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ci/commit/364ff9f7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ci/tree/364ff9f7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ci/diff/364ff9f7

Branch: refs/heads/master
Commit: 364ff9f71fc170d11830dc4351aced91f809d373
Parents: f65d4a2
Author: Joan Touzet <wo...@apache.org>
Authored: Mon May 22 20:57:42 2017 -0700
Committer: Joan Touzet <wo...@apache.org>
Committed: Mon May 22 20:57:42 2017 -0700

----------------------------------------------------------------------
 ansible/roles/common/files/build-ci.sh           | 7 ++++++-
 ansible/roles/dependencies-centos/tasks/main.yml | 5 +++++
 ansible/roles/dependencies-debian/tasks/main.yml | 4 ++++
 jenkins/build.sh                                 | 2 +-
 4 files changed, 16 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/364ff9f7/ansible/roles/common/files/build-ci.sh
----------------------------------------------------------------------
diff --git a/ansible/roles/common/files/build-ci.sh b/ansible/roles/common/files/build-ci.sh
index 73b2b7d..955006b 100755
--- a/ansible/roles/common/files/build-ci.sh
+++ b/ansible/roles/common/files/build-ci.sh
@@ -35,4 +35,9 @@ cd /usr/src/couchdb
 tar -xf apache-couchdb-*.tar.gz
 cd apache-couchdb-*
 ./configure --with-curl
-make all check
+make all
+make check
+if [ $? -ne 0 ]; then
+  /usr/src/couchdb-checkout/build-aux/logfile-uploader.py
+  exit 1
+fi

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/364ff9f7/ansible/roles/dependencies-centos/tasks/main.yml
----------------------------------------------------------------------
diff --git a/ansible/roles/dependencies-centos/tasks/main.yml b/ansible/roles/dependencies-centos/tasks/main.yml
index 75f280f..9ea3393 100644
--- a/ansible/roles/dependencies-centos/tasks/main.yml
+++ b/ansible/roles/dependencies-centos/tasks/main.yml
@@ -15,6 +15,11 @@
 #   specific language governing permissions and limitations
 #   under the License.
 
+- name: upgrade all packages
+  yum:
+    name: '*'
+    state: latest
+
 - name: install auxiliary packages
   yum: name={{item}} state=present update_cache=yes
   with_items:

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/364ff9f7/ansible/roles/dependencies-debian/tasks/main.yml
----------------------------------------------------------------------
diff --git a/ansible/roles/dependencies-debian/tasks/main.yml b/ansible/roles/dependencies-debian/tasks/main.yml
index e0df565..deda609 100644
--- a/ansible/roles/dependencies-debian/tasks/main.yml
+++ b/ansible/roles/dependencies-debian/tasks/main.yml
@@ -20,6 +20,10 @@
   apt:
     update_cache: yes
 
+- name: Update all packages to the latest version
+  apt:
+    upgrade: dist
+
 - name: install auxiliary packages
   apt: name={{item}} state=present
   with_items:

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/364ff9f7/jenkins/build.sh
----------------------------------------------------------------------
diff --git a/jenkins/build.sh b/jenkins/build.sh
index 7f0b098..9b8fbc6 100755
--- a/jenkins/build.sh
+++ b/jenkins/build.sh
@@ -35,7 +35,7 @@ COUCHDB_CI_DIRECTORY=$( cd "$( dirname "$0" )/.." && pwd )
 cd "$COUCHDB_CI_DIRECTORY"
 
 DOCKER_IMAGE="couchdbdev/"
-DOCKER_OPTIONS="-e GIT_BRANCH=$GIT_BRANCH"
+DOCKER_OPTIONS="-e GIT_BRANCH -e JENKINS_URL -e BUILD_NUMBER -e BUILD_URL -e GIT_COMMIT -e GIT_URL -e COUCHAUTH"
 
 case $OS in
   centos-6*)