Re: Fail to upgrade Jenkins on windows

2022-01-20 Thread Jonathan Mackenzie
Sounds a bit like Jenkins-19994 https://issues.jenkins.io/browse/JENKINS-19994?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel On Thu, Jan 20, 2022 at 8:52 AM Alessandro Ferrucci < alessandroferru...@gmail.com> wrote: > I'm running jenkins on windows locally and whenever I try

Re: Access rights to end test processes

2021-07-27 Thread Jonathan Mackenzie
Can you find out what is going wrong? Add a call to GetLastError maybe? On Tue, Jul 27, 2021 at 2:22 AM 'christop...@googlemail.com' via Jenkins Users wrote: > > Hi everybody, > > I am building and testing windows applications on windows machines. > I have a number of tests which start several p

Re: Even distribution of jobs

2021-07-07 Thread Jonathan Mackenzie
I am running 2.192 and I can see it in the plugin manager. Clicked the 'Available' tab then typed 'scoring' in the filter box and it showed right up. On Tue, Jul 6, 2021 at 11:49 PM Fabian Cenedese wrote: > At 17:16 06.07.2021, you wrote: > > >You can use the ScoringLoadBalabcer plugin: < > htt

Re: Even distribution of jobs

2021-07-06 Thread Jonathan Mackenzie
You can use the ScoringLoadBalabcer plugin: https://plugins.jenkins.io/scoring-load-balancer/ Design yourself a good labels schema. Great blog post on that here: https://www.avantica.com/blog/jenkins-balance-load-master-slave-setup On Tue, Jul 6, 2021 at 12:46 AM Fabian Cenedese wrote: > Hello

Re: How to distinct errors and failures in tests

2021-04-23 Thread Jonathan Rogers
On 4/23/21 5:26 PM, Nick N wrote: Thank you Jonathan! Sure, pytest is more advanced framework and provide more features. I will definitely rewrite tests to pytest when my boss give me time. Though it doesn't provide requested feature. What prevents you from using pytest with your exi

Re: Triggering builds from changes in sub-directories using Github Branch Source

2020-08-17 Thread Jonathan Ballet
mething") { > when { expression { areFilesChanged("src/python3") } } > ... > > 2) Using an if condition inside a script block > script { >if ( areFilesChanged("src/rails") ) { > ... steps >} > > } OK I see, thanks for the tips!

Re: Triggering builds from changes in sub-directories using Github Branch Source

2020-08-17 Thread Jonathan Ballet
at function and the build is interrupted prematurely if the files modified doesn't match your pattern? On Tuesday, 11 August 2020 14:46:40 UTC+1, Jonathan Ballet wrote: >> >> >> Hello, >> >> In one of our Git repository, we have a directory hierarchy similar t

Triggering builds from changes in sub-directories using Github Branch Source

2020-08-11 Thread Jonathan Ballet
Hello, In one of our Git repository, we have a directory hierarchy similar to this: dev/ Jenkinsfile folder-1/Jenkinsfile folder-2/Jenkinsfile test/ Jenkinsfile folder-3/Jenkinsfile folder-4/Jenkinsfile There are other files as well, in e

How to run per-build setups when a new build executes on a node?

2020-07-21 Thread Jonathan Ballet
hen the pre/post-build actions won't be executed. Is there a way to configure this type of function per-node / per-build automatically? Thanks! Jonathan -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this

Re: no credentials available in ssh agent

2019-10-25 Thread Jonathan
The more I've looked into this, it really does seem to be an interface issue with ssh-agent in the freestyle project. Do anyone else have this issue? Or does it work for anyone? On Wednesday, October 16, 2019 at 1:11:16 PM UTC-4, Jonathan wrote: > > Hi, > > i'm us

no credentials available in ssh agent

2019-10-16 Thread Jonathan
H Gredentials" plugin. Does anyone have this issue? or a workaround? Thanks for your help! Jonathan -- 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 a

Parameterized SVN Tags Filter

2019-05-16 Thread Jonathan Zuber
match any tags with the letter “c” in them [image: image.png] When I try to build I get this: [image: image.png] If I leave the tags filter blank, I get the full list of tags (and many of them have a “c”). Thanks, Jonathan -- You received this message because you are subscribed to the Google

Re: [github-oauth-plugin] JENKINS-50122: Authorization should work with basic Workflow jobs

