Re: Maven , Jenkins and pom.xml

2018-10-12 Thread Jan Monterrubio
Maven is a  build automation tool. The pom.xml describes the build and how
to perform it. It’s mostly used for java projects.

Jenkins simply invokes the maven process and adds other nice features on
top.

Jenkins doesn’t decide dependencies, those are all configured by the pom.
So think of Jenkins as a machine that runs builds and describes how to run
a build, as opposed to maven which describes how to build a project.

On Fri, Oct 12, 2018 at 07:57 Rehan Baig  wrote:

> Guys I am newbie here trying to learn CICD using jenkins
>
> I went through pom.xml where we control the build order and provide
> dependencies , the training I saw is an old video, I am curious to know do
> we still use pom.xml to structure our CI and integerate it with jenkisn ?
> Or jenkisn do all the dependencies and build order (down stream or up
> stream)
> Any guidence will be highly appreciated
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAC5m0rM8iMRCeaTW8yECKhG%3DFuc%2BhvK82-6zM5UfXs855tGK2Q%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9J1MgjX%3DPoRBp9BAdZfLoG0JCxtUKXvebSB%3Dbph50Conw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Conditional BuildStep Plugin - Conditional step(single)

2018-10-12 Thread Ambika Iyer




-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/71792585-2144-4072-BB2F-28C2EEAB30C2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way to get a tool's path value in pipeline?

2018-10-12 Thread Mark Waite
Since the git tool may be entirely internal to the Jenkins java code (as
with JGit), I'm not sure that will be as portable as you want it to be.

I don't know the answer to your specific question about the data available
related to a specific tool.

Mark Waite

On Fri, Oct 12, 2018 at 2:32 PM t3knoid  wrote:

> Typically I use checkout to checkout code from git. But sometimes I need
> to shell out and execute git. I can hardcode the path in my shell script or
> add the git directory in the PATH variable. I was thinking if there was a
> way to avoid that and use the configured git tool within Jenkins and pass
> that value in my shell script. So in essence, run a command similar to this:
>
> bat returnStdout: true, script: '${installed_git}  rev-list HEAD --count'
>
> Where ${installed_git} contains the value of the path of the git tool
> configured in Jenkins.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/49ae7954-620f-44bf-b384-bef9bccb9e27%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGsM8XBULUXPm4G22OJyYB%3D19UKQfeKZGs3djJPzXEH4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Is there a way to get a tool's path value in pipeline?

2018-10-12 Thread t3knoid
Typically I use checkout to checkout code from git. But sometimes I need to 
shell out and execute git. I can hardcode the path in my shell script or 
add the git directory in the PATH variable. I was thinking if there was a 
way to avoid that and use the configured git tool within Jenkins and pass 
that value in my shell script. So in essence, run a command similar to this:

bat returnStdout: true, script: '${installed_git}  rev-list HEAD --count'

Where ${installed_git} contains the value of the path of the git tool 
configured in Jenkins.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/49ae7954-620f-44bf-b384-bef9bccb9e27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to trigger remote deploy using Jenkins on another server

2018-10-12 Thread Quang Truong
Another way that you can use any configuration management tool to trigger 
the remote process, for me, I use Ansible, it's an agentless tool, you can 
also take a look on other tools such as puppet, chef or salt. Your scenario 
is quite usual, build (on Jenkins slave) => deploy (on other machine), 
usually we use those CM tool for the remote configuration.

If you're working on Windows, another way should be WinRM but you have to 
open the firewall that might loosen your security setting.

On Friday, October 12, 2018 at 2:11:11 AM UTC-7, Ricky LI wrote:
>
> Hello,
>
> I got a problem with jenkins. Now I have a jenkins server running, pulling 
> source code from our SVN server, the builds are successfully done.
>
> However, there's some other scripts  ( or deployment) on the SVN server 
> that need to be executed once all projects are built successfully, how 
> could I tell jenkins to trigger automatically these scripts on a remote 
> server to deploy everything after builds ?
>
> If anyone knows the how, I will appreciate the help, thanks !
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6ed051a4-e4c2-459e-b586-4bc1f14d67f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to solve these problem

