Can't disable SendMail in the gitblit server - gitblit

I am using GitBlit v1.2.1. For one of my projects the sendmail post-receive scripts is enabled somehow which I can't delete. It is not present in the Available or Selected box. It's under the post-receive scripts label with a tag called inherited.
How do I disable the sendmail for this project?

In your situation sendmail is inherited. Have you checked gitblit.properties for globally defined hooks?

Related

Is it possible to have ansible use a "remote" playbook for git-based continuous deployment?

I need to manage a few servers that run code that is currently being deployed there as a couple of git repositories. I would like to be able to store in the project's repository the parts (if not all) of the playbook that is relevant for the repository. For example, the list of package dependencies, virtualenv requirements, configuration templates. This will also allow those to change in a per branch/commit way. Meaning I can make sure that if I need to deploy a specific branch/commit, playbook that is correct for that commit is being used, if, say, the configuration template being used changed.
It seems like the only solution is to checkout the git repository locally. Is it possible in ansible to tell it to run a remote play book (from the git repository that is being checked out on the server)? I was thinking of having ansible run a ansible using a local connection on the remote host, I haven't tried it to see if this will actually work out.
How do people manage to use ansible for continuous deployment based on git without some mechanisms for running a remote playbook?
Take a look at ansible-pull.
It pulls the repo and executes playbook.

How to modify trac workflow from admin panel?

I've got a trac system v0.12.3 on remote host (mysvn.ru) and I haven't any access to the file trac.ini.
And I have to modify trac workflow from admin panel. May be with the help of some plugins.
I have trac_ini_editor plugin there, but I can't remove current options with it, only add new ones.
What plugins can modify trac workflow from admin panel?
Everything of your workflow changes can be done in trac.ini. Use TracIniAdminPanelPlugin to do that via web interface in case you only have remote access.
install AdvancedTicketWorkflowPlugin. Have advancedworkflow.*
= enabled in your [components] section of trac.ini.
Have workflow = ConfigurableTicketWorkflow,TicketWorkflowOpOwnerReporter in your [ticket] section of trac.ini.
Define your own workflow in a new trac.ini section [ticket-workflow]. The wiki page of AdvancedTicketWorkflowPlugin will explain that in detail.

jenkins - which plugin copy artifacts and can get as input user credentials to remote machine

Is it me or there isn't Jenkins plugin that simply can take your DLLs and copy it to a remote machine (UNC) with a predefined domain user password?
I think I miss something here, can't perform simple deployment to a machine that demands those credentials (ArtifactsDeployer etc.)
Thanks.
I think the CIFS Publisher plugin provides the feature you're looking for.
This plugin uploads build artifacts to repository sites using CIFS (SMB) protocol. First you should define CIFS shares in the Hudson global configuration page. After that you can refer to the shares using a select list in your project configuration.
Update Sorry, I just noticed that CIFS Publisher is deprecated in favor of the Publish over CIFS plugin, which is part of a common collection of publisher plugins for different protocols. In any case, the 'copy to remote CIFS share' feature is supported.

${CHANGES} does not work in the mail-ext plugin if jenkins job is driven by a bash script

I have setup a Jenkins job to build a project. I'm using email-ext plugin to send out build notifications with the intent of showing who did what and the path to the files changed. But unfortunately I'm not getting anything. I believe the reason why is that under "Source Code Management" I'm setting it to "None". My shell script that I'm using to drive the build is responsible for check-in out a copy of the code based on a CVS tag and run maven to do the build. In the ext-email i'm using the following syntax
${CHANGES_SINCE_LAST_SUCCESS, reverse=true, showPaths=true,
format="\n====\nChanges for Build # %n\n%c\n",
changesFormat="\n[%r] %d %a %m %p\n"}
Same thing with CHANGES: ${CHANGES, showPaths=true}
Is there a way of getting CHANGES and CHANGES_SINCE_LAST_SUCCESS to work if None option is used under Source Code Management?
Thanks for your help folks.
EmailExt plugin gets that info from Jenkins. As Jenkins has access to that info only via its SCM plugins the answer is "no", you can't do it without specifying the SCM option.
There are two things you can do:
(1) Do it by hand. Which with CVS, if I remember correctly, means having a working copy checked out anyway.
(2) Use SCM checkout/update option, but store the working copy on the side without using it in the build. You'll use twice as much disk-space, but nowadays disk-space is not a problem.
By the way, why are you using CVS? SVN, GIT, and Mercurial are all free.

Trigger Build in Jenkins By EMAIL

I am Currently using Jenkins in Windows 7 .
I have recently ran some build in jenkins . I am Able to run the build by SVN Post commit .
Now i have to triiger the build in Jenkins by email.
I am a windows user and as per my knowledge Sendmail and qmail agents have to be used to trigger build in jenkins by email.But these are for Unix .
Or is there any way i can install sendmail on my windows machine and then perform the trigger.
I am A windows user and so if any plugin is there to trigger builds in jenkins .Please let me know.
thank you
Use a simple free mail client (say, Mozilla Thunderbird) that would filter trigger e-mails in the appropriate folder. Monitor the file system location of that folder with FSTrigger Plugin.
You do not need to read the e-mails in the folder. What you do is this: for each build create an e-mail folder, create a filter that sorts e-mails by subject (subjects would be something like "Trigger [job-name]" ). And monitor modifications to those folders via the plugin. My Thunderbird folders, for example, are stored locally in C:/Users/[user_name]/AppData/Roaming/Thunderbird/Profiles/9nby4v95.default/Mail/Local Folders/ But you can configure Thunderbird to put them wherever you want.
I wrote the following Jenkins plugin about 3 months ago, to do just this:
https://wiki.jenkins-ci.org/display/JENKINS/poll-mailbox-trigger-plugin
https://wiki.jenkins-ci.org/display/JENKINS/Poll+Mailbox+Trigger+Plugin.
Check it out, read the documentation, let me know if this solves your problem.
All documentation is on gitHub now:
https://github.com/jenkinsci/poll-mailbox-trigger-plugin