]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/log
profitbricks/jenkins-build-scripts.git
11 years agorefactoring
Holger Levsen [Thu, 25 Jul 2013 15:04:41 +0000 (17:04 +0200)]
refactoring

11 years agoadd check for valid SUITE and let it default to squeeze
Holger Levsen [Thu, 25 Jul 2013 14:41:02 +0000 (16:41 +0200)]
add check for valid SUITE and let it default to squeeze

11 years agofixup: derive suite from jenkins job. cleanup + restructure code
Holger Levsen [Thu, 25 Jul 2013 14:18:09 +0000 (16:18 +0200)]
fixup: derive suite from jenkins job. cleanup + restructure code

11 years agoderive suite from jenkins job. cleanup + restructure code
Holger Levsen [Thu, 25 Jul 2013 13:57:00 +0000 (15:57 +0200)]
derive suite from jenkins job. cleanup + restructure code

11 years agoimprove output
Holger Levsen [Thu, 25 Jul 2013 13:05:15 +0000 (15:05 +0200)]
improve output

11 years agoless cleaning is enough
Holger Levsen [Thu, 25 Jul 2013 12:49:28 +0000 (14:49 +0200)]
less cleaning is enough

11 years agofix upload, add cleanup after upload, add some more comments
Holger Levsen [Thu, 25 Jul 2013 12:41:25 +0000 (14:41 +0200)]
fix upload, add cleanup after upload, add some more comments

11 years agoimplement uploading, add comments
Holger Levsen [Thu, 25 Jul 2013 11:23:27 +0000 (13:23 +0200)]
implement uploading, add comments

11 years agocleanup maven repo before build. set BUILD_NUMBER in version correctly
Holger Levsen [Wed, 24 Jul 2013 16:59:39 +0000 (18:59 +0200)]
cleanup maven repo before build. set BUILD_NUMBER in version correctly

11 years agopush back intregation branch if merge+build was successful
Holger Levsen [Wed, 24 Jul 2013 16:46:17 +0000 (18:46 +0200)]
push back intregation branch if merge+build was successful

11 years agocorrectly detect merge triggers
Holger Levsen [Wed, 24 Jul 2013 16:22:57 +0000 (18:22 +0200)]
correctly detect merge triggers

11 years agorename script and add a pre-build script, to merge feature branches into integration
Holger Levsen [Wed, 24 Jul 2013 16:00:52 +0000 (18:00 +0200)]
rename script and add a pre-build script, to merge feature branches into integration

11 years agofixup: create debian/changelog correctly, handle master branch differently. create...
Holger Levsen [Wed, 24 Jul 2013 15:45:31 +0000 (17:45 +0200)]
fixup: create debian/changelog correctly, handle master branch differently. create proper debianized version of SNAPSHOTs

11 years agofixup: create debian/changelog correctly, handle master branch differently. create...
Holger Levsen [Wed, 24 Jul 2013 15:34:02 +0000 (17:34 +0200)]
fixup: create debian/changelog correctly, handle master branch differently. create proper debianized version of SNAPSHOTs

11 years agocreate debian/changelog correctly, handle master branch differently. create proper...
Holger Levsen [Wed, 24 Jul 2013 15:27:00 +0000 (17:27 +0200)]
create debian/changelog correctly, handle master branch differently. create proper debianized version of SNAPSHOTs

11 years agocreate proper changelog entry
Holger Levsen [Wed, 24 Jul 2013 14:43:14 +0000 (16:43 +0200)]
create proper changelog entry

11 years agoadd tag to successful master builds
Holger Levsen [Wed, 24 Jul 2013 12:27:56 +0000 (14:27 +0200)]
add tag to successful master builds

11 years agocommit debian/changelog if applicable and set correct distro for feature branches
Holger Levsen [Wed, 24 Jul 2013 12:21:21 +0000 (14:21 +0200)]
commit debian/changelog if applicable and set correct distro for feature branches

11 years agoadd check for valid distros and git_branches
Holger Levsen [Wed, 24 Jul 2013 11:50:39 +0000 (13:50 +0200)]
add check for valid distros and git_branches

11 years agodebian_wrap_maven_results.sh: write proper changelog
Holger Levsen [Tue, 23 Jul 2013 17:02:38 +0000 (19:02 +0200)]
debian_wrap_maven_results.sh: write proper changelog