2018-10-12 Thread satya muralidhar peddireddi


Started by user anonymous 
Building remotely on mavennode  
in workspace C:\Users\immur\OneDrive\Desktop\mvnlogs\workspace\CI-SRC-MAVEN
java.io.IOException: remote file operation failed: 
C:\Users\immur\OneDrive\Desktop\mvnlogs\workspace\CI-SRC-MAVEN at 
hudson.remoting.Channel@359e7771:mavennode: java.io.IOException: Remote call on 
mavennode failed
at hudson.FilePath.act(FilePath.java:986)
at hudson.FilePath.act(FilePath.java:968)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:848)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:786)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.io.IOException: Remote call on mavennode failed
at hudson.remoting.Channel.call(Channel.java:789)
at hudson.FilePath.act(FilePath.java:979)
... 11 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
hudson.model.Hudson
at 
hudson.scm.SubversionSCM.createDefaultSVNOptions(SubversionSCM.java:963)
at hudson.scm.SubversionSCM.createClientManager(SubversionSCM.java:953)
at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:885)
at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:872)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:332)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:85)
at java.lang.Thread.run(Unknown Source)
at ..remote call to mavennode(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
at hudson.remoting.Channel.call(Channel.java:781)
... 12 more
Archiving artifacts
Sending e-mails to: immura...@gmail.com
Finished: FAILURE

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/96e76695-fc95-43bb-b0a8-0b093abab5ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to trigger remote deploy using Jenkins on another server

2018-10-12 Thread Qi Li
we will try that, thanks alot :)

On Fri, Oct 12, 2018 at 4:55 PM Denis Mone  wrote:

> Correct, you can configure a new agent on the server SVN is installed, and
> configure the job to run only on that specific server.
>
> On Fri, Oct 12, 2018 at 4:31 PM Qi Li  wrote:
>
>> thank you for your reply.
>>
>> so if my understanding is correct, I can do this by configuring an agent
>> on that remote server, so this job runs on that server ? this is the only
>> way I know for Jenkins to remotely access another machine to perform tasks
>>
>> Le ven. 12 oct. 2018 à 13:20, Denis Mone  a écrit :
>>
>>> You could create another job that calls those scripts and schedule it to
>>> run after the builds are
>>> finished.
>>> You could do that either by scheduling the build as a downstream inside
>>> your pipeline, or by configuring it to build
>>> after the specified jobs are finished.
>>>
>>> --
>>> 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/CADCvpUfaL0g8n7MJZWB9jH7kaVbr5QptmvSVg-gnL_91necCqQ%40mail.gmail.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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAEswcb0GvG3qeg6xU9Zp3QMjQE3FmaRJFZaEMjPCT6VQxbnO%2BA%40mail.gmail.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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CADCvpUe0tmKuRDqr1Vep8-8Y7ksBnw-jiTTbAmZ%2B86i8AsNE4g%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEswcb0Qd6KhAC3cOPYFPV8mDiO-NUgZeeM12E3ZDwkjPVzCcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cleanup workspace before/after build

2018-10-12 Thread Sverre Moe
fredag 12. oktober 2018 13.35.36 UTC+2 skrev Andreas Tscharner følgende:
>
> Hi Sverre, 
>
> On 11.10.2018 09:33, Sverre Moe wrote: 
>
> [snip] 
> > Is there some other means I can make sure that the build has a clean 
> > workspace? 
>
> Our Windows agents are virtual machines that get reset to a certain 
> snapshot to make sure they are clean. 
>
 
To reset the Windows VM after each build seems like a heavy operation. It 
could take a while to reset to a snapshot, and in the mean time other 
builds might be waiting.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/14c168c0-2a0b-430f-a7c4-dbc9988a2b54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cleanup workspace before/after build

2018-10-12 Thread Sverre Moe
I will see if I can find some more information about the problem.