2019-05-15 Thread Jonathan Pigree
UPDATE: I dug into the problem deeper and the previous PR was based on very old code so I made a new one from latest master. https://github.com/jenkinsci/github-oauth-plugin/pull/114 Hope it will be reviewed soon. On Monday, May 13, 2019 at 9:20:32 PM UTC-10, Jonathan Pigree wrote: > &

Re: Pipeline: Show changes on build for rebased commits

2019-05-14 Thread Jonathan Pigrée
Hi Sverre. I encountered the same issue. To my knowledge, this isn't possible. Jenkins don't know how to handle rebases. I can understand why they don't. This would require some work to detect those and handle all the edge-cases. For now, It just displays "no changes". A workaround I found, but

[github-oauth-plugin] JENKINS-50122: Authorization should work with basic Workflow jobs

2019-05-14 Thread Jonathan Pigree
Hi everyone. I have a bug in the github plugin which is already referenced by a ticket and a PR: - https://issues.jenkins-ci.org/browse/JENKINS-50122 - https://github.com/jenkinsci/github-oauth-plugin/pull/99/files

deploy non-Java (C++ DLL) to artifactory

2018-10-22 Thread Jonathan Bergh
ogsis and if so, whether there is a workaround for this? Or perhaps we are doing it entirely incorrectly? Many thanks in advance for any advice, Regards Jonathan -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this gro

Put files in custom folder on remote with sshput

2018-10-19 Thread jonathan maes
if it's possible? Or Does somebody know what I am missing? Thanks Kind regards, Jonathan -- 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: Revoke user tokens warning

2018-09-24 Thread Jonathan Bergh
hi Jeff / Matthew, Thanks very much for your answers here - i appreciate that. I have revoked the tokens, and can still access the install so that is great. thanks very much for taking the time out to answer, cheers jon On Friday, 21 September 2018 18:18:39 UTC+2, Jonathan Bergh wrote

Revoke user tokens warning

2018-09-21 Thread Jonathan Bergh
Hi all, thanks in advance for any assistance. we have recently received the Jenkins security warning about users using a Legacy token. This is a production installation so before i hit the "revoke" button for all users, i just wanted to check what this actually does? all our users log in via

Re: pod inter connections inside k8s cluster

2018-09-18 Thread Jonathan Rogers
ke sure that kubectl can authenticate itself. I haven't tried it, but the "Kubernetes CLI Plugin" may be a good option: https://wiki.jenkins.io/display/JENKINS/Kubernetes+CLI+Plugin -- Jonathan Rogers -- You received this message because you are subscribed to the Google

Re: pod inter connections inside k8s cluster

2018-09-17 Thread Jonathan Rogers
y -o=jsonpath='{.status.podIP}' -- Jonathan Rogers -- 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

Perforce commit triggering wrong build

2018-04-25 Thread Jonathan Bergh
Hi We have a number of projects which are building out of Perforce. We trigger the builds using SCM polling, as we dont want to expose a port on the firewall for Perforce to connect into to trigger build on the build server. Because most of the builds are similar, i have generated a number of th

Locking doesn't work across multiple nodes?

