I'm in the process of setting up our builds on our new Jenkins CI server. One thing I've noticed, which I don't really like is that I can't see a difference in the changes.
Jenkins knows what files have been modified/deleted but I cannot see where I can see the diff of those files?
Jenkins does not calculate diffs itself, but instead lets you link to a tool that does, such as a diff on GitHub, or a ViewSVN instance etc.
For example, on Apache's Jenkins instance, you can see a "ViewSVN" link next to each change:
https://builds.apache.org/job/ActiveMQ/changes
It depends on your SCM and the tool you normally use for browsing diffs, but there should be a Jenkins plugin available for you.
If not, it should be trivial to write your own :)
Related
I'm working with jenkins for a while now and i'm thinking of building my own layout with jenkins .. I know there is a plugin that allows you to make your own css file.
But i was thinking further than that i'm more looking to change names of html attributes aswell and just use the Jenkins pages. Does anybody know where i can find the HTML pages of Jenkins to change it to my wanted code.
I already searched in the local folders of jenkins but couldn't find anything.
Kind regards
Dimitri
If your Jenkins application is deployed with Tomcat (for example), all css files are in the webapps/ROOT/css folder:
The js files are in the webapps/ROOT/scripts folder:
I hope it helps :)
Jenkins are shipped with a .war package. To change or customize jenkins html or css in order to change its looking, you need to change the source code or jenkins, that means you probably should be a jenkins developer. And a good thing for you is jenkins is a open source software, you can always get its code from Github
And I think this is what you are looking for, it includes the css/html of jenkins. Just a reminder, after you change the css/html of it, you should repackage it to the .war format before you can use it.
I have an issue in hudson post build tasks,
I am using two plugin FTP Upload(which uploads artifacts to FTP server) and Post Build Tasks(which execute my external batch file).
Now my issue is that Post Build Tasks executes before FTP Upload, that should not happened, I want to execute batch file after completion of FTP upload. See my attached screenshot for reference. Any help will be appreciated.
Can't you just use FTP to upload the file in your batch file? Then you have full control of the ordering?
Later versions of Jenkins (after April 2012) allow you to reorder post-build actions as you wish.
There is also the Flexible Publish Plugin that allows ordering the post-build actions through conditions.
Is there a reason you are sticking with Hudson?
Edit
From official sources:
JIRA issues indicating this problem
https://issues.jenkins-ci.org/browse/JENKINS-7408
https://issues.jenkins-ci.org/browse/JENKINS-9381
Resolution by Kohsuke Kawaguchi (creator of Hudson/Jenkins). Unfortunately, the resolution is in Jenkins.
https://groups.google.com/forum/?fromgroups#!topic/jenkinsci-dev/UQLvxQclyb4
So to answer your question directly: it is impossible in Hudson. Only thing you could try is workarounds with multiple jobs linked up. Let me know if this is something you would consider.
I want to download http://code.google.com/p/android-traditional-chinese-ime/source/checkout this.
But how to use tortoiseHg2.7 with Mercurial to download the google open source code?
It looks like that project is using a Subversion repository, so if you want to get the source as a Mercurial repo, you have a couple of choices, both of which use Mercurial extensions.
One is HgSubversion, which will allow you to work directly with the Subversion repository, in theory allowing you to push changes back to the project. It doesn't come with Mercurial (or TortoiseHg) so you'd have to download it separately. I've not used it so can't really comment on it.
The other option is Convert which does come with Mercurial - you just need to enable it, which in TortoiseHg you can do by selecting user-config and checking the "Convert" box in the Extensions section. Again, I've not used it to work with a Subversion repo, so can't do much more than point you at the extension page, which has some useful information.
Alternatively you could use Subversion itself, which is more likely to work with the repository without issue. I'd recommend getting TortoiseSVN - it should do just what you want.
I searched a little and did not find anything interesting. I'm looking for a guide on how to install Mercurial server with a nice WebUI.
CollabNet Subversion under Windows to the Edge and I'm happy, but a lot of people write and say that Mercurial is better, so I want to evaluate this myself.
I am looking for a tutorial, or for any WebUI for Mercurial.
I'm not entirely sure how feature-rich you want the Web UI to be, but a good place to start would be with hgweb.
The simplest way to get something up and running is with the built-in web server from the 'hg serve' command:
https://www.mercurial-scm.org/wiki/hgserve
If you want something a little more involved for multiple repositories being served through a web server like httpd, here are some initial instructions to take a look at:
https://www.mercurial-scm.org/wiki/HgWebDirStepByStep
If you need something more like a local Github, maybe take a look at RhodeCode (disclaimer, never used personally)
I just saw a web app for Mercurial repository administration linked on another question : phpHgAdmin.
Apparently, you can manage your repositories and create new users, but no statistics.
I never tested it, but you maybe want to give it a shot.
Phabricator's Diffusion supports Mercurial: https://www.phacility.com/phabricator/diffusion/
Our group uses Visual Sourcesafe as a file repository for all of our "content" (HTML, CSS, Javascript, JSP). None of it requires building or compilation but we would like to automate the copying of it to a Unix dev server upon check-in.
I have used Cruisecontrol.NET in the past for CI at other companies but it was for .NET. What would be the easiest way to achieve our current requirements? Would using CruiseControl.NET be overkill or even a good idea? Thanks in advance.
-Sean
This sounds like overkill for a CI tool.
Visual SourceSafe and other version control systems should have hooks allowing you to automate a simple file copy operation.
From http://msdn.microsoft.com/en-us/library/aa302175.aspx
Use events, such as OnBeforeCheckout
or OnAfterCheckIn to automate your
process.
Whether this makes sense for you depends on a couple of factors. If you are talking about a large, geographically team with only change based deployment then yes, those are valid concerns. If you only have a few local developers and you deploy the world on each copy operation, then no, I don't think you'd need a CI tool.
This is not to say other reasons may influence you to use a CI tool, testing for instance. Your problem might also be solved by running a polling script on the Unix box to sync the source control with the dev server. I guess the main point is, if you are deploying all non-compiled software, why do you have a separate source control and dev server? You're deployment can be done by a source control tool. If it is only for backup, there are plenty of existing solutions for that problem.
Sean,
Our AnthillPro customers do this kind of thing pretty frequently (and we even do it internally when new content is committed for our website). It's a really good idea, totally appropriate for a CI tool, and you can get quality feedback if you wire in some automated functional / regression tests.
Eric
You could try using Hudson http://hudson-ci.org/
It is easy to configure, is completely GUI (unless you want to go into the details), and has a plugin for Visual Sourcecafe http://wiki.hudson-ci.org/display/HUDSON/Visual+SourceSafe+Plugin
While CI would probably be overkill for what you are trying to do, since Hudson is all GUI and easy to use, you would not spend a lot of time just trying to configure it.
Hudson also has plugins for copying stuff over to other systems, and so it would be easy to deploy your content to another system.
If you are worried about the process, get in touch with a hosted CI provider, such as MikeCI, a quick message on their support board will get you the answer. I don't see why triggering a "build" can't be replaced with copy and paste!