Re: A way to get rid of useless local workspace?

2014-03-26 Thread Chris Marks
I think a better answer to this is that this is not a typical use case for
people or teams using Jenkins.  Although I can see some value to something
like this, it may not have enough support in general to change the behavior
of Jenkins.  I had a situation in the past for a similar need.  At that
time, the code base was sufficiently small that the checkout was fast
enough for my needs.  It sounds like another tool or process may suit your
needs better if this is not the case.

Hope this helps,
topher

Thanks,
Chris

topher1...@gmail.com


On Wed, Mar 26, 2014 at 12:44 PM, Les Mikesell wrote:

> On Wed, Mar 26, 2014 at 1:31 PM, Peter Savage 
> wrote:
> > "It seems odd to care if the contents of a repository changed if you
> > aren't going to use them in the job that is triggered."
> >
> > That is so loaded with inherent assumptions I don't even know how to
> touch
> > it.
>
> Yes, and it matches the assumptions built into jenkins.  That is, it
> works as designed for a lot of people.  I think it is a reasonable
> assumption that if you trigger a job on a repository change that you
> are planning to use the contents.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Recover disk space in Jenkins

2014-03-05 Thread Chris Marks
You might also take a look at the job dsl plugin to help you manage jobs.

Thanks,
topher
On Mar 5, 2014 5:15 PM, "Les Mikesell"  wrote:

> On Wed, Mar 5, 2014 at 5:56 PM, Kerry Cox  wrote:
> > Les,
> > Thanks much.  I have been going through and cleaning up the improperly
> > formed projects and adding that.
>
> Once you get a few projects working the way you want, you can start
> creating others as copies of something similar so you only have to
> make a few changes for each new job configuration.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Jenkins - need some help

2013-08-17 Thread Chris Marks
Hi boy8bitx,

It sounds like it is part of your assignment to figure these items out, so
I will not answer your questions directly.  However, what I will say is
that most of these questions can be answered by playing with your Jenkins
installation and understanding Maven a bit better.
Jobs are cheap, so if you're not sure what the difference between a
freestyle job and a Maven 2/3 job, set up a job of each type and run builds
for each.  Read the inline help for each item in the configuration page.
 Make sure you run at least a couple builds under each job type.
For Maven functions related to your questions, you should probably make
sure you read and understand
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html.
 Try a few of the lifecycle commands to make sure you know what they do,
then try them in Jenkins to see if Jenkins can help you.

Hope this helps and good luck.  It's good to hear your teacher is exposing
you to these kinds of tools and technologies, it took me a while after
school to "discover" these and get them in place.

topher


On Fri, Aug 16, 2013 at 4:41 PM,  wrote:

> First of all I'm a student and very noobish with linux and jenkins. I'm
> also tired of searching the web (it makes me crazy sometimes :) )
>
> I need to do the following on a linux virtual machine (Cent OS 6.4 Minimal)
>
> We expect the following components installed:
> • Java compiler (OpenJDK 1.7.0) (done)
> • Version Management (Git or Mercurial) that can be used remotely (done
> using Mercurial)
> • Maven to compile (done)
> • Jenkins to manage automated tests (done)
>
>
>- At given intervals (eg daily at midnight) the latest revision in the 
> version
>control system (tip, HEAD, ...) will be compiled with Maven. In
>addition, Java Docs will be created and packages (jar, war, ...). Then
>Jenkins will do all tests and conduct reports.
>
> Which Job will I need to choose (Free-Style/Maven2/3,...)? I would go for
> a maven2/3 project but I'm not sure what the differences are...
>
> Will Jenkins see automatically what the latest revision is in Mercurial
> (my chosen version control system)?
>
> Which plugin will I need to execute the tests and report them? I think mvn
> test command is to execute the tests but where can I conduct reports?
>
>- Make sure there is a report of previous builds.
>
> Is this my second job? Do i run this after job 1?
>
> What are the reports of the previous builds? How can Jenkins give them to
> me?
>
>- Ensure that the Java Docs and packages can be downloaded (jars, wars,
>...) of the latest build easy
>
> Will Mercurial Hgweb give me the choice to publish the javadoc somehow or
> will I need to make an own server where I manually publish the javadocs and
> packages? Or can Jenkins somehow make my life easier?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Play Application Build / Compile / Etc

2013-08-16 Thread Chris Marks
I'm doing the same, couldn't get the Play plugin working, so scripted it.

topher
On Aug 16, 2013 12:31 PM, "Jared Griffith" 
wrote:

> Is anyone here using play in a Job?  If so, how is it working for you?  I
> am seeing that when using the play command options, the build doesn't work
> correct.  If I use a shell script that has all the same commands, it
> compiles and builds just fine.
>
> --
>
> Jared Griffith
> Linux Administrator, PICS Auditing, LLC
> P: (949) 936-4574
> C: (909) 653-7814
>
> 
>
> 17701 Cowan #140 | Irvine, CA | 92614
>
> Join PICS on LinkedIn and Twitter!
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is Jenkins the right tool for hundreds of repositories