11 years agodebian_wrap_maven_results.sh: calculate version using maven. only require one param...
Holger Levsen [Tue, 23 Jul 2013 13:13:55 +0000 (15:13 +0200)]
debian_wrap_maven_results.sh: calculate version using maven. only require one param, not three

11 years agoadd debian_wrap_maven_results.sh as taken from Szymon from vdc-bundles.git, branch...
Holger Levsen [Tue, 23 Jul 2013 13:05:24 +0000 (15:05 +0200)]
add debian_wrap_maven_results.sh as taken from Szymon from vdc-bundles.git, branch feature/debian

11 years agoAdded script to lock the testsystem.
Marjan Schiller [Mon, 15 Jul 2013 14:16:41 +0000 (16:16 +0200)]
Added script to lock the testsystem.

11 years agoAdded switch for updating test state.
Marjan Schiller [Thu, 4 Jul 2013 08:12:44 +0000 (10:12 +0200)]
Added switch for updating test state.

11 years agoDEVINF-383: add correct version number (with epoch) to cidb
root sagunt [Mon, 1 Jul 2013 08:09:16 +0000 (08:09 +0000)]
DEVINF-383: add correct version number (with epoch) to cidb

11 years agoMerge branch 'develop' of ssh://git/srv/git/so/jenkins_build_script into develop
Mathias Klette [Fri, 28 Jun 2013 09:24:13 +0000 (11:24 +0200)]
Merge branch 'develop' of ssh://git/srv/git/so/jenkins_build_script into develop

11 years agodebian_build: DEVINF-383: epoch must be kept but needs quoting
Mathias Klette [Fri, 28 Jun 2013 09:23:27 +0000 (11:23 +0200)]
debian_build: DEVINF-383: epoch must be kept but needs quoting

11 years agoAdded more infos for the autotest result mail.
Marjan Schiller [Thu, 27 Jun 2013 14:34:10 +0000 (16:34 +0200)]
Added more infos for the autotest result mail.

11 years agodebian_build: reset new_version upon auto-increment packages
Mathias Klette [Wed, 26 Jun 2013 10:47:35 +0000 (12:47 +0200)]
debian_build: reset new_version upon auto-increment packages

11 years agodebian_buid.py: reset new_tag when build with autoincrement
Mathias Klette [Mon, 24 Jun 2013 11:42:33 +0000 (13:42 +0200)]
debian_buid.py: reset new_tag when build with autoincrement

let's assume this:
- user changes files but not version in changelog and commits
- call_jenkins accepts and triggers build
- debian_build.py figures out version / tag to create from changelog
- debian_build.py will incrase version number and pushes new HEAD back to origin
- call_jenkins will not push trigger another jenkins call
- debian_build.py will build with the new version
- tagging must happen when build was successful BUT with the new version number
  instead of the one gathered in the very first beginning of the script

11 years agodebian_build: show more details of your tag checks
Mathias Klette [Fri, 21 Jun 2013 15:32:48 +0000 (17:32 +0200)]
debian_build: show more details of your tag checks

11 years agodebian_build: issue warning in manual build instructions
Mathias Klette [Fri, 21 Jun 2013 14:04:52 +0000 (16:04 +0200)]
debian_build: issue warning in manual build instructions

11 years agomove GIT_BRANCH_NAME definitions from common_code to debian_build (again)
Mathias Klette [Fri, 21 Jun 2013 11:33:31 +0000 (13:33 +0200)]
move GIT_BRANCH_NAME definitions from common_code to debian_build (again)

11 years agoadd pbuilder and git-buildpackage configuration, incl. hooks to git
Mathias Klette [Fri, 21 Jun 2013 10:00:27 +0000 (12:00 +0200)]
add pbuilder and git-buildpackage configuration, incl. hooks to git

11 years agodebian_build: show environment, that gbp object creates, add FIXME
Mathias Klette [Thu, 20 Jun 2013 15:56:46 +0000 (17:56 +0200)]
debian_build: show environment, that gbp object creates, add FIXME

11 years agodebian_build: wheezy based git lib does not allow to use undefined attributes
Mathias Klette [Thu, 20 Jun 2013 13:03:14 +0000 (15:03 +0200)]
debian_build: wheezy based git lib does not allow to use undefined attributes

