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

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

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

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

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),

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:

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

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

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 : > >>

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

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

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

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

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

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

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:*

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

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

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