Re: Any way to construct a url to a particular file in the jenkins workspace?

2021-09-13 Thread Jerome Godbout
Humm, that would be hard and security unwise. The executing node path aren't available to the web. If you are on a secure local network and you really want to go down that road, you need to 1. mount the slave nodes into the master node local path that would be accessible by the jenkins w

Re: Any way to construct a url to a particular file in the jenkins workspace?

2021-09-13 Thread Jerome Godbout
Some helper I made for my scripted: Path conversion: *def ToWindowsPath(path) {* *return path.replace("/", "\\");* *}* *def ToUnixPath(path) {* *return path.replace("\\","/");* *}* *def ToNativePath(path) {* *if(isUnix()) {* *return ToUnixPath(path);* * }* *return ToWindowsPath(path);* *}* *def

Re: Can't run shell script in docker container

2021-09-02 Thread Jerome Godbout
Are you sure the mount of tmp did work and not superseed by another default mount there? Maybe try to touch a new file from the docker and see if it show up into the original tmp folder. If so, it mean you might have permission problems instead. Make sure to allow rw for everyone on the file

Re: Execute shell script from jenkins

2021-08-12 Thread Jerome Godbout
You can also use the WSL on recent Windows and call the wsl shell, which can be call with: “wsl ${cmd}” I made myself a function that do call the proper shell based on the current platform, so my pipeline script does look like a big if else mess for each shell command, on windows it append t

Jenkins pipeline git branch push trigger

2019-11-11 Thread Jerome Godbout
Hi, I'm using my Jenkins file pipeline to checkout and build, I have a pipeline project I would like to get triggered only when a push to a specific branch occur. The Git repos is host on bitbucket cloud services. I cannot make a webhook, since the Jenkins run on an intranet and cannot be access

Re: NodeLabel Parameter Plugin with Scripted pipeline

2017-12-13 Thread jerome
For prosperity, my finding is: 1. it seem like the node have their node name as label automatically (I realized this when trying to add the node name to the label, the label was disappearing when saving the changes) 2. Knowning number 1 point, I could just use the named parametrized

NodeLabel Parameter Plugin with Scripted pipeline

2017-12-06 Thread jerome
Is anybody can point me to some info or an how to use the node and label parameter. I can make it work with a choice list but I would rather make it work with the plugin if possible with proper default value. -- You received this message because you are subscribed to the Google Groups "Jenkin

Re: location of email-ext template file