11 years agoMerge branch 'feature/multipledists' into develop
Mathias Klette [Wed, 19 Jun 2013 12:04:07 +0000 (14:04 +0200)]
Merge branch 'feature/multipledists' into develop

11 years agodebian_build: ensure instructions are shown no matter if build was successful
Mathias Klette [Mon, 17 Jun 2013 10:53:50 +0000 (12:53 +0200)]
debian_build: ensure instructions are shown no matter if build was successful

11 years agodebian_build: more logging when reset repository after build
Mathias Klette [Mon, 17 Jun 2013 09:24:14 +0000 (11:24 +0200)]
debian_build: more logging when reset repository after build

11 years agodebian_build: take over changes from sagunt
Mathias Klette [Mon, 17 Jun 2013 08:56:54 +0000 (10:56 +0200)]
debian_build: take over changes from sagunt

11 years agodebian_build: when rebase failed use some more actions to recover
Mathias Klette [Sun, 16 Jun 2013 01:49:01 +0000 (03:49 +0200)]
debian_build: when rebase failed use some more actions to recover

-------- Original-Nachricht --------
Betreff: Jenkins Build dev_vdc-bundle - failed rebase not cleaned up correctly
Datum:   Fri, 14 Jun 2013 20:33:44 +0200
Von:   Ramona Koch <ramona.koch@profitbricks.com>
Antwort an:  ramona.koch@profitbricks.com
An:   dcops <dcops@profitbricks.com>, Core <core@profitbricks.com>, Mehrdad Arifi <mehrdad.arifi@profitbricks.com>

Hi DC Ops, Hi Core, Hi Mehrdad

I just noticed, that the 'workspace' is not correctly cleaned up, if the rebase had failed.
All builds trying to merge afterwards will also fail during rebase with:

It seems that I cannot create a rebase-apply directory, and I wonder if you are in the middle of patch application or another
rebase.  If that is not the case, please
    rm -fr /var/lib/jenkins/jobs/dev_vdc-bundles/workspace/.git/rebase-apply
and run me again.  I am stopping in case you still have something valuable there.

@DCOps:
I checked your debian_build.py at:

 337             try:
 338                 src_branch = local_branch        # save the original branch
 339                 dst_branch = 'integration'       # define the new branch
 340                 local_branch = dst_branch        # reset env for
git-buildpackage
 341                 gitrepo.git.rebase('origin/' + dst_branch)
 342                 gitrepo.git.checkout(dst_branch)
 343                 gitrepo.git.pull()
 344                 gitrepo.git.merge(src_branch)
 345                 logger.info('Rebase and merge from branch "{src_branch}"
completed. Now in "{dst_branch}".'.format(
 346                     dst_branch=dst_branch,
 347                     src_branch=src_branch,
 348                 ))
 349             except Exception as error:
 350                 logger.error('Rebase has failed!', exc_info=error)
 351                 gitrepo.git.reset('--hard',src_branch)
 352                 exit_error()

and I assume that 'git reset --hard' is not enough. Probably a 'git rebase --abort' needs to be done before. If this does not work - simply removing the mentioned file will work.
Could you check, if my assumption is correct and fix it, please.