torsdag 11. oktober 2018 10.02.54 UTC+2 skrev Baptiste Mathus følgende:
>
> What is the JIRA number number for the Windows deleteDir() bug you say 
> you're seeing? 
>
> Le jeu. 11 oct. 2018 à 09:33, Sverre Moe > 
> a écrit :
>
>> This deleteDir() does not always work on a Windows build slave.
>>
>> Using Scripted PIpeline I am declaring a node within try-catch-finally.
>> The finally will run deleteDir(), in order to delete the build workspace. 
>> This is done in order to get a fresh build each time. I cannot risk having 
>> stale data lying around from a previous builds.
>>
>> Is there some other means I can make sure that the build has a clean 
>> workspace?
>>
>> 1) Always build with clean
>> mvn clean deploy
>> gradle clean build publish
>>
>> 2) SCM configuration
>> *Clean after checkout*
>> *Clean before checkout*
>>
>> *3) Windows working deleteDir()*
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/966a8838-f95a-4c23-ac61-e4c7356fac8d%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9ab3faf2-7918-4e6e-94e8-0edbb1ebc57e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to trigger remote deploy using Jenkins on another server

2018-10-12 Thread Denis Mone
Correct, you can configure a new agent on the server SVN is installed, and
configure the job to run only on that specific server.

On Fri, Oct 12, 2018 at 4:31 PM Qi Li  wrote:

> thank you for your reply.
>
> so if my understanding is correct, I can do this by configuring an agent
> on that remote server, so this job runs on that server ? this is the only
> way I know for Jenkins to remotely access another machine to perform tasks
>
> Le ven. 12 oct. 2018 à 13:20, Denis Mone  a écrit :
>
>> You could create another job that calls those scripts and schedule it to
>> run after the builds are
>> finished.
>> You could do that either by scheduling the build as a downstream inside
>> your pipeline, or by configuring it to build
>> after the specified jobs are finished.
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CADCvpUfaL0g8n7MJZWB9jH7kaVbr5QptmvSVg-gnL_91necCqQ%40mail.gmail.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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAEswcb0GvG3qeg6xU9Zp3QMjQE3FmaRJFZaEMjPCT6VQxbnO%2BA%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADCvpUe0tmKuRDqr1Vep8-8Y7ksBnw-jiTTbAmZ%2B86i8AsNE4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Run script before build is deleted?

2018-10-12 Thread James Green
How so? I need this to run as the build gets expired but as it completes.


On Thu, 11 Oct 2018 at 17:58, Jan Monterrubio 
wrote:

> As a post build script, probably.
>
> On Thu, Oct 11, 2018 at 11:35 James Green 
> wrote:
>
>> Is this possible?
>>
>> What I would like to do: examine the build and discover if there are any
>> docker images. If there are, delete them from the registry first.
>>
>> Is this feasible?
>>
>> Thanks,
>>
>> James
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to trigger remote deploy using Jenkins on another server

2018-10-12 Thread Qi Li
thank you for your reply.

so if my understanding is correct, I can do this by configuring an agent on
that remote server, so this job runs on that server ? this is the only way
I know for Jenkins to remotely access another machine to perform tasks

Le ven. 12 oct. 2018 à 13:20, Denis Mone  a écrit :

> You could create another job that calls those scripts and schedule it to
> run after the builds are
> finished.
> You could do that either by scheduling the build as a downstream inside
> your pipeline, or by configuring it to build
> after the specified jobs are finished.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CADCvpUfaL0g8n7MJZWB9jH7kaVbr5QptmvSVg-gnL_91necCqQ%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEswcb0GvG3qeg6xU9Zp3QMjQE3FmaRJFZaEMjPCT6VQxbnO%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Maven , Jenkins and pom.xml

2018-10-12 Thread Rehan Baig
Guys I am newbie here trying to learn CICD using jenkins

I went through pom.xml where we control the build order and provide
dependencies , the training I saw is an old video, I am curious to know do
we still use pom.xml to structure our CI and integerate it with jenkisn ?
Or jenkisn do all the dependencies and build order (down stream or up
stream)
Any guidence will be highly appreciated

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAC5m0rM8iMRCeaTW8yECKhG%3DFuc%2BhvK82-6zM5UfXs855tGK2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cleanup workspace before/after build

2018-10-12 Thread Andreas Tscharner

Hi Sverre,