2017-04-07 Thread Jonathan del Strother
Are pipeline locks expected to behave when used by two nodes simultaneously? My Jenkinsfile defines the following helper - def log(msg) { echo((new Date().format("-MM-dd'T'HH:mm:ss: ")) + msg) } def lockDB(number, callback) { try { log "${number}: Acquiring lock ..." lock(resour

Pipeline locks occasionally allowing concurrent execution?

2017-03-04 Thread Jonathan del Strother
Hi there - Has anyone run into problems with pipeline's lock command? On a multibranch project with 2 nodes (master + 1 slave), it occasionally seems to allow two concurrent jobs to acquire the same lock. I have Jenkins 2.45 with Lockable Resources 1.11 and Pipeline 2.9. -- You received this m

JAVA developer (Expertise in angular JS and EXT JS)

2016-12-19 Thread venkat jonathan
Hi professional, This is VENKAT from Agile Enterprise Solutions. This is in reference to the following position. * Please find below job description if you feel comfortable please revert with updated resume, salary compensation and contact details ASAP * Title:Java D

JAVA developer (Expertise in angular JS and EXT JS)

2016-12-16 Thread venkat jonathan
Hi professional, This is VENKAT from Agile Enterprise Solutions. This is in reference to the following position. * Please find below job description if you feel comfortable please revert with updated resume, salary compensation and contact details ASAP * Title:Java D

pipeline: Jenkins slave cannot create nested directories

2016-12-13 Thread Jonathan Hodgson
Hi, This is a follow on from a previous thread, where I thought the issue was specifically tmp folders, but now after a little experimentation, things are a bit clearer. Firstly, I want to state that this problem did not originally exist on this slave, SOMETHING (not the pipeline code) has cha

Re: pipeline : slave throws an exception on trying to create a tmp folder, despite creating the workspace and a subfolder just fine

2016-12-11 Thread Jonathan Hodgson
Further to the above. I just forced it to run multiple builds simultaneously, and it generates new folders for them as pipeline-test2@2 and pipelin-test2@3. So the @ symbol is most certainly not the issue. On Sunday, December 11, 2016 at 7:23:01 PM UTC, Jonathan Hodgson wrote: > >

Re: pipeline : slave throws an exception on trying to create a tmp folder, despite creating the workspace and a subfolder just fine

2016-12-11 Thread Jonathan Hodgson
On Sunday, December 11, 2016 at 4:36:24 PM UTC, Daniel Beck wrote: > > Is this a file system that doesn't like the @ character? > Seems unlikely, since 1) I created the folder manually without issue (and then things worked correctly) 2) Jenkins previously created those folders just fine, this

Re: pipeline : slave throws an exception on trying to create a tmp folder, despite creating the workspace and a subfolder just fine

2016-12-11 Thread Jonathan Hodgson
> > Ok, adding to the confusion... > I just tried changing the slave configuration to give a compleely new root folder (C:\Jenkins2 rather than C:\Jenkins) Ran the same same job Failed to mkdirs: C:\Jenkins2\workspace\pipeline-test2 hudson.FilePath.mkdirs(FilePath.java:1169) org.jenkinsci.plu

Re: pipeline : slave throws an exception on trying to create a tmp folder, despite creating the workspace and a subfolder just fine

2016-12-11 Thread Jonathan Hodgson
s. But if permissions allow the creation of pipeline-test2 by the slave, they should also allow the creation of pipeline-test2@tmp right next to it surely? On Thursday, December 8, 2016 at 5:59:15 PM UTC, Jonathan Hodgson wrote: > > Hi, > > I've been experiementing trying to get s

pipeline : slave throws an exception on trying to create a tmp folder, despite creating the workspace and a subfolder just fine

2016-12-08 Thread Jonathan Hodgson
D) dirStep(nodeID) testUnstash(nodeID) } } stage("testing") { node ("master") { writeFile file:"toStash.txt",text:"Testing stashing and unstashing" stash name:"myStash", include:"toStash.tx

Re: Why does JNLP4 not work

2016-12-07 Thread Jonathan Hodgson
new thread, as the JNLP4 issue is solved - if > you want to get further. > > Stack traces are usually helpful > > On Wednesday, 7 December 2016, Jonathan Hodgson > wrote: > >> Thanks, I hadn't seen those setting on the security page. >> >> JNLP4 now seems

Re: Why does JNLP4 not work

2016-12-07 Thread Jonathan Hodgson
Apache is filtering the headers > (specifically blocking the header that reports enabled protocols) > > On Wednesday, 7 December 2016, Jonathan Hodgson > wrote: > >> I'm the latest version of jenkins (2.35), updated today via apt-get on >> debian, and downloaded s

Re: Why does JNLP4 not work

2016-12-07 Thread Jonathan Hodgson
gt; > On Wednesday, 7 December 2016, Jonathan Hodgson > wrote: > >> Hi, >> >> I'm having some issues with my windows slave.. remote file operations are >> failing, also the connection is unreliable. >> >> Now this may have no connection, but I no

Why does JNLP4 not work

2016-12-07 Thread Jonathan Hodgson
Hi, I'm having some issues with my windows slave.. remote file operations are failing, also the connection is unreliable. Now this may have no connection, but I notice that when I run the slave I get Server reports protocol JNLP4-connect not supported, skipping Server reports protocol JNLP4-pla

Re: pipeline : remote file operation on the windows slave no longer work

2016-12-06 Thread Jonathan Hodgson
NKINS/Pipeline+Stage+Step+Plugin. > Your bat step was also a little verbose I think. Given that by default it > will echo the output to the console. > > You didn't say what versions your running but the above snippet ran as > expected in my latest and greatest 2.35 and

pipeline : remote file operation on the windows slave no longer work

2016-12-03 Thread Jonathan Hodgson
} } bombs out with Started by user Jonathan Hodgson [Pipeline] stage [Pipeline] { (testing) [Pipeline] node Running on Asus K51 in C:\Jenkins\workspace\pipeline-test2 [Pipeline] { [Pipeline] echo Substage running on Windows [Pipeline] bat [Pipeline] } [Pipeline] // node [Pipeline] } [Pipel

Re: pipeline.. sometimes slaves just hang

2016-12-02 Thread Jonathan Hodgson
; build time and set that as the timeout if the agent execution is happening > inside the script rather than as a separate job > > On Friday, 2 December 2016 13:03:57 UTC, Jonathan Hodgson wrote: >> >> Thanks, but I'm not sure this does what I need. >> >> T

Re: pipeline.. sometimes slaves just hang

2016-12-02 Thread Jonathan Hodgson
that-continues-if-timeout-is-reached-using-a-default-value > > On Thursday, 1 December 2016 13:39:33 UTC, Jonathan Hodgson wrote: >> >> Hi, >> >> Right now I'm looking at a pipelne job which has been hung on two slaves >> for over two hours. >> >&g

Re: pipeline.. sometimes slaves just hang

2016-12-01 Thread Jonathan Hodgson
It seems it was the windows slave specifically that was blocking things. When I stopped the slave app the OSX slave kicked into action. The questions above still apply. On Thursday, December 1, 2016 at 1:39:33 PM UTC, Jonathan Hodgson wrote: > > Hi, > > Right now I'm looking

pipeline.. sometimes slaves just hang

2016-12-01 Thread Jonathan Hodgson
Hi, Right now I'm looking at a pipelne job which has been hung on two slaves for over two hours. Both slaves (one windows, one OSX) show as being connected, and the slave is still running on both, but both are stalled... one on starting a batch script, the other either in the shell script or j

pipeline : Get the username from the last commit

2016-11-29 Thread Jonathan Hodgson
Hi, When a build happens after a push to the repository, I would like to email the person who did the push (or the last commit, which usually amounts to the same thing) with the result. Is there a way to get the user's name and email? -- You received this message because you are subscribed to

Re: pipeline - build job with FileParameterValue

2016-11-28 Thread Jonathan Hodgson
That was pretty much the first problem I ran into! File Parameters don't currently work with pipelines https://issues.jenkins-ci.org/browse/JENKINS-27413 On Monday, November 28, 2016 at 11:53:52 AM UTC, José Coelho wrote: > > I am trying to invoke a job that accepts a file: > > build job: 'U

Re: Pipeline build crashes depending on who started it?

2016-11-25 Thread Jonathan Hodgson
I'm not quite sure what you mean. The other user logs on to jenkins on the server (or triggers a build with his name and password in the url, same thing in effect), but the slave is started by me and runs in my user space (which has admin priviledges).. or so I thought, the fact that things fai

Re: Pipeline build crashes depending on who started it?

2016-11-24 Thread Jonathan Hodgson
o get these autobuilds to the point where I thought they could be rolled out, only to run into this On Thursday, November 24, 2016 at 4:32:36 PM UTC, Jonathan Hodgson wrote: > > > After deleting the relevant workspace folder and getting my colleague to > trigger another build, I get a

Re: Pipeline build crashes depending on who started it?

2016-11-24 Thread Jonathan Hodgson
After deleting the relevant workspace folder and getting my colleague to trigger another build, I get a different, but I suspect related, error java.io.IOException: remote file operation failed: C:\Jenkins\workspace\WPF\TryBuild\Hugo Brangwyn\PluginWrapper at hudson.remoting.Channel@6b81cdda:C

Pipeline build crashes depending on who started it?

2016-11-24 Thread Jonathan Hodgson
Hi, I've set up a try-before-commit build using the pipeline, and a script on the client that sends a diff and starts a build. Now if I run this, it works fine (the jenkins machines are on my local network, but I access them through a global url) However if my colleague runs it, then everythin

Re: pipeline groovy - can somebody please explain why variable value passing is working like this?

2016-11-14 Thread Jonathan Hodgson
I'm sorry, but am I supposed to know what that means? On Monday, November 14, 2016 at 10:25:12 AM UTC, Thomas Keller wrote: > > /sub -- 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

pipeline groovy - can somebody please explain why variable value passing is working like this?

2016-11-13 Thread Jonathan Hodgson
Ok, so having got my script working, I decided to move part of it into a shared library as per the section marked Define more structured DSL here https://github.com/jenkinsci/workflow-cps-global-lib-plugin But I'm getting what to me seems like very odd behaviour with the variables. My primary

Pipeline: What do I have to do to get the scm to inject environment variables?

2016-11-11 Thread Jonathan Hodgson
Hi, I apologize if this is basic stuff I have a pipeline job with a jenkinsfile, as a result when the pipeline runs there is an scm object, hudson.plugins.mercurial.MercurialSCM I notice in the source code that there is public void buildEnvVars(AbstractBuild build, Map env) Which injects

Pipeline groovy.. very confused by the way the same code works differently in libraries

2016-11-10 Thread Jonathan Hodgson
Hi, I have a global library class, HelperFunction, which includes a getKeySet function. package mylib @NonCPS def getKeySet(m) { def key_set = m.keySet() key_set.toArray(new String[key_set.size()]) } return this Now I use this function in two places. One is in a script which is loa

Multibranch pipeline : where can the script find out about the current build?

2016-11-09 Thread Jonathan Hodgson
Hi, Having finally got the core of my try-before-commit project working, I'm shortly going to move on to the building of committed projects. Since I have multiple branches of some projects, the Multibranch pipeline looks like a good solution (having multiple projects all using the same framewo

Pipeline shared libraries, can I have a constructor when I don't explicitly declare the enclosing class?

2016-11-07 Thread Jonathan Hodgson
Hi, I'm setting up a folder library as per here. Now in one of their examples they talk about not declaring the enclosing class (so as to allow access to steps) This works fine, in the file MyClass.groovy @package my.package def myMethod(data) { // do stuff with data } return this I

Anybody using the CORS Support Plugin?

2016-10-31 Thread Jonathan Hodgson
Hi, Is so, then have you found it reliable? I had it set up so everything was working fine, but now it doesn't seem to be adding any headers to the files served by Jenkins. Either that or Apache is stripping them off. But I don't think I've changed any settings in either since I had it workin

Re: Cannot launch slaves now I'm using an Apache proxy

2016-10-27 Thread Jonathan Hodgson
Well I've made some progress. It turns out I was missing a forward slash in my jenkins URL setting (there really should be a syntax check there IMHO) So now it no longer reports that the reverse proxy is not working. But launching a slave fails in both cases. In windows, from the browser, I am

Cannot launch slaves now I'm using an Apache proxy

2016-10-26 Thread Jonathan Hodgson
Hi, Does anybody have a working example apache conf running jenkins on a different machine to apache? Things were working fine whilst I was accessing jenkins directly, but I need to do it through Apache. Jenkins is running on a different machine to Apache. Access to Jenkins works, with a redi

Re: Troubleshooting reverse proxy setup

2016-10-26 Thread Jonathan Hodgson
I should probably add that although I can access jenkins through the browser from my slave machines, connecting them as slaves no longer works. It was fine when I accessed jenkins directly, but now I've set up the proxy, neither the launch button (which I use with my windows slave) nor the "jav

Troubleshooting reverse proxy setup

2016-10-26 Thread Jonathan Hodgson
Hi, I'm currently getting a "It appears that your reverse proxy set up is broken." message on the Manage Jenkins Page. I'm using Apache as a proxy to Jenkins (which is on another machine). My proxy setup looks like thsi ProxyPass /jenkins http://192.168.0.6:8080/jenkins nocanon ProxyPa

Get jenkins prefix in pipeline groovy

2016-10-26 Thread Jonathan Hodgson
Hi, My jenkins instance is accessible on http://MyWebsite.com/jenins with "jenkins" being set by --prefix=jenkins in the jenkins defailt file. Standard. Since I'd like my scripts to be portable, I don't want to hardcode the "jenkins" into paths in the script, so how can I get this value from

Re: Is there a way to use Apache and Matrix based security together?

2016-10-25 Thread Jonathan Hodgson
On Tuesday, October 25, 2016 at 10:48:04 AM UTC+1, Teichner Peter wrote: > > It depends how you store your original login details for the users – is it > coming from an LDAP server? Perhaps for you it would make sense to use > apache as a proxy but let Jenkins do the authentication by connectin

Is there a way to use Apache and Matrix based security together?

2016-10-25 Thread Jonathan Hodgson
Hi, I'm running an Apache server, so it makes sense to use that as a proxy for Jenkins, and since the people on the project already have logins and passwords to access other project related pages, it makes sense to me to use that autorization. But within Jenkins, I'd like to be able to set up

Re: Pipeline : Confused about file access on slaves

2016-10-21 Thread Jonathan Hodgson
On Friday, October 21, 2016 at 6:11:28 PM UTC+1, Baptiste Mathus wrote: > > One thing to understand is that your pipeline is actually always to be run > from/on the master. Each "instruction" if actually sent from the master the > requested node, then kind of checkpointed before going further.

Re: pipeline: Is there a plugin to give a "better console"??

2016-10-21 Thread Jonathan Hodgson
On Friday, October 21, 2016 at 1:09:07 PM UTC+1, Vincent Latombe wrote: > > Did you give a try to Blue Ocean? https://jenkins.io/projects/blueocean/ > > >> I did, It seems promising, but really not that great at the moment. The steps view is close to what I'd like to see, the facility to click

Re: pipeline: Is there a plugin to give a "better console"??

2016-10-21 Thread Jonathan Hodgson
On Thursday, October 20, 2016 at 5:02:34 PM UTC+1, Trever wrote: > > This plugin advertises to allow collapsing sections of the console > > https://wiki.jenkins-ci.org/display/JENKINS/Collapsing+Console+Sections+Plugin > > > Yes, I saw that, and it might be useful, but it doesn't seem to work wit

pipeline: Is there a plugin to give a "better console"??

2016-10-20 Thread Jonathan Hodgson
Hi, I'm developing a pipeline job. The console is indispensible in this, not surprisingly. But it's getting harder and harder to find what I need in the endless stream of text, combining the outputs from what is currently a master and two slaves (I expect the number of slaves will grow). Is t

Re: Is there a way to make jenkins serve up script generated pages?

2016-10-19 Thread Jonathan Hodgson
On Thursday, October 20, 2016 at 12:13:01 AM UTC+1, Teichner Peter wrote: > > On Linux you have a tool called xsltproc which basically does the > transformation. Assuming your Jenkins is Windows you could get something > similar I'm sure. > > To display the HTML there is a plugin for Jnkins th

Is there a way to make jenkins serve up script generated pages?

2016-10-19 Thread Jonathan Hodgson
Okay, so here's the situation. I have build logs in xml format, and an sxlt file to convert them to nice pretty html. Currently the way I'm doing this is with an html and js file in userContent to apply the xslt on the client end, so I have a ;link on my build page that is /userContent/msbuil

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
On Tuesday, October 18, 2016 at 3:21:09 PM UTC+1, Jesse Glick wrote: > > On Tuesday, October 18, 2016 at 8:09:56 AM UTC-4, Jonathan Hodgson wrote: >> >> Did you miss my last post? I tried FilePath, but I get a "unable to >> resolve class" error. >> &

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Ok, well it seems the "unable to resolve class" issue was due to me not importing the class. Got thrown by the fact that File is there, hadn't really clicked that FilePath was a hudson specific class rather than standard Groovy. Still looking for how to find the channel -- You received this m

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Hi Daniel, thanks for trying to help, however On Tuesday, October 18, 2016 at 12:28:18 PM UTC+1, Daniel Beck wrote: > > > > On 18.10.2016, at 00:58, Jonathan Hodgson > wrote: > > > > The documentation says that File operates on "the current machine&q

Re: Pipeline : Confused about file access on slaves

2016-10-18 Thread Jonathan Hodgson
Further investigation.. I thiought the solution might lie in FilePath as per here http://stackoverflow.com/questions/30608444/in-jenkins-job-create-file-using-system-groovy-in-current-workspace/32514581#32514581 But it seems that doesn't apply to Groovy in the pipeline, If I try to declare a F

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
Rachel and Martina, Thanks for trying to help me on this, I've started a new thread now that I've realized the issue isn't to do with windows or paths, but rather to do with slaves and masters. On Monday, October 17, 2016 at 11:27:08 PM UTC+1, Jonathan Hodgson wrote: > &g

Pipeline : Confused about file access on slaves

2016-10-17 Thread Jonathan Hodgson
Hi, I've touched on this stuff in a previous thread where I thought it was about running on Windows, in turns out it's the same for any slave So I'm starting a new thread now I'm clearer what the issue is I have code that basically works like this node('master') { // Master is running Linus

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
Well I can confirm that it has nothing to do with it being windows, just tried FileNameFinder on my OSX slave and it also looks on the master On Monday, October 17, 2016 at 9:44:03 PM UTC+1, Jonathan Hodgson wrote: > > But I don't want to restrict where the job runs, just where th

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
es on the slaves, and visual studio (or I could, that bit's disabled as I'm working on this, but it worked before). Buildsteps do what they should, on the slave but groovy file commands don't. On Monday, October 17, 2016 at 9:19:45 PM UTC+1, Rachel wrote: > > Hi Jonathan, &

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
On Monday, October 17, 2016 at 8:36:55 PM UTC+1, Martina wrote: > > So you solved the issue of it running on the wrong system, right? > No, I haven't solved the issue. I thought perhaps it was running on the wrong system because it didn't have an absolute path that it recognized as such, so I

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
I've tried every path variation I can think of def paths = [ "c:", "c:\\", "c:\\Jenkins", "c:\\Jenkins\\workspace\\", "c:\\Jenkins\\workspace\\WPF-TryBuild", "c:/", "c:/Jenkins", "c:/Jenkins/workspace/", "c:/Jenkins

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
I've just done some experimentation, and testfile = new File("/tmp/CheckOnServer.txt") if (testfile.exists()) { echo "It's looking on the master" } else { echo "It's not looking on the master" } gives [Pipeline] [Windows] echo[Windows] It's looking

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
On Saturday, October 15, 2016 at 6:05:45 PM UTC+1, Rachel wrote: > > Hi Jonathan, > > You might check: > >- When it's said "Source folder does not exist", check that > really exists and it's right. >- Jenkins process on slave has pe

Re: Pipeline plugin - How do I find directories?

2016-10-16 Thread Jonathan Hodgson
On Saturday, October 15, 2016 at 5:55:53 PM UTC+1, Rachel wrote: > > Hi Jonathan, > > I think that utility is not available. Alternatively, it's possible to use > find command (if Linux): > > node { >stage 'Create folders in workspace for showing' >

Re: Pipeline plugin - How do I find directories?

2016-10-16 Thread Jonathan Hodgson
On Sunday, October 16, 2016 at 7:17:46 AM UTC+1, Baptiste Mathus wrote: > > IIRC look in the pipeline-utility-steps plugin. > > Cheers > >> >> That's the FindFiles I already tried, which seems to find files, but not folders. -- You received this message because you are subscribed to the Googl

Pipeline plugin - How do I find directories?

2016-10-15 Thread Jonathan Hodgson
Hi, I need to find all the folders with a given name which are in my workspace (well in fact I need to find their parent folders) A quick test with findFiles indicates it only finds files, not folders. -- You received this message because you are subscribed to the Google Groups "Jenkins Users

pipeline - groovy - file paths on windows?

2016-10-14 Thread Jonathan Hodgson
Hi, I have a bit of code that looks like this def source_folder_name = "${pwd()}/${destination}" def source_folder = new File(source_folder_name) if (!source_folder.exists()) { echo "Source folder ${source_folder_name} does not exist" }

Re: Pipeline Groovy Madness

2016-10-14 Thread Jonathan Hodgson
On Friday, October 14, 2016 at 1:47:24 PM UTC+1, Daniel Beck wrote: > > > > On 14.10.2016, at 13:25, Jonathan Hodgson > wrote: > > > > All I've done is move that one line, and for the record at the moment > it's being called without OSX being

Pipeline Groovy Madness

2016-10-14 Thread Jonathan Hodgson
Hi, I'm trying to get some Groovy code working in the pipeline. The code used to work fine, somewhere in the endless stream of updates of jenkins and plugins, it stopped. It used to look like this (I've stripped the bits that do actual work out for brevity) @NonCPS def isPlatformActive(platfo

Any tips on how to test Jenkins/Plugin updates before commiting to them?

2016-10-14 Thread Jonathan Hodgson
Hi, I've recently encountered issues because updates to Jenkins and/or plugins have broken things that were previously working. When my autobuild goes live, this would be bad news indeed. So ideally I need to test updates before making them live. Probably running a full set of builds over the

Is there any way to make eclipse run Groovy with the same limiyations as the Pipeline Plugin?

2016-10-14 Thread Jonathan Hodgson
Hi, Testing out new Groovy code inside Jenkins is slow and painful. Whereas I can run a bit of code in a second on my local system inside Eclipse, it can be minutes on Jenkins (because it is part of a build), even if I strip everything out that I possibly can it's at least an order of magnitude

pipeline - read artifact into node?

2016-10-10 Thread Jonathan Hodgson
Hi, My pipelne starts with code on the master that creates a file, which I artifact. I need ti use that file in nodes running on the slaves. How do I do that? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group an

"I forgot my password" plugin?

2016-09-23 Thread Jonathan Hodgson
Hi, Is there a way to implementt the sort of "I forgot my password" email reset functionality which is pretty well standard on the internet these days? It would also be handy to be able to invite new users throiugh the same sort of process, rather than either leaving the site open for anyone to

monitor local system load for scheduling and/or co-exist with LSF?

2016-08-23 Thread Jonathan
Does Jenkins have any concept of local system load on it's slaves/permanent agents for scheduling? I know by default it favors the last executor for a job. I've looked at the Least-Load plugin too, but it seems like it only knows about the number of defined executors available regardless of an

Re: Pipeline: Can I use html in currentBuild.description?

2016-08-16 Thread Jonathan Hodgson
On Tuesday, August 16, 2016 at 10:53:16 AM UTC+1, Jonathan Hodgson wrote: > > Use the Pegdown formatter plugin, Markdown allows for HTML tags. > > I've even got javascript working quite happily in the description, so > things update as certain artifacts are created. Not o

Re: Pipeline: Can I use html in currentBuild.description?

2016-08-16 Thread Jonathan Hodgson
Use the Pegdown formatter plugin, Markdown allows for HTML tags. I've even got javascript working quite happily in the description, so things update as certain artifacts are created. On Monday, August 15, 2016 at 9:58:08 PM UTC+1, Greg Smith wrote: > > > Hi, > > Is there some simple way to allow

Access-Control-Allow-Origin different for userContent rather than build pages?

2016-08-14 Thread Jonathan Hodgson
Hi, I have anartifacts, which are xml logs from MSBuild. Now in my build description I have a HTML and some javascript which reads those files and shows me which architectures and configurations have warnings or errors. That bit works fine, as each build completes, its associated cell in the

Organizing artifacts?

2016-08-11 Thread Jonathan Hodgson
Hi, I'm winding up with quite a lot of artifacts, logs, built code, test results etc. Is there a way that I could organize these so that it's not just a flat list on the build page? regards Jon -- You received this message because you are subscribed to the Google Groups "Jenkins Users" gro

pipeline: mutex or locks which are local to a slave.

2016-07-21 Thread Jonathan Hodgson
Hi, I have three platforms I want to build on.. XCode, Win32 and Win64. So I want to execute these in parallel, no problem, use the "parallel" build step with three nodes The problem is that the Win32 and Win64 builds could well end up happening on the same slave (in fact to start wih they mos

Displaying information on build page that changes

2016-07-19 Thread Jonathan Hodgson
Hi, I'm working on a pipeline job that builds several versions of my code on different slaves, and then will be extended to run tests, create installers etc. I would like to keep the user informed of the progress of these various steps on the build page, and give access to log files etc as the

Can I add a "publish" button to a build page

2016-07-12 Thread Jonathan Hodgson
Hi, If a build is successful (compiled correctly, passed all tests), I may then want to send it out to beta testers. Which means copying the built binary to a location where they can find it, and sending out emails. I don't want to do this for exery successful build though. A sensible solution

Re: Pipeline : Can I display information on the build page

2016-07-06 Thread Jonathan Hodgson
Doh! Scratch issue "c" It hadn't clicked with me that it displays as a sidebar in the project page, but not on the build page. that makes sense to me. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Pipeline : Can I display information on the build page

2016-07-06 Thread Jonathan Hodgson
Hi, right now, when I do a build with my try-before-commit project, the build page shows 1) A red exclamation mark telling me the build failed 2) A build number and date 3) Who started the build 4) The repository revision being used... which is displayed 3 times (I check it out on three differe

  1   2   >