11 years agodebian_build: try to get some more output when autoincrementing (doesn't work ..)
Mathias Klette [Sun, 16 Jun 2013 01:35:05 +0000 (03:35 +0200)]
debian_build: try to get some more output when autoincrementing (doesn't work ..)

.. for successfully operations. only helps in case of error. and this might
change with the new version avl. in wheezy. haven't tested this yet.

11 years agodebian_build: better logging and sort static lists
Mathias Klette [Sat, 15 Jun 2013 23:52:22 +0000 (01:52 +0200)]
debian_build: better logging and sort static lists

11 years agoMerge branch 'develop' of git+ssh://git/srv/git/so/jenkins_build_script into develop
Marjan Schiller [Fri, 14 Jun 2013 13:23:41 +0000 (15:23 +0200)]
Merge branch 'develop' of git+ssh://git/srv/git/so/jenkins_build_script into develop

11 years agoAdded mailto token.
Marjan Schiller [Fri, 14 Jun 2013 13:22:42 +0000 (15:22 +0200)]
Added mailto token.

11 years agoMerge branch 'master' into develop
Mathias Klette [Fri, 14 Jun 2013 11:16:15 +0000 (13:16 +0200)]
Merge branch 'master' into develop

11 years agoMerge branch 'feature/storage-feature-branch' of ssh://git/srv/git/so/jenkins_build_s...
Mathias Klette [Fri, 14 Jun 2013 11:15:42 +0000 (13:15 +0200)]
Merge branch 'feature/storage-feature-branch' of ssh://git/srv/git/so/jenkins_build_script into feature/storage-feature-branch

Conflicts:
extract_storage_kernel+modules.sh

11 years agoFixed test state script.
Marjan Schiller [Thu, 13 Jun 2013 15:21:31 +0000 (17:21 +0200)]
Fixed test state script.

11 years agoChanged execution for liveboot_set_test_state.sh
Marjan Schiller [Thu, 13 Jun 2013 13:51:50 +0000 (15:51 +0200)]
Changed execution for liveboot_set_test_state.sh

11 years agoAdded build number for reporting.
Marjan Schiller [Thu, 13 Jun 2013 13:46:29 +0000 (15:46 +0200)]
Added build number for reporting.

11 years agoAdded script for setting the test state in the liveboot web interface.
Marjan Schiller [Thu, 13 Jun 2013 13:13:18 +0000 (15:13 +0200)]
Added script for setting the test state in the liveboot web interface.

11 years agoMerge branch 'master' into feature/multipledists
Mathias Klette [Thu, 13 Jun 2013 09:42:49 +0000 (11:42 +0200)]
Merge branch 'master' into feature/multipledists

11 years agodebian_build: compatibility for 'remotes' objects in git library between squeeze...
Mathias Klette [Thu, 13 Jun 2013 09:40:42 +0000 (11:40 +0200)]
debian_build: compatibility for 'remotes' objects in git library between squeeze and wheezy

thanks to tobias, see https://redmine.pb.local/issues/356

11 years agoAdded exit condition for autotest_result_mail.sh
Marjan Schiller [Wed, 12 Jun 2013 15:20:17 +0000 (17:20 +0200)]
Added exit condition for autotest_result_mail.sh

11 years agoFix for autotest_result_mail.sh
Marjan Schiller [Wed, 12 Jun 2013 15:07:23 +0000 (17:07 +0200)]
Fix for autotest_result_mail.sh

11 years agoFix for autotest_result_mail.sh
Marjan Schiller [Wed, 12 Jun 2013 15:06:15 +0000 (17:06 +0200)]
Fix for autotest_result_mail.sh

11 years agoRemoved debug code from autotest_result_mail.sh
Marjan Schiller [Wed, 12 Jun 2013 15:00:20 +0000 (17:00 +0200)]
Removed debug code from autotest_result_mail.sh

11 years agoFix for autotest script
Marjan Schiller [Wed, 12 Jun 2013 14:57:51 +0000 (16:57 +0200)]
Fix for autotest script

11 years agoModified autotest result script
Marjan Schiller [Wed, 12 Jun 2013 14:53:18 +0000 (16:53 +0200)]
Modified autotest result script

11 years agoAdded autotest mail script.
Marjan Schiller [Wed, 12 Jun 2013 14:42:04 +0000 (16:42 +0200)]
Added autotest mail script.

11 years agoAdded image link parameter
Marjan Schiller [Wed, 12 Jun 2013 13:40:44 +0000 (15:40 +0200)]
Added image link parameter

11 years agoChanged to autotest link.
Marjan Schiller [Wed, 12 Jun 2013 13:15:20 +0000 (15:15 +0200)]
Changed to autotest link.

11 years agoAdded jenkins key.
Marjan Schiller [Tue, 11 Jun 2013 11:43:36 +0000 (13:43 +0200)]
Added jenkins key.

11 years agoChanged link creation.
Marjan Schiller [Tue, 11 Jun 2013 11:35:01 +0000 (13:35 +0200)]
Changed link creation.

11 years agoAdded script to set the liveboot without copy the image.
Marjan Schiller [Tue, 11 Jun 2013 09:14:34 +0000 (11:14 +0200)]
Added script to set the liveboot without copy the image.

11 years agoextract_storage: fix the default TARGET_NAME for feature branches
Dongsu Park [Mon, 10 Jun 2013 10:04:52 +0000 (12:04 +0200)]
extract_storage: fix the default TARGET_NAME for feature branches

Fix a small bug. $TARGET_NAME should be set to "experimental"
by default, instead of "master".

11 years agodebian_build: show help instructions for chroot debugging on either case (success...
Mathias Klette [Fri, 7 Jun 2013 10:00:27 +0000 (12:00 +0200)]
debian_build: show help instructions for chroot debugging on either case (success AND error)

11 years agodebian_build: let cd command be part of copy&pasteble commands
Mathias Klette [Thu, 6 Jun 2013 15:13:53 +0000 (17:13 +0200)]
debian_build: let cd command be part of copy&pasteble commands

11 years agoextract_storage: fix apt sources for master and develop
Sebastian Riemer [Thu, 6 Jun 2013 14:35:45 +0000 (16:35 +0200)]
extract_storage: fix apt sources for master and develop

The master build job 'extract-storage-kernel-and-modules' extracts
the wrong sources. It takes the latest develop kernel as the apt
sources for 'production-proposed-updates' are missing.

So add the missing sources before installing the kernel and the
out-of-tree modules.

Fixes: DEVINF-379
11 years agodebian_build: log beautifying
root sagunt [Thu, 6 Jun 2013 10:54:41 +0000 (10:54 +0000)]
debian_build: log beautifying

11 years agogit_buildpackage: less logging
root sagunt [Thu, 6 Jun 2013 10:54:15 +0000 (10:54 +0000)]
git_buildpackage: less logging

11 years agocommon_code: use __file__ not __name__
root sagunt [Thu, 6 Jun 2013 10:53:37 +0000 (10:53 +0000)]
common_code: use __file__ not __name__

11 years agoMerge branch 'feature/multipledists' of http://git/so/jenkins_build_script into featu...
root sagunt [Wed, 5 Jun 2013 20:49:07 +0000 (20:49 +0000)]
Merge branch 'feature/multipledists' of http://git/so/jenkins_build_script into feature/multipledists

11 years agodebian_build: shorten name for log messages
Mathias Klette [Wed, 5 Jun 2013 20:48:24 +0000 (22:48 +0200)]
debian_build: shorten name for log messages

11 years agocommon_code: shorten log_name if not explicitely given
Mathias Klette [Wed, 5 Jun 2013 19:46:08 +0000 (21:46 +0200)]
common_code: shorten log_name if not explicitely given

11 years agodebian_build: just beatuifying the instructions
Mathias Klette [Wed, 5 Jun 2013 18:21:08 +0000 (20:21 +0200)]
debian_build: just beatuifying the instructions

11 years agodebian_build: fix map
Mathias Klette [Wed, 5 Jun 2013 18:17:23 +0000 (20:17 +0200)]
debian_build: fix map

11 years agodebian_build: fix gbp object usage
Mathias Klette [Wed, 5 Jun 2013 18:12:43 +0000 (20:12 +0200)]
debian_build: fix gbp object usage

11 years agodebian_build: let's skip trace for no-branch errors
Mathias Klette [Wed, 5 Jun 2013 18:10:32 +0000 (20:10 +0200)]
debian_build: let's skip trace for no-branch errors

11 years agodebian_build: PLEASE also exit with error if branch was not found!
Mathias Klette [Wed, 5 Jun 2013 18:08:55 +0000 (20:08 +0200)]
debian_build: PLEASE also exit with error if branch was not found!

11 years agodebian_build: some reorganization
Mathias Klette [Wed, 5 Jun 2013 18:07:51 +0000 (20:07 +0200)]
debian_build: some reorganization

11 years agodebian_build: add 'name' to local repo-obj, exit if branch is not found
Mathias Klette [Wed, 5 Jun 2013 17:59:54 +0000 (19:59 +0200)]
debian_build: add 'name' to local repo-obj, exit if branch is not found

11 years agodebian_build: change help instructions to be copy&pasteble
Mathias Klette [Wed, 5 Jun 2013 17:47:34 +0000 (19:47 +0200)]
debian_build: change help instructions to be copy&pasteble

11 years agodebian_build: fix typo
Mathias Klette [Wed, 5 Jun 2013 17:34:23 +0000 (19:34 +0200)]
debian_build: fix typo

11 years agodebian_build: show help instructions for package build failures
Mathias Klette [Wed, 5 Jun 2013 17:28:58 +0000 (19:28 +0200)]
debian_build: show help instructions for package build failures

11 years agogit_buildpackage: make env and command properties, usable by debian_build
Mathias Klette [Wed, 5 Jun 2013 17:28:17 +0000 (19:28 +0200)]
git_buildpackage: make env and command properties, usable by debian_build

11 years agodebian_build: less code for trigger handling
Mathias Klette [Tue, 4 Jun 2013 11:12:26 +0000 (13:12 +0200)]
debian_build: less code for trigger handling

11 years agodebian_build: abort if rebase failed
Mathias Klette [Tue, 4 Jun 2013 10:40:01 +0000 (12:40 +0200)]
debian_build: abort if rebase failed

11 years agodebian_build: add missing closing quotes
Mathias Klette [Tue, 4 Jun 2013 10:36:22 +0000 (12:36 +0200)]
debian_build: add missing closing quotes

11 years agodebian_build: change forgotten variable name
Mathias Klette [Tue, 4 Jun 2013 10:26:28 +0000 (12:26 +0200)]
debian_build: change forgotten variable name

11 years agodebian_build: os.environ object does not allow assignment of a list
Mathias Klette [Tue, 4 Jun 2013 10:14:51 +0000 (12:14 +0200)]
debian_build: os.environ object does not allow assignment of a list

11 years agodebian_build: include try/except for rebase operations
Mathias Klette [Tue, 4 Jun 2013 10:07:01 +0000 (12:07 +0200)]
debian_build: include try/except for rebase operations

11 years agodebian_build: use Jenkins parameter BUILD_TRIGGERS instead of commit message parsing
Mathias Klette [Tue, 4 Jun 2013 10:01:42 +0000 (12:01 +0200)]
debian_build: use Jenkins parameter BUILD_TRIGGERS instead of commit message parsing

commit message is still parsed for those triggers, but this happens through
call_jenkins instead. this way jobs can use triggers no matter if recent commit
message contains the requested trigger.

11 years agodebian_build: also remove "do_push" variable - it's obsolete now
Mathias Klette [Thu, 30 May 2013 14:10:33 +0000 (16:10 +0200)]
debian_build: also remove "do_push" variable - it's obsolete now

11 years agodebian_build: new fixes for new branching model, fix rebasing
Mathias Klette [Thu, 30 May 2013 12:33:49 +0000 (14:33 +0200)]
debian_build: new fixes for new branching model, fix rebasing

also pushing the rebased/merged branch should only be done if all tests have
passed! hence, we shouldn't push the merged branch already in debian_build.
instead, we will try to find solutions to make jenkins push the branch using
post-build actions

11 years agodebian_build: push the merged feature/-branch to integration upon successful build
Mathias Klette [Wed, 29 May 2013 13:46:19 +0000 (15:46 +0200)]
debian_build: push the merged feature/-branch to integration upon successful build

11 years agocommon_code: reset GIT_BRANCH if it differs from GIT_BRANCH_NAME
Mathias Klette [Wed, 29 May 2013 12:11:23 +0000 (14:11 +0200)]
common_code: reset GIT_BRANCH if it differs from GIT_BRANCH_NAME

Most jobs use GIT_BRANCH_NAME parameter to let user choose the branch to build
the package from while GIT_BRANCH contains the sha commit id of HEAD of most
recent commit (unconfirmed yet).

11 years agocommon_code: GIT_BRANCH_NAME = GIT_BRANCH only if not already given
Mathias Klette [Wed, 29 May 2013 12:07:56 +0000 (14:07 +0200)]
common_code: GIT_BRANCH_NAME = GIT_BRANCH only if not already given

11 years agodebian_build: do not merge if we are on integration already
Mathias Klette [Tue, 28 May 2013 16:07:57 +0000 (18:07 +0200)]
debian_build: do not merge if we are on integration already

11 years agodebian_build: change the way now to handle [merge] trigger
Mathias Klette [Tue, 28 May 2013 16:01:44 +0000 (18:01 +0200)]
debian_build: change the way now to handle [merge] trigger