]>
Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/log
Holger Levsen [Thu, 25 Jul 2013 11:23:27 +0000 (13:23 +0200)]
implement uploading, add comments
Holger Levsen [Wed, 24 Jul 2013 16:59:39 +0000 (18:59 +0200)]
cleanup maven repo before build. set BUILD_NUMBER in version correctly
Holger Levsen [Wed, 24 Jul 2013 16:46:17 +0000 (18:46 +0200)]
push back intregation branch if merge+build was successful
Holger Levsen [Wed, 24 Jul 2013 16:22:57 +0000 (18:22 +0200)]
correctly detect merge triggers
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
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
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
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
Holger Levsen [Wed, 24 Jul 2013 14:43:14 +0000 (16:43 +0200)]
create proper changelog entry
Holger Levsen [Wed, 24 Jul 2013 12:27:56 +0000 (14:27 +0200)]
add tag to successful master builds
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
Holger Levsen [Wed, 24 Jul 2013 11:50:39 +0000 (13:50 +0200)]
add check for valid distros and git_branches
Holger Levsen [Tue, 23 Jul 2013 17:02:38 +0000 (19:02 +0200)]
debian_wrap_maven_results.sh: write proper changelog
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
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
Marjan Schiller [Mon, 15 Jul 2013 14:16:41 +0000 (16:16 +0200)]
Added script to lock the testsystem.
Marjan Schiller [Thu, 4 Jul 2013 08:12:44 +0000 (10:12 +0200)]
Added switch for updating test state.
root sagunt [Mon, 1 Jul 2013 08:09:16 +0000 (08:09 +0000)]
DEVINF-383: add correct version number (with epoch) to cidb
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
Mathias Klette [Fri, 28 Jun 2013 09:23:27 +0000 (11:23 +0200)]
debian_build: DEVINF-383: epoch must be kept but needs quoting
Marjan Schiller [Thu, 27 Jun 2013 14:34:10 +0000 (16:34 +0200)]
Added more infos for the autotest result mail.
Mathias Klette [Wed, 26 Jun 2013 10:47:35 +0000 (12:47 +0200)]
debian_build: reset new_version upon auto-increment packages
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
Mathias Klette [Fri, 21 Jun 2013 15:32:48 +0000 (17:32 +0200)]
debian_build: show more details of your tag checks
Mathias Klette [Fri, 21 Jun 2013 14:04:52 +0000 (16:04 +0200)]
debian_build: issue warning in manual build instructions
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)
Mathias Klette [Fri, 21 Jun 2013 10:00:27 +0000 (12:00 +0200)]
add pbuilder and git-buildpackage configuration, incl. hooks to git
Mathias Klette [Thu, 20 Jun 2013 15:56:46 +0000 (17:56 +0200)]
debian_build: show environment, that gbp object creates, add FIXME
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
Mathias Klette [Wed, 19 Jun 2013 12:04:07 +0000 (14:04 +0200)]
Merge branch 'feature/multipledists' into develop
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
Mathias Klette [Mon, 17 Jun 2013 09:24:14 +0000 (11:24 +0200)]
debian_build: more logging when reset repository after build
Mathias Klette [Mon, 17 Jun 2013 08:56:54 +0000 (10:56 +0200)]
debian_build: take over changes from sagunt
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.
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.
Mathias Klette [Sat, 15 Jun 2013 23:52:22 +0000 (01:52 +0200)]
debian_build: better logging and sort static lists
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
Marjan Schiller [Fri, 14 Jun 2013 13:22:42 +0000 (15:22 +0200)]
Added mailto token.
Mathias Klette [Fri, 14 Jun 2013 11:16:15 +0000 (13:16 +0200)]
Merge branch 'master' into develop
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
Marjan Schiller [Thu, 13 Jun 2013 15:21:31 +0000 (17:21 +0200)]
Fixed test state script.
Marjan Schiller [Thu, 13 Jun 2013 13:51:50 +0000 (15:51 +0200)]
Changed execution for liveboot_set_test_state.sh
Marjan Schiller [Thu, 13 Jun 2013 13:46:29 +0000 (15:46 +0200)]
Added build number for reporting.
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.
Mathias Klette [Thu, 13 Jun 2013 09:42:49 +0000 (11:42 +0200)]
Merge branch 'master' into feature/multipledists
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
Marjan Schiller [Wed, 12 Jun 2013 15:20:17 +0000 (17:20 +0200)]
Added exit condition for autotest_result_mail.sh
Marjan Schiller [Wed, 12 Jun 2013 15:07:23 +0000 (17:07 +0200)]
Fix for autotest_result_mail.sh
Marjan Schiller [Wed, 12 Jun 2013 15:06:15 +0000 (17:06 +0200)]
Fix for 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
Marjan Schiller [Wed, 12 Jun 2013 14:57:51 +0000 (16:57 +0200)]
Fix for autotest script
Marjan Schiller [Wed, 12 Jun 2013 14:53:18 +0000 (16:53 +0200)]
Modified autotest result script
Marjan Schiller [Wed, 12 Jun 2013 14:42:04 +0000 (16:42 +0200)]
Added autotest mail script.
Marjan Schiller [Wed, 12 Jun 2013 13:40:44 +0000 (15:40 +0200)]
Added image link parameter
Marjan Schiller [Wed, 12 Jun 2013 13:15:20 +0000 (15:15 +0200)]
Changed to autotest link.
Marjan Schiller [Tue, 11 Jun 2013 11:43:36 +0000 (13:43 +0200)]
Added jenkins key.
Marjan Schiller [Tue, 11 Jun 2013 11:35:01 +0000 (13:35 +0200)]
Changed link creation.
Marjan Schiller [Tue, 11 Jun 2013 09:14:34 +0000 (11:14 +0200)]
Added script to set the liveboot without copy the image.
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".
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)
Mathias Klette [Thu, 6 Jun 2013 15:13:53 +0000 (17:13 +0200)]
debian_build: let cd command be part of copy&pasteble commands
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
root sagunt [Thu, 6 Jun 2013 10:54:41 +0000 (10:54 +0000)]
debian_build: log beautifying
root sagunt [Thu, 6 Jun 2013 10:54:15 +0000 (10:54 +0000)]
git_buildpackage: less logging
root sagunt [Thu, 6 Jun 2013 10:53:37 +0000 (10:53 +0000)]
common_code: use __file__ not __name__
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
Mathias Klette [Wed, 5 Jun 2013 20:48:24 +0000 (22:48 +0200)]
debian_build: shorten name for log messages
Mathias Klette [Wed, 5 Jun 2013 19:46:08 +0000 (21:46 +0200)]
common_code: shorten log_name if not explicitely given
Mathias Klette [Wed, 5 Jun 2013 18:21:08 +0000 (20:21 +0200)]
debian_build: just beatuifying the instructions
Mathias Klette [Wed, 5 Jun 2013 18:17:23 +0000 (20:17 +0200)]
debian_build: fix map
Mathias Klette [Wed, 5 Jun 2013 18:12:43 +0000 (20:12 +0200)]
debian_build: fix gbp object usage
Mathias Klette [Wed, 5 Jun 2013 18:10:32 +0000 (20:10 +0200)]
debian_build: let's skip trace for no-branch errors
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!
Mathias Klette [Wed, 5 Jun 2013 18:07:51 +0000 (20:07 +0200)]
debian_build: some reorganization
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
Mathias Klette [Wed, 5 Jun 2013 17:47:34 +0000 (19:47 +0200)]
debian_build: change help instructions to be copy&pasteble
Mathias Klette [Wed, 5 Jun 2013 17:34:23 +0000 (19:34 +0200)]
debian_build: fix typo
Mathias Klette [Wed, 5 Jun 2013 17:28:58 +0000 (19:28 +0200)]
debian_build: show help instructions for package build failures
Mathias Klette [Wed, 5 Jun 2013 17:28:17 +0000 (19:28 +0200)]
git_buildpackage: make env and command properties, usable by debian_build
Mathias Klette [Tue, 4 Jun 2013 11:12:26 +0000 (13:12 +0200)]
debian_build: less code for trigger handling
Mathias Klette [Tue, 4 Jun 2013 10:40:01 +0000 (12:40 +0200)]
debian_build: abort if rebase failed
Mathias Klette [Tue, 4 Jun 2013 10:36:22 +0000 (12:36 +0200)]
debian_build: add missing closing quotes
Mathias Klette [Tue, 4 Jun 2013 10:26:28 +0000 (12:26 +0200)]
debian_build: change forgotten variable name
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
Mathias Klette [Tue, 4 Jun 2013 10:07:01 +0000 (12:07 +0200)]
debian_build: include try/except for rebase operations
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.
Mathias Klette [Thu, 30 May 2013 14:10:33 +0000 (16:10 +0200)]
debian_build: also remove "do_push" variable - it's obsolete now
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
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
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).
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
Mathias Klette [Tue, 28 May 2013 16:07:57 +0000 (18:07 +0200)]
debian_build: do not merge if we are on integration already
Mathias Klette [Tue, 28 May 2013 16:01:44 +0000 (18:01 +0200)]
debian_build: change the way now to handle [merge] trigger
Mathias Klette [Tue, 28 May 2013 15:41:22 +0000 (17:41 +0200)]
debian_build: accept integration jobs for experimental branches
Mathias Klette [Tue, 28 May 2013 15:28:05 +0000 (17:28 +0200)]
debian_build: fix: correct format() usage
Mathias Klette [Tue, 28 May 2013 15:07:59 +0000 (17:07 +0200)]
debian_build: fix: correct usage for format()
Mathias Klette [Tue, 28 May 2013 15:01:51 +0000 (17:01 +0200)]
debian_build: fix: seperate format-method from string with .
Mathias Klette [Tue, 28 May 2013 14:40:22 +0000 (16:40 +0200)]
debian_build: extend gitrepo object with a dict of all remotes
this dict is then used to verify whether any package shall have auto-increment
enabled.
Tobias von der Krone [Tue, 28 May 2013 12:28:14 +0000 (14:28 +0200)]
* debian_build.py: pep8 compliance
* debian_build.py: use more STRING.format()
Mathias Klette [Tue, 28 May 2013 11:56:51 +0000 (13:56 +0200)]
debian_build: ENV['GIT_BRANCH'] may include origin as prefix, use local_branch instead