Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA4A9200C68 for ; Wed, 3 May 2017 14:08:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E8F2C160BB5; Wed, 3 May 2017 12:08:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3A250160BAA for ; Wed, 3 May 2017 14:08:12 +0200 (CEST) Received: (qmail 54330 invoked by uid 500); 3 May 2017 12:08:11 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 54319 invoked by uid 99); 3 May 2017 12:08:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 12:08:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DADF9191FAD for ; Wed, 3 May 2017 12:08:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id W4ruKZV5k-1l for ; Wed, 3 May 2017 12:08:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C30E75FE00 for ; Wed, 3 May 2017 12:08:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CB37CE0D63 for ; Wed, 3 May 2017 12:08:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 342FF21DF1 for ; Wed, 3 May 2017 12:08:04 +0000 (UTC) Date: Wed, 3 May 2017 12:08:04 +0000 (UTC) From: "Stefan Podkowinski (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-13487) Generate snapshot packages through Jenkins MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 03 May 2017 12:08:13 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Podkowinski updated CASSANDRA-13487: ------------------------------------------- Fix Version/s: 4.x 3.11.x 3.0.x 2.2.x Status: Patch Available (was: Open) I've now added some script-foo to detect the target version for the build, based on the branch or tag that is used to trigger the build. Building tags will now create packages with regular release versions. Building branches will create snapshot releases, which should work fine when triggered periodically by Jenkins. > Generate snapshot packages through Jenkins > ------------------------------------------ > > Key: CASSANDRA-13487 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13487 > Project: Cassandra > Issue Type: New Feature > Components: Build > Reporter: Stefan Podkowinski > Assignee: Stefan Podkowinski > Fix For: 2.2.x, 3.0.x, 3.11.x, 4.x > > Attachments: 13487.patch > > > Creating packages through the new docker based build scripts now work pretty much independent from any local environment, as long as docker is available, e.g. also on Jenkins. Having daily snapshots available for deb/rpm artifacts would enable us to provide users dev-releases for testing and validating fixes. > I've created a branch for the Jenkins integration, which can be found here: > https://github.com/spodkowinski/cassandra-builds/tree/jenkins_debrpm > The major issue I'm currently struggling with is the handling of the actual version value. We need to find a way to have Jenkins recognize the correct version for the branch being build. Also we must create $version-SNAPSHOT packages, as builds are not official releases and we should not have any packages for versions that aren't published yet. > The Debian build process will use the version defined in {{debian/changelog}}. Adding a -SNAPSHOT suffix for the version should work, but this has to be handled manually and care must be taken to change the value back again for a regular release. > With RPMs, the version must be set for {{cassandra.spec}}, which is currently done by running {noformat}rpmbuild --define="version ${CASSANDRA_VERSION}" -ba ./redhat/cassandra.spec{noformat}, where the version is passed as a parameter by {{build-scripts/cassandra-rpm-packaging.sh}}. Maybe we could grep the version from build.xml here? > So I wonder if there any way we can keep track of the version in a single place, such as build.xml or CHANGES. Afterwards we also need to enable a SNAPSHOT mode, maybe by setting a Jenkins environment value. > /cc [~mshuler] -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org