On 11.10.2018 09:33, Sverre Moe wrote:

[snip]
Is there some other means I can make sure that the build has a clean 
workspace?


Our Windows agents are virtual machines that get reset to a certain 
snapshot to make sure they are clean.


Best regards
Andreas
--
Andreas Tscharner sternenfe...@gmail.com

Gordon's Law:
If you think you have the solution, the question was poorly phrased.

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b4220abc-d6b1-b60b-0c79-c33685364290%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to trigger remote deploy using Jenkins on another server

2018-10-12 Thread Denis Mone
You could create another job that calls those scripts and schedule it to
run after the builds are
finished.
You could do that either by scheduling the build as a downstream inside
your pipeline, or by configuring it to build
after the specified jobs are finished.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADCvpUfaL0g8n7MJZWB9jH7kaVbr5QptmvSVg-gnL_91necCqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to build all connected projects in a row

2018-10-12 Thread Ricky LI
Because, if my understandings are correct, they have some scripts in the
first project that should update some files and resources. In fact it's
like they divided a super project into 3 smaller sub-projects

Le ven. 12 oct. 2018 à 11:29, Dirk Heinrichs  a
écrit :

> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Ricky LI
>
> > However with my current solution, jenkins only trigger the project and
> all projects
>
> > that come after it (for exemple if we commit in project B, jenikins only
> build B and
>
> > C and will leave out A).
>
>
>
> I'd say this is the correct behavior.
>
>
>
> > Now we want to build all 3 of them on each commit in either of the 3, ...
>
>
>
> Why? Why waste time and resources to rebuild A if there was no change in
> it? This is how good build tools work: Only rebuild what has changed and
> what depends on the changes.
>
>
>
> HTH...
>
>
>
> Dirk
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/37e5bddf-0c5c-4bf1-8b3d-a86ff555ef1f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout
> 
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/P_B6dolrH5w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/YQXPR01MB06169C690C8ED3E20BAD5A8AAAE20%40YQXPR01MB0616.CANPRD01.PROD.OUTLOOK.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEzZ9L50u5BmRoAa0verY7UF6LK2HOYsesm5aHpDFbPYaP_fLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: How to build all connected projects in a row

2018-10-12 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com  On 
Behalf Of Ricky LI

> However with my current solution, jenkins only trigger the project and all 
> projects
> that come after it (for exemple if we commit in project B, jenikins only 
> build B and
> C and will leave out A).

I'd say this is the correct behavior.

> Now we want to build all 3 of them on each commit in either of the 3, ...

Why? Why waste time and resources to rebuild A if there was no change in it? 
This is how good build tools work: Only rebuild what has changed and what 
depends on the changes.

HTH...

Dirk
--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/37e5bddf-0c5c-4bf1-8b3d-a86ff555ef1f%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YQXPR01MB06169C690C8ED3E20BAD5A8AAAE20%40YQXPR01MB0616.CANPRD01.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.


How to build all connected projects in a row

2018-10-12 Thread Ricky LI
Hi guys,

See I got 3 projets connected one another (let's call them project A B and 
C), the idea is we build A then B and lastly C whenever there's a commit in 
either of the 3 projects.. 

However with my current solution, jenkins only trigger the project and all 
projects that come after it (for exemple if we commit in project B, 
jenikins only build B and C and will leave out A).

Now we want to build all 3 of them on each commit in either of the 3, is 
there a plugin that alllows this behaviour ?

Thank you for your kind enlightment and have a nice day. 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/37e5bddf-0c5c-4bf1-8b3d-a86ff555ef1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to trigger remote deploy using Jenkins on another server

2018-10-12 Thread Ricky LI
Hello,

I got a problem with jenkins. Now I have a jenkins server running, pulling 
source code from our SVN server, the builds are successfully done.

However, there's some other scripts  ( or deployment) on the SVN server 
that need to be executed once all projects are built successfully, how 
could I tell jenkins to trigger automatically these scripts on a remote 
server to deploy everything after builds ?

If anyone knows the how, I will appreciate the help, thanks !

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f702effd-bb8c-4481-b4fd-618dbff75fe1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.