2013-05-10 Thread Chris Marks
You may also want to look into the Jenkins job dsl plugin (
https://github.com/jenkinsci/job-dsl-plugin/) for providing an easier way
to create and manage jobs in Jenkins.

I haven't used Jenkins in a large Git environment, but perhaps those who
have problems with the performance could file bugs related to their
experiences in specific situations if they haven't already?  It would
benefit the community to have a bullet-proof Git plugin that performed well
at scale.

Thanks,
Chris

topher1...@gmail.com


On Fri, May 10, 2013 at 12:41 PM, Benjamin Lau wrote:

> I'm not using post commit hooks... But those would probably work well for
> your situation. For us we don't build on every commit currently. But if you
> take a look at the remote api you can probably make it work that way pretty
> easily.
>
> You can use cURL to trigger it here's one of our urls to trigger a build
> with parameters:
>
>
> http://buildserver:8080/job/buildServer/buildWithParameters?delay=0sec&server_git_branch=featureBranch
>
> Ben
> On May 10, 2013 2:10 PM, "Jon Drukman"  wrote:
>
>> On Fri, May 10, 2013 at 10:44 AM, Benjamin Lau 
>> wrote:
>>
>>> I also use git commands directly. If you make it so your build is
>>> identical for all of your repositories you could have a single
>>> parameterized job which has parameters for the repo and branch (unless
>>> everything is always in master).
>>>
>>
>> I was thinking of going down this route.  Can you elaborate on how you
>> set it up?  Are you using git post-commit hooks to trigger the Jenkins
>> project with the name of the repo & branch that got committed?
>>
>> The builds are all basically identical so being able to parameterize a
>> single project seems like the correct approach.
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can Jenkins host tar/zip files for the automatic installer?

2012-12-15 Thread Chris Marks
I'm not sure how to do this in Jenkins, but this seems like something that
is more suited to a private binary or Maven repository such as Artifactory.
 Although Maven repos have a slant toward jar files, there's no additional
work to publish zip or tar files.  I once experimented with NMaven to store
and retrieve .NET dlls in an Artifactory instance with no problems.

Thanks,
topher


On Sat, Dec 15, 2012 at 8:45 PM, Jeff  wrote:

> I'm playing with Jenkins slaves and want to create a custom zip/tar file
> with configuration specific to our internal network that can be used for
> the automatic installers (such as for Maven or GIT).
>
> Seems logical to have Jenkins host these files.  Is there a way to upload
> or manually archive them in a way that would expose them as a url that the
> automatic installers could use?
>
> --
> Jeff Vincent
> predato...@gmail.com
> See my LinkedIn profile at:
> http://www.linkedin.com/in/rjeffreyvincent
> I ♥ DropBox  !!
>
>


Re: Executing ms-sql from linux build node?

2012-12-07 Thread Chris Marks
Hmm, that does seem fishy. I've used the MS driver from Linux before
without too many problems. Having said that, my team at the time had
problems with it on Mac. We ended up switching to jTDS and had no problems
for the remainder of the project. See jtds.sourceforge.net.

Thanks,
Topher
On Dec 7, 2012 2:40 PM, "morty"  wrote:

> I have a job that runs sql statements against a Microsoft SQL server on a
> windows machine. The job runs on a windows machine and uses the
> sqljdbc4.jar
> driver. Now I would like to move this job to a linux/ubuntu slave but get
> an
> error:
>
>
> 07-Dec-2012 23:05:12
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> 07-Dec-2012 23:05:12 org.springframework.jdbc.support.SQLErrorCodesFactory
> 
> INFO: SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL,
> Oracle, PostgreSQL, Sybase]
> Exception in thread "main" org.springframework.jdbc.BadSqlGrammarException:
> StatementCallback; bad SQL grammar []; nested exception is
> com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open backup device
> 'C:\Program Files\Microsoft SQL
> Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\media\dbs\sample_1.bak'.
> Operating system error 3(failed to retrieve text for this error. Reason:
> 15105).
> at
>
> org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:111)
>
>
>
> The error:
>
> Operating system error 3(failed to retrieve text for this error. Reason:
> 15105)
>
> smells like a problem related to the os. Do I need a special sql driver
> when
> running on a linux machine or is it more likely that the linux slave does
> not have permissions to modify the folder on the windows machine?
>
>
>
> --
> View this message in context:
> http://jenkins.361315.n4.nabble.com/Executing-ms-sql-from-linux-build-node-tp4648500.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
>


Re: Is it any good to use Jenkins as a web based UI for running operational scripts?

2012-08-28 Thread Chris Marks
I have used Jenkins in the past to schedule report delivery for business
stakeholders, run maintenance tasks on the database and reload search
caches.  It's centralized, easy to access, doesn't require permissions on
the server, provides a log of the console, gives you the duration of each
task run, and you can easily set up email alerts or other kinds of
notifications when a script fails.  All this in addition to using it for
daily development.

Thanks,
topher

On Tue, Aug 28, 2012 at 11:33 PM, Benjamin Lau wrote:

> I do. While I use Jenkins for build and release type tasks I also have
> quite a few "maintenance" scripts that I manage inside it as well. I
> find this is a better way to keep track of them than keeping them in
> cron jobs (or System Scheduler on Windows). You can quickly check if
> they are running and it also allows you to manage multiple machines
> from a single place is you make use of slaves.
>
> Ben
>
> On Tue, Aug 28, 2012 at 10:24 PM, Manglu  wrote:
> > I encountered an operations team which had built a number of jobs in
> Jenkins
> > and all it does was kickstart scripts in the OS.
> >
> > This sounded a bit strange to me as they are effectively using Jenkins
> as a
> > glorified UI for these tasks.
> >
> > Are there others who do similar stuff?
> >
> > Thanks
> >
> > Manglu
> >
> >
> >
> >
>


Re: Jenkins and Tomcat

2012-08-06 Thread Chris Marks
You might also look at the deploy plugin. It creates a post-build step that
can remotely deploy a war to multiple containers including Tomcat.

Topher
On Aug 6, 2012 12:30 PM, "Jeff"  wrote:

>
> http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing_Manager_Commands_With_Ant
>
> In the <$TOMCAT_HOME>/lib folder there should be a JAR called
> catalina-ant.jar.  Make sure it is in your ANT classpath.  Import the ant
> tasks in your ant script:
>
> 
> 
> 
>  classname="org.apache.catalina.ant.ResourcesTask"/>
> 
> 
> 
> 
>
>
> Then call it:
>
> 
>   <*deploy *
>   path="/${app.name}"
>   username="${tomcat.dev.username}"
>   war="file:${package.name}/${war.build.dir}/${app.name}.war"
>   password="${tomcat.dev.pwd}"
>   url="${tomcat.dev.url}"
>   />
> 
>
>
> On Mon, Aug 6, 2012 at 11:04 AM, Pedro Perez  wrote:
>
>> Thanks for your reply ... I actually am using different Tomcat
>> deployments for Jenkins and my other app...my difficulty was in disabling
>> the process killer from Jenkins when Jenkins is run through Tomcat (there
>> are lots of instructions on how to disable the process killer when Jenkins
>> is run as a java process without Tomcat).
>>
>> I should look into that ANT task for deploying a webapp without
>> stopping/starting Tomcat...I don't know much about how to set that up
>> however.
>>
>> Thanks!
>> P
>>
>>
>> On Monday, August 6, 2012 9:50:04 AM UTC-7, Jeff Vincent wrote:
>>>
>>> I'm a relative n00b to Jenkins but if I were you, I wouldn't run your
>>> application on the same tomcat instance.  You are making your life harder.
>>>  Why not create another instance for deploying/testing the app?  You can
>>> run multiple versions and/or instances of tomcat on different ports, run
>>> one in a VM or on another system.
>>>
>>> Regardless, tomcat can undeploy/redeploy an application without
>>> stopping.  There is an ant Task for tomcat to allow deploying applications
>>> via the management API that do not require stopping or starting tomcat or
>>> affecting jenkinsunless it blows up or consumes memory, in which case
>>> it will mess up all applications running in that instance and kill your
>>> build/test processes anyway...so again, I wouldn't do it that way.
>>>
>>> Also if you were using Maven to build, there is a plugin that allows you
>>> to start a new tomcat instance for testing then shuts it down afterward.
>>>  I've not used it though.  There could be something similar for ANT.
>>>
>>> On Mon, Aug 6, 2012 at 10:20 AM, Pedro Perez  wrote:
>>>
 Hello,

 I'm new to Jenkins and so far I love it...but I have an issue
 integrating with Tomcat. I have Jenkins stopping and starting Tomcat via
 ant script. However I've found that Jenkins process-killer shuts down
 tomcat for me after it's finished. I've read https://wiki.jenkins-ci.**
 org/display/JENKINS/**ProcessTreeKiller
  and
 have tried to disable it, however I run Jenkins through Tomcat, and I'm not
 sure how to disable the process killer when Jenkins is run as a simple web
 app on Tomcat 7. I tried to simply override the BUILD_ID variable like 
 this:

 $BUILD_ID=dontKillMe

 to no avail. Even if that worked though, I'm wondering if there is a
 "cleaner" solution to starting and stopping Tomcat with Jenkins. When using
 ANT to start/stop it usually works, but not 100% every time. I've read
 about a tomcat plugin for Jenkins, but I think it doesn't stop/start Tomcat
 in the order I need it...basically my build script does a code checkout,
 compile, stop tomcat, replace war, start tomcat, run tests against newly
 deployed web app.

 Does anybody know the "correct" way to interact with Tomcat and Jenkins?

 Thanks
 Pedro

>>>
>>>
>>>
>>> --
>>> Jeff Vincent
>>> predato...@gmail.com
>>> See my LinkedIn profile at:
>>> http://www.linkedin.com/in/**rjeffreyvincent
>>> I ♥ DropBox  !!
>>>
>>>
>
>
> --
> Jeff Vincent
> predato...@gmail.com
> See my LinkedIn profile at:
> http://www.linkedin.com/in/rjeffreyvincent
> I ♥ DropBox  !!
>
>