2017-12-06 Thread jerome
For security reason I was told, the template must reside on the master (you can stash it and unstash it into the email template folder on the master or you can read it and write it on master node): node('master') { writeFile([file: "${JENKINS_HOME}/email-templates/mytempofile.jelly", text: 't

Re: Translation between declaritive pipleline and groovy pipeline

2017-12-04 Thread jerome
You need to wrap your groovy code into a try/catch/finally block and check the current build result ( I also give you some hint when things are not yet filled) try { } catch(any) { println('Error occurred during build:'); println(any.toString()); println('Marking build as FAILURE because of

Re: Jenkinsfile and its complete properties list

2017-11-13 Thread jerome
Not sure I got this right but if you are looking how the system check for modification and trigger new execution, Jenkinsfile need a successful manual build first. This will record the repos checkout and according to the jobs settings and the checkout options, can start polling/trigger new exec

Re: SharedLibrary, clone, using resources

2017-11-03 Thread jerome
Jenkins checkout the Jenkinsfile first and then the scm inside the jenkins checkout. If you can, try to enable the Lightweight checkout on the jenkinsfile checkout. Side note, I for one make a repos for the jenkins file that is not the same as the code repos, so my server and build setup evolve

Re: Declarative script: 'bat' command fails but job succeeds

2017-10-19 Thread jerome
Not sure about declarative pipeline (I haven't played with them yet). but for normal pipeline I use it this way: bat returnStatus: false, script: "\"${bcad.msbuild_current}\" ${bcad.msbuild_solution_name} ${bcad.msbuild_default_arg} /t:Build" You can find the doc here: https://jenkins.io/doc/pip

Re: Declarative script: 'bat' command fails but job succeeds

2017-10-18 Thread jerome
Take care batch error level only is valid for the last command and not a cumulative flag. So every msbuild command you run should check the error level result and exit batch according to it with proper error code. This will make the bat command failed properly. I personnaly would suggest, you r

Re: Mercurial checkout failure

2017-09-14 Thread jerome
Finally found the error, some CIFS share cache were used, now I mount all the drive with cache=none and I disabled the oplocks of the samba share, it seem to have fix the issue. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe f

Re: Running a bat file

2017-09-14 Thread jerome
I'm not sure if you are using pipeline or not, either way, when you said the command succeed, the fact that a batch complete doesn't make it successful, make sure to evaluate the %errorlevel% after critical command. ALso if you are using pipeline, make sure to check if the returnStatus and ret

Re: Running a bat file

2017-09-12 Thread jerome
Take care that you are actually chaining batch command. What is chaining batch, someone somewhere though it would be nice to make this super weird feature for batch script only (yeah a lot of sarcasm here, the first time you see this beahavior and realize wtf someone wanted to do this is beyond

Mercurial checkout failure

2017-08-30 Thread jerome
Hi, I have intermittent problems with my hgweb with .cgi and apache (everything seem to work fine), I can perform a full checkout without issue with TortoiseHG under Windows machines to the web address, but sometime I got this error when doing the checkout into Jenkins: hg pull --rev default*08

Re: JNLP slave with fixed TCP port.

2017-08-18 Thread jerome
Here's some info and the port list required: https://stackoverflow.com/questions/17472291/jenkins-slave-port-number-for-firewall JNLP port 49187 worked ("Configure Global Security" -> "TCP port for JNLP slave agents"). TCP 49187 - Fixed jnlp port 8080 - jenkins http port Other ports needed to

Re: Does anyone know if the MSTest plugin supports pipelines and how to use it in a pipeline (jenkinsfile)?

2017-08-16 Thread jerome
Sadly no, many puglin are still incompatible, you can see the compatibility list here: https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md Since the .trx is just an xml file, you could try to do an .xslt file that do the convertion to junit .xml. Maybe someone already did

Re: Help with NotSerializableException in pipeline

2017-08-07 Thread jerome
Maybe not relevent, but I would declare the function above/before the main stage. Maybe this won't change anything. Also is the suitesStat properly defined when declared? [AutoSuiteSet_0:0 ...] -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

SCM polling into recent Jenkins version

2017-08-04 Thread jerome
Hi, I have a strange behavior with the polling system, the polling cron like work fine but the checkup is totally wrong, it see to use old settings and not the latest Jenkinsfile (2.72 with up to date plugins in today date). My Jenkins file does 3 Hg checkout: 1. Jenkinsfile 2. Build scri

Re: I'm trying to learn Jenkins Pipeline - pointers to good programmer documentation? Or is Jenkins World the place I should go????

2017-08-04 Thread jerome
>> Do you have to shell out and cp everything? If that's the case, how do you properly handle errors etc? The sh/bat have the returnStatus and returnStdout. Sadly no returnStdError, so you need to pipe and I suggest to use 'tee' to duplicate it if need such feature. https://jenkins.io/doc/pipe

Re: Pipeline - how to copy a directory of files from outside of workspace into a workspace using groovy?

2017-08-02 Thread jerome
It's not as funny as it should be for a build system manipulating file should be fairly easy. There is no direct way, but here a solution that would probably work I haven't test it: 1. Zip the folder into a single file from the particular source node 2. statch the file (or maybe if the **/

Re: I'm trying to learn Jenkins Pipeline - pointers to good programmer documentation? Or is Jenkins World the place I should go????

2017-08-02 Thread jerome
I totally agree with Stephen here, the pipeline script engine is a lock down groovy with many quirks and approval mess. Making it a painful experience. Do as much as possible into your build scripts (.vcxproj, makefile, shell script, python...). Just launch them and take light decision into pip

Re: Q: How to choose nodes for build based on parameter?

2017-08-01 Thread jerome
Nice! is the plugin: https://wiki.jenkins.io/display/JENKINS/NodeLabel+Parameter+Plugin compatible with pipeline script (declarative or normal one)? if yes how do we use it into those configuration? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" gr

Re: Q: How to choose nodes for build based on parameter?

2017-07-31 Thread jerome
Check for choice parameters plugins like: https://wiki.jenkins.io/display/JENKINS/Extensible+Choice+Parameter+plugin there also a validation plugins if you allow custo

Re: Jenkins running unit tests MSTest 10.0

2017-07-18 Thread jerome
Many thing can cause this - unreliable tests, where concurrency can occur or uninitialized values - Windows permission - invalid path inside the machine - the user under which the salve run the tests (service under windows don't have access to the GUI part and you need to run the s

Re: Is pipeline timeout suppose to work?

2017-07-12 Thread jerome
I think I got my answer about it into the console log after a hang, I had to restart the jenkins service and got this as a result: *04:18:53* *04:18:53* Build succeeded. *04:18:53* 0 Warning(s) *04:18:53* 0 Error(s) *04:18:53* *04:18:53* Time Elapsed 00:14:25.77 Waiting to resume part o

Re: Pipeline powershell

2017-07-12 Thread jerome
I have add the support info inside the following bug https://issues.jenkins-ci.org/browse/JENKINS-42988 As far as the mini repro project, I cannot reproduce it with a strip down pipeline file that does the same bat command on the same repos checkout. So it look like (not sure yet, only 5 build d

Re: Is pipeline timeout suppose to work?

2017-07-11 Thread jerome
This is Declarative pipeline syntax (which I don't use), for non Declarative pipeline (which is what I have), I wonder if this work the same or where it can be used? On Tuesday, July 11, 2017 at 5:31:08 AM UTC-4, Jakub Pawlinski wrote: > > I use this on pipeline level and it works fine there, ha

Re: Pipeline powershell

2017-07-11 Thread jerome
t look like the real deal and can reproduce the problems since it seem to occur when the bat command is really long. But if this can reproduce it, I will post it for both bat and powershell. Will give some feedback as soon as I can. Jerome -- You received this message because you are subscribed

Re: Is pipeline timeout suppose to work?

2017-07-10 Thread jerome
When trying the 45 minutes units into the syntax helper (pipeline-syntax/ of the project) it display the following code: timeout(45) { // some block } If I change the unit the syntax change like follow: timeout(time: 45, unit: 'SECONDS') { // some block } So I will try with the following

Is pipeline timeout suppose to work?

2017-07-07 Thread jerome
HI, is the timeout can be used to prevent the warnings publisher and bat hang even possible? stage('Build') { timeout(60) { bat returnStatus: false, script: "\

Re: Pipeline powershell

2017-07-04 Thread jerome
I'm no longer holding my breath and it's a show stopper for us. Thanks, regards, Jerome -- 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 jen

Re: Pipeline powershell

2017-06-30 Thread jerome
unless I'm mistaken or I missed the feature, MsBuild plugin is not pipeline compatible ( https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md seem to agree on that, not sure if this up to date). If I'm wrong I will totally up to use it. I was using batch because the plugin w

Re: Pipeline powershell

2017-06-30 Thread jerome
def psScript = """ \$msbuild = "${bcad.msbuild_current}" \$options = "${bcad.msbuild_solution_name} ${bcad.msbuild_default_arg. replace('"', '`"').replace('%CD%', '$PSScriptRoot')} /t:Build" Invoke-Expression "& '\$msbuild' \$options" """; powershell returnStatus: false, script: psScript is doing

Re: Pipeline powershell

2017-06-30 Thread jerome
So far I can execute the following into a powershell: $msbuild = "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" $options = "BodyCad.sln /m /p:Configuration=Release;Platform=x64;SolutionDir=`" + $PSScriptRoot + `"\ /t:Clean;Build" Invoke-Expression "& '$msbuild' $options" But I cannot make

Pipeline powershell

2017-06-30 Thread jerome
tatus: false, script: "\"${bcad.msbuild_current}\" ${bcad.msbuild_solution_name} ${bcad.msbuild_default_arg} /t:Build" Do I have to Invoke-Expression or do I have to force escape with --% Thanks Jerome -- You received this message because you are subscribed to th

Re: Adding .groovy files to secured script classpath

2017-06-30 Thread jerome
"In the name of security you shall not pass!" Run you stuff into a sh/bat/powershell with python/perl/bash script and get over the false security wall. Ok, I'm out of here! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from

Re: Runing Groovy scripts on Jenkins on Master

2017-06-21 Thread jerome
if you are into a pipeline, you can swap node by using node("master") { ... } -- 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...@googl

Re: [EXTERNAL] - Re: how to reset build number

2017-06-09 Thread jerome
Just an idea, but if I understand you well, you may want to split the concept of Jenkins build number and the build number for you application. Maybe an SQLite db (or any other database type) where you could read/write with your main version, and make an incremental entry for the version build

Re: Monitoring resource use of executable started by Jenkins batch job

2017-06-08 Thread jerome
You may want to take a look at Job Object and cook this limitation right inside the application you run into the batch script https://msdn.microsoft.com/en-us/library/windows/desktop/ms684161(v=vs.85).aspx example C++ #include #define BYTES_PER_GIGABYTE ((size_t)1073741824); ... JOBOBJECT_EXTEN

Re: Are jelly templates supported in email-ext with pipeline

2017-05-23 Thread jerome
Into pipeline they are working to certain extent, but you have to take special care when declaring the usage of the body (it does not support windows \ into the path, convert to unix path type): emailext body: '${JELLY_SCRIPT,template="/path/to/templatefile.template"}', subject: 'subject', to:

Re: Issue/question with Pipeline and SCM

2017-05-09 Thread jerome
How is your slave labels configured? If nothing match is found, I think the code run on the master. Also make sure the master node doesn't have the labels Axis. You also may want to change the usage of each node (node configuration). May want to mark your master to be used only when matching an

Re: Windows Service for Jenkins doesn't start automatically

2017-05-01 Thread jerome
On my side, the service needed to be Local System to be able to launch properly, which prevent GUI and graphical context to be run inside the service. Since I needed the GUI context for some unit test (OpenGL unit test was problematic), I had to change the service user for a local user. That pr

Re: email-ext no mor resolve template absolute path

2017-04-27 Thread jerome
this security non sense is getting annoying, anyway I can workaround by writing the file on the master anyway. But since you can run almost anything into a python/perl/bash/batch... scripts, the security should be at the scripts trust not what it's content in the end, if you trust the source an

Re: Windows Slave / LinuxMaster hang

2017-04-27 Thread jerome
I open a tickets: https://issues.jenkins-ci.org/browse/JENKINS-42988 -- 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.c

Re: email-ext no mor resolve template absolute path

2017-04-27 Thread jerome
I opened a ticket about it: https://issues.jenkins-ci.org/browse/JENKINS-43903 -- 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...@googl

Re: email-ext no mor resolve template absolute path

2017-04-26 Thread jerome
Anybody know if this is part of another security risk or just a bug of emailext command into pipeline? I was creating a template on teh fly by concat of wanted sections by my pipeline steps results def email_template_file = pwd([tmp: true]) + "\\email_template_file.jelly"; writeFile([file: email

Re: How to use email-ext plugin in pipeline script?

2017-04-25 Thread jerome
Upon David request here's our Jenkinsfile example, it's not all files should be enough to give a good idea of my current setup. Note (the email-ext email content stop working between 2.51 and 2.54 Jenkins update, since the absolute path can not be found anymore, I may have to transfer the file

Re: How to use email-ext plugin in pipeline script?

2017-04-24 Thread jerome
It's not so hard, it's just some behavior/limitations that are a bit hard to grasp (groovy loop anyone). I think they went on a road to provide some features at high trade back cost. If you want some examples more like real life usage: https://github.com/jenkinsci/pipeline-examples I would love

Re: How to use email-ext plugin in pipeline script?

2017-04-24 Thread jerome
You can check the currentBuild status just before sending the email: currentBuild.result If empty it mean nothing have set it to warning or error yet. you can set it to success if(!currentBuild.result) { currentBuild.result = 'SUCCESS' } or you could set it directly into the email without tou

email-ext no mor resolve template absolute path

2017-04-24 Thread jerome
Hi, is there a change into email-ext lately (I was into Jenkins 2.51 and email-ext 2.56, now updated to Jenkins 2.54 with 2.57.2) that could prevent email-ext to fetch template into the node with an absolute path? My outgoing email used to work now I receive this into my email body: Jelly file

Re: Call something to force "Please wait while Jenkins is getting ready to start" to show?

2017-04-20 Thread jerome
Maybe you should have a web server in front of you Jenkins as a proxy (can be on the same machine) like Apache. User request on Apache, Apache can check if Jenkins is up and display a web page that Jenkins is under maintenance if not up (Virtual Host config). You could also make a file lock che

Re: cannot run a python script from Jenkins

2017-04-18 Thread jerome
Not sure but it look like the scripts use IO redirection, which could not be standard output/error inside the Jenkins flow execution. Check if you can spawn a bash shell that run this python script on it's own and exit after. You may want to find a way to check the results into your bash comman

Re: Declarative pipelines per branch and reusable stages (keeping it DRY)

2017-04-11 Thread jerome
Up vote for the forward declaration of stage/steps and just give the assembly later on (would just invert the 3rd example, delcare implementation first then use them). -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this g

Re: Build always ends with FAILURE after setting currentBuild.result = 'STABLE' / 'SUCCESS'

2017-03-28 Thread jerome
This seem like a declarative way bug too me. I do this into full scripts (changing the current build result) and it work fine. I haven't tested the declarative (post {}, always {}, ...), but you could try a Jenkinsfile without the declarative syntax: node() { try { // make you junit test that

Re: Build always ends with FAILURE after setting currentBuild.result = 'STABLE' / 'SUCCESS'

2017-03-28 Thread jerome
Take care the currentBuild.result will be unset if successful up to that point. There's no 'STABLE' 'SUCCESS' 'UNSTABLE' 'FAILURE' 'ABORTED' 'NOT_BUILT' http://javadoc.jenkins-ci.org/hudson/model/Result.html -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: Console output at stage level

2017-03-21 Thread jerome
+1 That would be awesome, this along console parsing per stage output would greatly improve speed on console output parsing. -- 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

Re: Zip and archive folder/sub folders

2017-03-21 Thread jerome
apted to the platform (Unix vs Windows). Not sure about the wildcard, may want to try without and a simple file to see which part is messing around. I have tryt the archiving of zip command yet. I do the archiving manually after. On Tuesday, March 14, 2017 at 2:36:20 AM UTC-4, Baswaraj Malage wrote:

Re: Zip and archive folder/sub folders

2017-03-09 Thread jerome
glob is the ant style syntax to fetch you png files: zip zipFile: 'screen.zip' archive: true dir: 'screenprint' glob: '**/*.png' Else you may want to create a folder and copy all the file into it then zip it. -- You received this message because you are subscribed to the Google Groups "Jenkin

slave bat command doesn't continue jenkinsfile upon completion

2017-03-09 Thread jerome
resuming the Jenkinsfile flow. Any info or help would be welcome, I can't imagine I'm the only one who have this problems, since it's such a basic usage and setup? Jerome -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. T

Re: Jenkins2 pileline poll scm

2017-03-06 Thread jerome
You can set your pipeline project configure like the following: Build Triggers Poll SCM Schedule H 22 * * * This will consider the pipeline scripts checkout and the checkout done into the pipeline. The later need at least a single run manually started to register the code checkout with the firs

Re: Windows Slave / LinuxMaster hang

2017-03-01 Thread jerome
I wonder if this is related: 1. https://issues.jenkins-ci.org/browse/JENKINS-28759 2. https://issues.jenkins-ci.org/browse/JENKINS-33164 So I'm not the only one who have issue with the bat command hanging it seem. Wonder if it will ever get fixed? -- You received this message because you

Windows Slave / LinuxMaster hang

2017-02-27 Thread jerome
Jenkins, which try to recover the build and fail since it a sequential sequence at at that point. This doesn't show up when starting the build manually. Any way to debug this? It's really interfering with our build system and lock Porject and Slave. Jerome -- You received this m

Re: Workspace root directory (Jenkinsfile)

2017-02-21 Thread jerome
What I have found so far: Inside the Jenkins management you can change the Workspace directory. 1. http://MY_HOST/Jenkins/configure 2. Right under the home directory into advanced button. 3. Workspace Root Directory ${JENKINS_HOME}/workspace/${ITEM_FULLNAME} you could change it for

Re: Setting the description of a failed test in pipeline groovy

2017-02-21 Thread jerome
Build. the hudson/build object is inside the manager for example. As what is available on them after, you need to check the javadoc and try to make sense of it. Hope this help, Jerome -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Pipeline documentation jenkins-book vs realty?

2017-02-13 Thread jerome
https://jenkins.io/doc/pipeline/examples/ -- 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

Re: Issue with pipeline

2017-02-09 Thread jerome
the {workspace}@script is done during the initial fetch for the Jenkinsfile. Normally the pipeline checkout config. This first checkout is not transfer to the real workspace when you start the script 1. the jenkinsfile checkout inside {workspace}@script. I strongly suggest you get a smal

Re: Slave hang

2017-02-06 Thread jerome
I called victory way too fast, still can happen, just not as often. The fact that the slave can flood the master is a bit annoying, it should wait and continue later. Right now the behavior is if this happen, the slave/master hang (web gui is still accessible, but impossible to cancel the jobs)

Re: Slave hang

2017-02-03 Thread jerome
Finally find the problem. Seem like my mount drive under Linux was under heavy usage (the polling was occurring at the same time the IT was doing big backup) and therefor the Master Disk IO could not follow to write the jobs and the RAM vm.dirty_ was flooded. Making the build to hang. So I chan

Re: Email complete build report when build fails

2017-02-01 Thread jerome
You can set a variable global and set it during various step/stage. Then when you throw you could known what was the last thing done and append it to the email info with the error info too def my_last_seen_step = "start" try { stage('Checkout') { my_last_seen_step = 'che

Re: Slave hang

2017-01-31 Thread jerome
More info, it seem like if I use the Windows slave computer and the poll occur, it work just fine. So when the user is lock (sleep is disabled, only the screen is allowed to go to sleep on this computer and maximum performance profile is used) and a poll on the master request the slave to do so

Re: Slave hang

2017-01-31 Thread jerome
Seem like I put the blame on WarningsPublisher too soon, yesterday it hang on the compilation, running a batch command! Any way to debug this? Right now this make the whole setup useless, it hang everyday when start by polling. Starting it manually doesn't reproduce the effect. -- You received

Re: Slave hang

2017-01-30 Thread jerome
I have narrow it down again to the WarningsPublisher MSBuild only when the build is started by a poll, starting the build manually doesn't seem to show the hang behavior on the Windows slave (Linux Master) Anybody have an idea of why or how to fix this? -- You received this message because you

Re: Pipeline - stage, node

2017-01-26 Thread jerome
I'm not sure they actually do this much, but you could totally put a stage around your parallel. If we take a look at the diagram on https://jenkins.io/doc/book/pipeline/ stage{ parallel(['toto': node(){ ... }]) } seem like a valid way. I for one have a node that contain multiple stage and

Re: Pipeline - stage, node

2017-01-26 Thread jerome
I may not have all answer here, but here a start. stage serve no purpose except giving visual queue and split console data into the view as far as I know. It also split the time used to complete. For the node, they are sequential unless you use the parallel instruction. So you probably need to

Re: Slave hang

2017-01-26 Thread jerome
It hang again today, seem like the MSBuild Warning plugin is the pipeline step that hang under Windows 10 if the user is in lock (not log off) state. When user that run the slave client is active on the machine it work fine. step([$class: 'WarningsPublisher', canRunOnFailed: true, consoleParsers

Re: LogParserPublisher rules on slave

2017-01-26 Thread jerome
Yeah, seem about right, this what I end up doing: def all_rules_file = 'rules.txt' dir(pwd([tmp: true])) { writeFile([file: all_rules_file, text: all_rules_str]); stash includes: all_rules_file, name: 'LogParsingRules' } node('master') { unstash 'LogParsingRules' step([$class: 'LogParserPublisher'

LogParserPublisher rules on slave

2017-01-24 Thread jerome
Hi, I'm trying to use this pipeline command on my Windows slave node: step([$class: 'LogParserPublisher', parsingRulesPath: all_rules_file, useProjectRule: false, failBuildOnError: true, unstableOnWarning: true, showGraphs: true]); I get the following error: ERROR: Failed to parse console log

Jenkins jobs on cifs mount drive

2017-01-24 Thread jerome
I'm currently having some issue with the jobs on a cifs mount for Jenkins. The l ln -s builds/lastStableBuild /var/lib/jenkins/jobs/MyJob/lastStable failed: 13 Permission denied The user and group is both set to Jenkins and it can write there for the reste of the operation. My guess is that my

Pipeline checkout poll argument

2017-01-24 Thread jerome
Hi, I just would have some light shed on the poll option when doing a pipeline checkout. I currently have a repos for my jenkinsfile, which I don't want to poll for change (but I could poll it if necessary to activate the poll option). My code reside into another repo, which I would like to poll

Re: [pipeline][slave][publishHtml] reportFiles wildcard problems

2017-01-23 Thread jerome
I guess I misinterpreted the thing, the reportFiles are only the start page or something like that for the wrapper to use. So there's no way to collect only specified files, I have to copy them into their own folder then publish them. -- You received this message because you are subscribed to

[pipeline][slave][publishHtml] reportFiles wildcard problems

2017-01-23 Thread jerome
". It was working before (master on Windows that was the only node), now I'm a bit confuse, is that a path conversion problems between master and slave with the plugins? Should I stash the file on the slave and unstash it on the master, then publish the result? Thanks, Jerome -- You receiv

Re: How can i execute sql commands using jenkins

2017-01-23 Thread jerome
If I remember well, the command return value is the fail/pass. So you may want to craft your command to return non 0 and make the build fail when something did not goes as planed. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe

Re: How can i execute sql commands using jenkins

2017-01-23 Thread jerome
Are you running inside a pipeline script or the "old" way? pipeline: https://jenkins.io/doc/book/pipeline/ "old" way: https://goo.gl/images/uKcWFd If this is a new project, you may want to try the new pipeline, it will make thing more flexible. -- You received this message because you are subs

Re: How can i execute sql commands using jenkins

2017-01-23 Thread jerome
Hi, you need to execute either a bat or sh command with the mysql binaray: https://dev.mysql.com/doc/refman/5.7/en/mysql.html You can either cat the command into a temporary file then pipe it to the command or have the scripts already prepared. Jerome -- You received this message because you

Re: Slaves pipeline scripts

2017-01-19 Thread jerome
I'm having a hard time accessing jenkinsfile checkout folder (@script one). This name can change when in parallel or if a lock occure or mutliple build are done. What is the proper way to get the current Jenkinsfile folder inside the pipeline (the one used for the scm jenkinsfile checkout)? --

Slaves pipeline scripts

2017-01-19 Thread jerome
the build process. - being able to build new way. - Have an history of what was used for each build exactly and reproduce it if needed (for at least 10 years). Thanks, Jerome -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To u

Re: Windows to Linux migration LogParsed output

2017-01-16 Thread jerome
Seem like the build.xml result use absolute path (sigh...) 0 0 82 C:\Jenkins\jobs\CAD_CPP\jobs\CAD_CPP_ContinuousBuild\builds\83/log_content.html C:\Jenkins\jobs\CAD_CPP\jobs\CAD_CPP_ContinuousBuild\builds\83/logerrorLinks.html C:\J

Windows to Linux migration LogParsed output

2017-01-16 Thread jerome
s the same as the Windows server except the home dir which was C:\Jenkins For some reason it seem to try to compose it's path with something and I cannot figure out where is this settings exactly? Any body have a clue on this? Thanks, Jerome -- You received this message because you are

Re: maven-plugin install

2017-01-16 Thread jerome
Sorry for the noise, Sophos AV was going crazy, I downloaded the .hpi on the side and upload the plugins into Jenkins manually and it work just fine. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop recei

Re: maven-plugin install

2017-01-16 Thread jerome
Anybody can tell my if the 2 .hpi url above are working on there side? so I know if I have an enteprise firewall problem or is it really down? Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop rece

Re: maven-plugin install

2017-01-16 Thread jerome
All other plugin install properly hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/maven-plugin/2.14/maven-plugin.hpi (redirected to: http://mirror.xmission.com/jenkins/plugins/maven-plugin/2.14/maven-plugin.hpi) at hudson.model.Update

maven-plugin install

2017-01-16 Thread jerome
Hi, I'm having some trouble to install Jenkins along some plugins. It seem like the maven-plugin dependencies was not installed: There are dependency errors loading some plugins: - Static Analysis Utilities v1.82 - maven-plugin v2.9 is missing. To fix, install v2.9 or later. - Con

Master/Slave requirements

2017-01-11 Thread jerome
or I need to setup each slave manually? If someone can shed some light on this, I will begin the migration testing later this week, but would like to have a better idea before I take a plunge into this and not try stuff that are impossible. Thanks, Jerome -- You received this message becaus

Re: Some questions on ArtifactArchiver for a pipeline script

2017-01-11 Thread jerome
Use: println(pwd()); that should help you determine current working directory. If the /home/user/project is the current working directory where the project is checkout and you are looking at /home/user/artifacts for the zip files: archiveArtifacts artifacts: "../artifacts/**/*.zip", excludes:

Re: [Declarative pipepipe] Reusable stages ?

2017-01-09 Thread jerome
On the same note, anybody have a good *complete* example of the possibility for external part (@NonCPS, function, class, block, stage, steps, ...) for external parts file import/usage? I'm looking for a good do/don't. Right now I put a file into Jenkins for the install exec path that I import u

Re: Jenkins pipeline build failing even though all steps/stages pass

2017-01-03 Thread jerome
Take care a ill formated script part make the build as failing. use some print line to make sure you reach the end of the script. Many script error are way too silent into JenkinsFile. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubs

Re: Conditional BuildStep Plugin don't fail the build

2016-12-05 Thread jerome
you can use direct assigantion to currentBuild result variable: currentBuild.result = 'FAILURE' avaiable value are (not sure I got them all): 'UNSTABLE', 'SUCCESS', 'FAILURE', 'ABORTED', 'NOT_BUILT' -- You received this message because you are subscribed to the Google Groups "Jenkins Users" g

  1   2   >