Re: nexusUser and nexusPassword

2023-01-21 Thread 'Martin Schmude' via Jenkins Users
You should make use of the Jenkins credentials store. https://www.jenkins.io/doc/book/using/using-credentials/ Several kinds of secrets can be stored there. Type "User and password" suits your needs. How to use that in your pipeline script: https://www.jenkins.io/doc/pipeline/steps/credentials-bi

Re: jenkins parameters issues

2022-06-25 Thread 'Martin Schmude' via Jenkins Users
That's not possible. Job parameters cannot depend on each other. You can only add an explanatory description to the booleanParam A to make it clear to user that the value of the extendedChoice parameter will be ignored by the job if A is false. zzgua...@gmail.com schrieb am Freitag, 24. Juni 202

Re: terinary operators in declared pipeline

2022-06-02 Thread 'Martin Schmude' via Jenkins Users
You can code def result = (branch == "main" ? "@daily" : (branch == "master" ? "@hourly" : "")) Maybe you find a switch more readable: def result switch(branch) { case "main": result = "@daily" break case "mast

Re: terinary operators in declared pipeline

2022-06-02 Thread 'Martin Schmude' via Jenkins Users
You can code def result = (branch == "main" ? "@daily" : (branch == "master" ? "@hourly" : "")) Maybe you find a switch more readable: def result switch(branch) { case "main": result = "@daily" break case "master": result = "@hourly"

Re: terinary operators in declared pipeline

2022-06-02 Thread 'Martin Schmude' via Jenkins Users
You can code ``` def result = (branch == "main" ? "@daily" : (branch == "master" ? "@hourly" : "")) ``` Maybe you find a switch more readable: ``` def result switch(branch) { case "main": result = "@daily" break case "master": result = "@hourly"

Re: Properties in a pipeline

2022-05-20 Thread 'Martin Schmude' via Jenkins Users
This script pipeline { agent any stages { stage('play with properties') { steps { script { def propsText = 'prop1 = val1\nprop2 = val2\nbuild.host=mybuildhost.hosts.myorganization.org' writeFile file: 'myProps.p

Re: nested each

2022-02-05 Thread 'Martin Schmude' via Jenkins Users
In the past I ran into issues with pipeline scripts that did not behave as expected due to CPS transformation. See https://www.jenkins.io/doc/book/pipeline/cps-method-mismatches/ https://www.jenkins.io/doc/book/pipeline/pipeline-best-practices/#using-noncps Try to annotate interesting_commit_check

Re: Unable to execute test script from Jenkins

2021-08-24 Thread 'Martin Schmude' via Jenkins Users
Maven expects test classes in folder ./src/test/java. In https://github.com/RajuKumar9/fourthrepository there is no such folder. There are no test classes, so Maven can't compile and execute any tests. raju@ashmar.in schrieb am Dienstag, 24. August 2021 um 15:18:24 UTC+2: > Hello Guys. > I a

Re: Jenkins Jobs Folder in Docker

2021-04-09 Thread 'Martin Schmude' via Jenkins Users
This is similar to the customized docker image that we build for Jenkins. We just leave the $JENKINS_HOME/jobs folder intentionally inside the container. so that all job configurations are part of the docker image. A Jenkins instance started from such an image has all its jobs available out-of-th

Re: I cannot run Azure CLI commands from jenkins pipeline

2021-04-06 Thread 'Martin Schmude' via Jenkins Users
Maybe az has not been installed on the system where the job is executed. Or az is not part of the PATH variable in the context of the job execution. Let the job execute "echo $env:path" before any "az ..." commands, so that it prints out its path environment variable. jesusfern...@gmail.com schri

Re: No space left on device

2021-04-05 Thread 'Martin Schmude' via Jenkins Users
In case anybody is not aware of windirstat: it is a disk space analysis tool for Windows. https://windirstat.net/ Mark Waite schrieb am Montag, 5. April 2021 um 13:34:11 UTC+2: > Windirstat > > On Mon, Apr 5, 2021, 3:06 AM 'Venkat' via Jenkins Users < > jenkins...@googlegroups.com> wrote: > >>

Re: keep the docker container alive even on job failure and re use it for replay

2021-03-23 Thread &#x27;Martin Schmude' via Jenkins Users
Don't start the container by the long-running job. Setup a second job that starts the container, so that the first job may fail without affecting the container. ananthm...@gmail.com schrieb am Dienstag, 23. März 2021 um 15:23:29 UTC+1: > Hi all , > > I am looking for a feature where i need to

Re: Non-lightweight git checkout of Jenkinsfile fails if node parameter is provided

2021-03-19 Thread &#x27;Martin Schmude' via Jenkins Users
promising and we will give it a try. Mark Waite schrieb am Dienstag, 16. März 2021 um 19:52:55 UTC+1: > On Wednesday, February 24, 2021 at 9:25:10 AM UTC-7 Martin Schmude wrote: > >> Hello all, >> I am experiencing the following issue. >> I have a pipeline job (not

Re: Non-lightweight git checkout of Jenkinsfile fails if node parameter is provided

2021-03-19 Thread &#x27;Martin Schmude' via Jenkins Users
particular to 1.7 mentioned before. Mark Waite schrieb am Dienstag, 16. März 2021 um 19:52:55 UTC+1: > On Wednesday, February 24, 2021 at 9:25:10 AM UTC-7 Martin Schmude wrote: > >> Hello all, >> I am experiencing the following issue. >> I have a pipeline job (not

Re: Non-lightweight git checkout of Jenkinsfile fails if node parameter is provided

2021-03-03 Thread &#x27;Martin Schmude' via Jenkins Users
Anybody able to answer my question? Martin Schmude schrieb am Mittwoch, 24. Februar 2021 um 17:25:10 UTC+1: > Hello all, > I am experiencing the following issue. > I have a pipeline job (not multibranch). In the job configuration the > Jenkinsfile is checked out from git. The che

Non-lightweight git checkout of Jenkinsfile fails if node parameter is provided

2021-02-24 Thread &#x27;Martin Schmude' via Jenkins Users
Hello all, I am experiencing the following issue. I have a pipeline job (not multibranch). In the job configuration the Jenkinsfile is checked out from git. The checkout is not lightweight (there is a tick "Lightweight checkout", which is not set). A node job parameter is configured. When startin

Re: Can pipelines and stages be nested in a dependency graph? Or is there a better alternative.

2021-02-12 Thread &#x27;Martin Schmude' via Jenkins Users
No, pipeline scripts cannot be nested. Anil schrieb am Donnerstag, 11. Februar 2021 um 16:58:20 UTC+1: > I have a number of tasks and some are dependent on others for completion. > If task A is dependent on tasks B and C completing, then B and C will be > child tasks of A. > It is also possible

Conventions for names of Jenkins jobs and job stages

2021-01-27 Thread &#x27;Martin Schmude' via Jenkins Users
Hello all, at the department I am working at we operate a Jenkins with ~100 pipeline jobs. The jobs have evolved over ~4 years without any conventions about job and stage names. Today we have a mess. Related jobs cannot easily be recognized by name. The "logic" how a job is sectioned into stages

Re: Portable Maven launch

2021-01-25 Thread &#x27;Martin Schmude' via Jenkins Users
The if statement is not a pipeline step. It has to be wrapped in a script block: https://www.jenkins.io/doc/book/pipeline/syntax/#script jochen@gmail.com schrieb am Sonntag, 24. Januar 2021 um 21:30:54 UTC+1: > Thanks, > > sounds like what I was looking for. But then: Any ideas, what's wro

Re: .svn folder getting checked out

2020-12-30 Thread &#x27;Martin Schmude' via Jenkins Users
7;t know. >>> You're the one best positioned to check 😉 >>> >>> Le sam. 26 déc. 2020 à 17:07, Ven H a écrit : >>> >>>> I am pretty sure, it didn't create those folders in the old instance. >>>> We still have the old instance r

Re: .svn folder getting checked out

2020-12-25 Thread &#x27;Martin Schmude' via Jenkins Users
SVN does not download .svn folders, it creates them while performing a checkout. The .svn folders are documented in: http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.basic.in-action.wc. With the older Jenkins instance every SVN checkout must have created a .svn folder too. Maybe you just did

https://issues.jenkins-ci.org/: Certificate problem ?

2020-11-09 Thread Martin Jost
Firefox. Is there a problem with current Firefox and the certificate ? Or do I need to check closer on my side ? Regards Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving ema

What is the right way to use hudson.PluginManager.workDir ?

2020-08-25 Thread Martin d'Anjou
folder is empty. Can someone please explain how to use this feature? Thanks, Martin -- 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-user

Do multibranch jobs lead to code duplication?

2020-07-21 Thread &#x27;Martin Schmude' via Jenkins Users
Dear all, if I understand multibranch jobs right, then a Jenkinsfile in branch "master" will be replicated into all other branches drawn from "master". It has to be like that because the Jenkinsfile is the "marker" that tells Jenkins to build a branch, and how to do that. Branches without a Jen

Re: git plugin: webhooks from different branches trigger all jobs if webhook includes SHA1

2020-07-03 Thread Martin Zechleitner
Is this bug already documented/reported? Is there a fix planned for this bug? -- 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...@google

git plugin: webhooks from different branches trigger all jobs if webhook includes SHA1

2020-07-02 Thread Martin Zechleitner
pected? In my point of view the plugin should also check the branches, even if a hash/SHA1 is added to the webhook. I use Jenkins ver. 2.176.1, git plugin 3.10.1 Best regards, Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" g

Re: git step in pipeline job in Docker container fails

2020-07-02 Thread Martin Schmude
Is there chance, that JENKINS-30600 will ever be fixed? It dates back to 2015, so presumably not? Until then thanks for https://issues.jenkins.io/browse/JENKINS-30600?focusedCommentId=383360&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-383360 This was helpful. --

Re: Unable to get value of password parameter into another parameter

2020-07-02 Thread Martin Schmude
Jerome: can withCredentials() be used in the script of a job parameter of type 'Active Choice Reactive Parameter'? Gajanan: there is a job parameter type 'List Subversion tags (and more)'. May be this satifies your needs. You will have to setup a credential (name+password) in the Jenkins credent

Re: git step in pipeline job in Docker container fails

2020-07-02 Thread Martin Schmude
I forgot the versions. Jenkins: 2.220 git plugin: 4.1.1 Pipeline plugin: 2.6 -- 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...@googleg

git step in pipeline job in Docker container fails

2020-07-02 Thread Martin Schmude
Hi all, I need help with an issue related to the git step in a pipeline job, that is executed in a Docker container. The pipeline looks like this: node('Docker-capable-node') { docker.inside('image-with-git-installed').inside { git credentialsId: 'my-credentials', url: 'https://gitlab.myco

Re: Files sourced on pipeline shell step

2020-06-15 Thread Martin Baillie
I'm experiencing a similar issue, did you find a solution? On Wednesday, 9 January 2019 09:19:25 UTC, Kamil Dzierżanowski wrote: > > Hello, > > I'm trying to determine, which (if any) files are sourced by the shell, in > which commands specified in "sh" pipeline step are executed. I need to make

Using nvm in build shell script causes 'No such file or directory' error

2020-06-15 Thread Martin Baillie
Hi, I'm using Jenkins to build a Cordova project. Recently I've upgraded the Jenkins server (a MacMini running Mojave) from a standard node install to use NVM. I'd like to call nvm from within the build script I call from Jenkins' Build > Execute Shell option. However when I reference nvm fr

Re: NVM on Jenkins

2020-06-15 Thread Martin Baillie
Hi, I am having a similar issue. Did you manage to find a solution? On Tuesday, 19 May 2020 13:13:22 UTC+1, hawk base wrote: > > 1) How to install NVM on the Jenkins Slave? > > 2) How can we make the jobs to use that NVM so that we can install > multiple NodeJS / NPM version? > > Note: I am tryin

Re: automatic up/downstream relationship and fingerprinting

2020-04-22 Thread Martin Jost
tifact - creating totally misleading links between runs. Martin Am Mittwoch, 22. April 2020 17:38:06 UTC+2 schrieb Marco Sacchetto: > > Hi, I'm trying to create a new set of pipeline builds for a number of > modules. > The modules are built with gradle and have dependencies betw

Re: Z/OS Connector: error message ERROR: failed to list available jobs

2020-03-11 Thread Martin Herbst
I think, I have found the reason for the problem: it seems that the firewall blocked it somehow. Am Mittwoch, 11. März 2020 15:10:52 UTC+1 schrieb Martin Herbst: > > I have got two Jenkins installation and from both installations I am > executing jobs on an IBM z/OS. (with the sam

Z/OS Connector: error message ERROR: failed to list available jobs

2020-03-11 Thread Martin Herbst
I have got two Jenkins installation and from both installations I am executing jobs on an IBM z/OS. (with the same user id). On the first machine everything works fine, but on the second machine I have got several problems (tested with pipeline and free style job): 1. If I set the wait tim

How to upload a View configuration to Jenkins

2020-03-09 Thread Martin Jost
quot; [I have seen '500' as reaction to malformed xml passed to Jenkins; but I try to upload the file, I've just downloaded, so it should be fine) What do I do incorrectly ? Or is the documentation incorrect ? (I can download and upload the configuration of jobs, and tried to

How to report a affected Jehnkins/polugin version for an already existing JIRA ticket

2020-03-04 Thread Martin Jost
e.g. LTS here) AFAIK, the issue is currently not addressed in the successor 2.204.4 - If I report a blocker to https://jenkins.io/changelog-stable/, I get asked for a JIRA ticket Regards Martin -- You received this message because you are subscribed to the Google Groups "J

Re: Jenkins 2.204.3 -> java.lang.IllegalStateException: Form is larger than max length 200000

2020-03-03 Thread Martin Jost
Opened https://issues.jenkins-ci.org/browse/JENKINS-61307 for it. Voted on https://jenkins.io/changelog-stable/ accordingly. Am Dienstag, 3. März 2020 12:45:42 UTC+1 schrieb Martin Jost: > > Hello Ulli, > > the issue mentioned is not mine. > I'll open a JIRA, mark the curre

Re: Jenkins 2.204.3 -> java.lang.IllegalStateException: Form is larger than max length 200000

2020-03-03 Thread Martin Jost
Hello Ulli, the issue mentioned is not mine. I'll open a JIRA, mark the current LTS as broken for us and point to it. (More) Details in the JIRA. Martin Am Dienstag, 3. März 2020 11:20:14 UTC+1 schrieb Ullrich Hafner: > > 2.204.4 is on its way, see > https://groups.google.com/d

Jenkins 2.204.3 -> java.lang.IllegalStateException: Form is larger than max length 200000

2020-03-03 Thread Martin Jost
a:747) [Full stack trace below] This seems to happen, since the update to 2.204.3. IIRC we've had that at some time in the past, where there was a WA by handing some option to Jenkins start to increase the size. Does someone have me a pointer to that ? I'll open a bug report on that one.

Re: How to retrieve JENKINS_URL via script "outside" CI ? Or the hostname of the master ?

2020-02-27 Thread Martin Jost
gin <https://wiki.jenkins.io/display/JENKINS/Swarm+Plugin>. So I could check the list of potential hosts; the one answering is the right one. But: > nc -u system1.domain 33848 piep Ncat: Connection refused. Still not there ... Martin Am Do., 27. Feb. 2020 um 19:21 Uhr schrieb Martin Jost <

How to retrieve JENKINS_URL via script "outside" CI ? Or the hostname of the master ?

2020-02-27 Thread Martin Jost
URL used in "wget" above, doesn't help. How can I get that ? I've searched the Web, the REST API and the CLI-interface (using jenkins-cli.jar) in vain. Regards Martin We use this approach, because we swap the physical machine on Jenkins core updates, to keep the old state

Re: Label for boolean entry fields moved to the right ?

2020-02-24 Thread Martin Jost
one vertical line. Did I miss something ? Misunderstand your mail ? Martin Am Sa., 22. Feb. 2020 um 11:10 Uhr schrieb Arnaud bourree < arnaud.bour...@gmail.com>: > IMO, issue is label for Boolean is on right of checkbox and not on left > as for other parameter types > > Le me

Re: git plugin: "No valid HEAD. Skipping the resetting"

2020-02-19 Thread Martin Jost
Hello, I've just ran a test on a trial system with updated plugins. - GIT 4.1.1 - GIT Client 3.1.1 there I didn't see the error message. So we need to find a way to update it seems... Martin Am Mi., 12. Feb. 2020 um 15:43 Uhr schrieb Martin Jost < mj1414213...@gmail.com>

Re: Label for boolean entry fields moved to the right ?

2020-02-19 Thread Martin Jost
ght take “some” time. Martin Am Mo., 17. Feb. 2020 um 17:38 Uhr schrieb Martin Jost < mj1414213...@gmail.com>: > Hello, > > update to my own post. > >1. 2.204.1 shows the same behaviour (checked with a colleague) >2. 2.89.4-ece-1 ("somewhat dated") show

Re: Label for boolean entry fields moved to the right ?

2020-02-17 Thread Martin Jost
ay/JENKINS/Parameterized+Build also show the labels on the right. Martin Am Montag, 17. Februar 2020 17:09:57 UTC+1 schrieb Martin Jost: > > Hello, > > it seems in the parameters for a job, the labels (==variable names) for > Boolean entry fields moved from the left to the righ

Label for boolean entry fields moved to the right ?

2020-02-17 Thread Martin Jost
es involved ? I would like to get the labels for boolean fields back to the left side, together with the remaining labels. Thanks Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop rece

Re: git plugin: "No valid HEAD. Skipping the resetting"

2020-02-12 Thread Martin Jost
sts pass with your change." sorry Mark, I'm not up to that. And I learned that we somehow need to get around our blocker for updating the plugins. Thanks for looking into this and the info Martin Am Dienstag, 11. Februar 2020 18:42:28 UTC+1 schrieb Mark Waite: > > > > On T

git plugin: "No valid HEAD. Skipping the resetting"

2020-02-11 Thread Martin Jost
e existing workspace on a branch. Is this a git plugin bug ? (I couldn't find a note on that in the release notes after 3.12.1.) Is it worth reporting as a bug ? I see no bad effects as far as I can tell, but the message is annoying. Thanks Martin -- You received this message bec

Re: How to access nfs volume from jenkins agent

2019-12-20 Thread Martin d'Anjou
Can you specify which plugin you are talking about? For NFS access, the usual way would be to make the jenkins account a member of a unix group with the right access level (read, read/write) for the NFS folder. On Wednesday, December 18, 2019 at 10:05:53 PM UTC-5, Desmond Lee wrote: > > For the

[Announcement] External Workspace Manager 1.2.1 fixes backward compatibility problem with Jenkins 2.150.x

2019-11-04 Thread Martin d'Anjou
Hello, I would like to announce that release 1.2.1 of the external workspace manager plugin <https://github.com/jenkinsci/external-workspace-manager-plugin/> (released a few days ago) fixes the backward compatibility problem encountered in Jenkins 2.150.x. Best, Martin d'Anj

Re: Whats is the format for custom pipeline library help files?

2019-10-22 Thread Martin d'Anjou
Thanks. That works. For the record, it was under the Configure Global Security section (not under configure system). On Tuesday, October 22, 2019 at 2:45:50 AM UTC-4, r.fuereder wrote: > > Hi Martin, > > > > This (markup rendering) works fine for me (with HTML markup used i

Re: Whats is the format for custom pipeline library help files?

2019-10-18 Thread Martin d'Anjou
markup. It is not a critical thing. Best, Martin On Friday, October 18, 2019 at 6:23:08 PM UTC-4, Mark Waite wrote: > > https://github.com/jenkins-infra/pipeline-library/tree/master/vars seems > to include HTML markup in the txt file. For example, runATH.txt starts > with: > &g

Whats is the format for custom pipeline library help files?

2019-10-18 Thread Martin d'Anjou
i/docker-workflow-plugin/blob/6e99c93105d9fb1f2c7b2ee4896ee8f23cd98233/src/main/resources/org/jenkinsci/plugins/docker/workflow/DockerDSL/help.jelly> and after trying, jelly is not a supported format for the help files. Thanks, Martin -- You received this message because you are subscribed to

Re: Anyway to programatically update a Jenkinsfile?

2019-10-06 Thread Martin d'Anjou
at you can try in Groovy. Martin -- 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 discuss

Re: Programmatically searching the artifacts from multiple jobs

2019-08-19 Thread Martin d'Anjou
erflow.com/questions/35920756/is-there-any-jenkins-api-to-get-artifacts-name-and-download-it Martin On Sunday, August 18, 2019 at 2:40:37 PM UTC-4, Tony Cappellini wrote: > > Perhaps. I'll have to give it a try to see what its limitations are. > > When you have 5-10 artifacts p

Re: Programmatically searching the artifacts from multiple jobs

2019-08-18 Thread Martin d'Anjou
Could the run selector plugin help? https://github.com/jenkinsci/run-selector-plugin Martin -- 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 jenki

Accessing user build variables of another build

2019-08-18 Thread Martin d'Anjou
Have a look at https://github.com/jenkinsci/run-selector-plugin/blob/master/README.md Martin -- 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 jenki

Re: Can we use and stash and unstash to copy artifacts from one job to another

2019-07-02 Thread Martin d'Anjou
You can use the external workspace manager for this purpose. No copies are made, just reuse the same workspace between jobs. Examples are provided in the README. On Monday, July 1, 2019 at 4:37:40 AM UTC-4, sirisha sai wrote: > >

Re: Unique name (current date+new build number) for build in jenkins Job

2019-02-16 Thread Martin d'Anjou
The rest you have to compute with more code. You probably have to do null checks if runWrapper ends up being null. Hope this helps, Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop rec

Re: Unique name (current date+new build number) for build in jenkins Job

2019-02-10 Thread Martin d'Anjou
resetting sequence number. You can do this with a database but it is more work. Martin On Sunday, February 10, 2019 at 8:05:50 AM UTC-5, Baptiste Mathus wrote: > > IMO, do not do that. > I think you are going to suffer a lot from trying to maintain that system, > like never ever have interme

Re: Unique name (current date+new build number) for build in jenkins Job

2019-02-09 Thread Martin d'Anjou
ort/steps/build/RunWrapper.html>, including methods that you can use to determine if you are at the first build of the day. Hope this helps, Martin On Saturday, February 9, 2019 at 2:16:55 AM UTC-5, Pradeep Drall wrote: > > Hi, > > > > I would like to save the build file (ipa and

Re: how to find how a Jenkins instance is installed?

2018-11-14 Thread Martin d'Anjou
If you mean how do you test if an instance is ready (after a restart), you can use curl. httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL) while [[ $httpCode != "200" ]]; do sleep 5 httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL) done echo "Jenkins is ready." On Wedne

Re: Issue with spaces in string parameter

2018-11-12 Thread Martin d'Anjou
I doubt that would fix it, I was curious and try it. Jenkins trims, but it does not split the value on spaces. The problem might be on how you pass the value to your python script. Can you share that? Martin On Monday, November 12, 2018 at 8:15:55 AM UTC-5, Danny Jacob wrote: > > U

Re: How to handle complex job dependency?

2018-11-12 Thread Martin d'Anjou
could be a way to store that info there too. Martin On Monday, November 12, 2018 at 9:00:36 AM UTC-5, ZillaYT wrote: > > Thanks Martin, though you just reworded my post. > > But yes one approach to consider is being able to store which, for > example, versions have been run by depl

Re: How to handle complex job dependency?

2018-11-10 Thread Martin d'Anjou
lity level somewhere persistent, maybe as a property of the artifacts in the docker repo (if that is possible?). Artifactory supports properties, or maybe you need a database. Hope this helps at least from a conceptual point of view. Martin On Friday, November 9, 2018 at 10:41:21 AM UTC-5, Zil

Re: Need help debugging ChannelClosedExceptions

2018-11-08 Thread Martin d'Anjou
<https://gitter.im/jenkinsci/remoting> channel and ask about this plugin. I agree it would be better to find the root cause of the problem though. Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe fr

Re: curl syntax to send and receive REST Service API response (xml) from jenkins

2018-10-30 Thread Martin d'Anjou
dit?usp=sharing> too. Martin On Monday, October 29, 2018 at 9:02:30 PM UTC-4, panneerrselvam natarajan wrote: > > Hi Prasad, > > Thanks for your response. > > I am getting response using HTTP instead of HTTPS and stored in xml file.. > How do i read the xml file? > The

Re: Logging of plugins

2018-10-27 Thread Martin d'Anjou
I wonder if we could make that a GSoC project for next year. Any opinions? On Tuesday, October 23, 2018 at 3:49:09 PM UTC-4, gotvi...@gmail.com wrote: > > How do we capture the logs of activities of each plugin we install in > Jenkins? > > We use Audit Trail plugin. But, that doesn't capture the

Re: How to configure workspace on the Jenkin

2018-08-05 Thread Martin d'Anjou
er+Plugin>. Martin -- 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 o

Re: Project with several Git repositories

2018-05-12 Thread Martin d'Anjou
You can write a Jenkinsfile that creates a clone of any git repository (calling out to Git with sh step for example), hence Jenkinsfiles can be central for however many repositories you have. No need for 100's of copies of the same Jenkinsfile in 100's of git repositories. You can create and ma

Re: Problems adding a slave agent to Jenkins (java.io.IOException: https://myjenkins.org/tcpSlaveAgentListener/ is invalid: 404 Not Found)

2018-05-02 Thread Martin Blankenstein
Hi again, no it works. I needed to update the JRE on the windows machine (SSLHandshakeException). And the firewall wasn't configured for the "fixed" jnlp-port (Failed to connect). Thank you, Martin Am Montag, 30. April 2018 14:53:02 UTC+2 schrieb Martin Blankenstein: > &g

Re: Problems adding a slave agent to Jenkins (java.io.IOException: https://myjenkins.org/tcpSlaveAgentListener/ is invalid: 404 Not Found)

2018-04-30 Thread Martin Blankenstein
erver. I tried different JREs on the agent machine because I found this <https://support.cloudbees.com/hc/en-us/articles/115003785531-SSL-handshake-failures-due-to-incompatible-Cipher-Suite> (even if the server JRE isn't 162+). You know what I missed this time? Thanks a lot! Martin A

Problems adding a slave agent to Jenkins (java.io.IOException: https://myjenkins.org/tcpSlaveAgentListener/ is invalid: 404 Not Found)

2018-04-30 Thread Martin Blankenstein
/tcpSlaveAgentListener/> is invalid: 404 > Not Found > at > org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:197) > at hudson.remoting.Engine.innerRun(Engine.java:518) > at hudson.remoting.Engine.run(Engine.java:469

Problems adding a slave agent to Jenkins (java.io.IOException: https://jenkins.orgavision.org/tcpSlaveAgentListener/ is invalid: 404 Not Found)

2018-04-30 Thread Martin Blankenstein
t > org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:197) > at hudson.remoting.Engine.innerRun(Engine.java:518) > at hudson.remoting.Engine.run(Engine.java:469) I couldn't find another way in the docu - https://jenkins.io/do

Problems adding a slave agent to Jenkins (java.io.IOException: https://jenkins.orgavision.org/tcpSlaveAgentListener/ is invalid: 404 Not Found)

2018-04-30 Thread Martin Blankenstein
https://jenkins.orgavision.org/tcpSlaveAgentListener/ > is invalid: 404 Not Found > at > org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:197) > at hudson.remoting.Engine.innerRun(Engine.java:518) > at hudson.remoting.En

Re: Pipeline: Get variable value, when its name is stored in another variable

2018-04-29 Thread Martin d'Anjou
_FOLDER=path/to/folder export TEMP=FIRST_FOLDER echo ${!TEMP} ''' sh script } Martin On Sunday, April 29, 2018 at 11:21:35 AM UTC-4, Shiran wrote: > > Hi, > > I want to get a variable's value, and I have its name stored in another > variable: > > I need to get

Jenkins refuses to queue and run identical consecutive build requests from curl

2018-04-17 Thread Martin d'Anjou
pr 2018 00:06:34 GMT X-Content-Type-Options: nosniff Location: http://localhost:8080/queue/item/17/ Content-Length: 0 Server: Jetty(9.2.z-SNAPSHOT) What's wrong? How do I get Jenkins to queue all my build requests? Martin -- You received this message because you are subscribed to the Googl

Chart repository on private GitHub - connection issues

2018-02-14 Thread Duncan Martin
Hi I have a chart repo hosted inside a private GitHub account. I followed the process here: https://hackernoon.com/using-a-private-github-repo-as-helm-chart-repo-https-access-95629b2af27c and was able to add it as a repo in Helm on an Azure server using a command of the format: helm repo a

Jenkins organization project won't build a branch that was orphaned / removed after the branch has been restored

2018-01-19 Thread Troy Martin
We have a Jenkins organization project that tracks our company's private repositories. Each git branch has a Jenkinsfile at the root of the repo. One of the branches, development, was accidentally deleted and then put back. Jenkins saw the delete as an orphaned branch and removed it: Evaluating

Re: Problems with CSRF protection in Jenkins 2.85

2017-11-22 Thread Martin . Jost
an use wget … --user=jm0 --password= … --header='Jenkins-Crumb:30430……71b' or wget http://jm0:PW@... --header='Jenkins-Crumb:30430……71b' both work with the crumb Hope this might help others Martin No I just would need to know, that the error messa

Re: Docker-plugin - ssh connection refused when connecting to slave

2017-10-20 Thread Martin Heg
sk enter the queue and destroyed on completion. My experiments on > one-shot-executor give me some ideas on how to improve this process without > being too much hack-ish :D > > 2017-10-20 16:16 GMT+02:00 Martin Heg : > >> Aha - yes I have 'Docker Host URI' set to 'u

Re: Docker-plugin - ssh connection refused when connecting to slave

2017-10-20 Thread Martin Heg
from jenkins master is a container, not > the docker host, so can't connect to ssh slave. > I assume you have master to access docker.sock to run this sibling > container ? So master has no way to guess the external IP > > 2017-10-20 14:51 GMT+02:00 Martin Heg : > >> What I s

Re: Docker-plugin - ssh connection refused when connecting to slave

2017-10-20 Thread Martin Heg
What I should add once more just to clarify is that the slave container does actually get started (and hence why I am able to try manually ssh-ing into it) - it stays running for a few minutes and then exits. On 20 October 2017 at 13:34, Martin Heg wrote: > Frustrating thing is tha

Re: Docker-plugin - ssh connection refused when connecting to slave

2017-10-20 Thread Martin Heg
20 October 2017 at 13:25, Martin Heg wrote: > Yes - jenkins master running in container. > From the docker host I can manually ssh into the slave container with: > ssh -p *ephmeral_port* jenkins@0.0.0.0 > If I docker exec into the jenkins master I can also ssh into the slave > cont

Re: Docker-plugin - ssh connection refused when connecting to slave

2017-10-20 Thread Martin Heg
ins@*hostip* h. On 20 October 2017 at 13:05, nicolas de loof wrote: > Is your jenkins master running in a docker container as well ? > > stacktrace seems to demonstrate failure to establish a route to > 0.0.0.0:32791, even before any SSH authentication attempt > > 2017-10-20 1

Re: Docker-plugin - ssh connection refused when connecting to slave

2017-10-20 Thread Martin Heg
Thanks for your reply Nicolas. Yes I saw that suggestion in one of your other posts and have already tried it but still seeing the same issue unfortunately. On 20 October 2017 at 11:11, nicolas de loof wrote: > to use your own SSH credentials you need to disable the "SSH key > management" option

Re: first configuring "Jenkins"

2017-09-27 Thread Martin
f Jenkins is something is somehow way to hard to get done. To get stuff done I'll definitely go down that route but to minimize maintenance efforts I'd rather have it in a Groovy script (that is despite not having done a whole lot of it; actually: 0). Using a scripting language and API jus

Re: first configuring "Jenkins"

2017-09-27 Thread Martin Marcher
h. I just can't get a starting point. I'll try and take a look at the examples in https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console now that I have a pointer to it... Best, Martin On Wednesday, September 20, 2017 at 11:23:14 PM UTC+2, Diego Lagos wrote: > > I wou

Re: Pinning a node to a particular workspace in jenkins pipeline?

2017-09-06 Thread Martin d'Anjou
ou need help to set it up, post your question here, I should be able to help you. Martin -- 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 jenkinsc

Inventory of development flows for Jenkinsfile and Pipeline Library

2017-09-06 Thread Martin d'Anjou
y not giving these projects the full credit and description they deserve, feel free to comment and complete the list. I feel the objective is within reach, what do you think? Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Global groovy shared library (package), having two classes, import B from A

2017-06-28 Thread Martin Holeček
implements java.io.Serializable { mmethodi xmeth; ... Thanks! Martin -- 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...@googlegrou

Re: Help request: Naming things is hard (JENKINS-43426)

2017-04-21 Thread Martin d'Anjou
ds compatibility we cannot change the >syntax, so my solution is to allow plugins to extend and add traits for > the >different syntaxes. > >To retain backwards compatibility of existing configurations, we need >to provide one that uses the curren

Re: Iteration over list or map in Pipeline script

2017-03-16 Thread &#x27;Martin Schmude' via Jenkins Users
Thank you all for the clarification. Am Montag, 13. März 2017 15:26:44 UTC+1 schrieb Martin Schmude: > > Hello, > > I have a freestyle job with one step of the kind "Execute Groovy Script". > Its Groovy code is > > def x = ['a', 'b', 'c&#

Iteration over list or map in Pipeline script

2017-03-13 Thread &#x27;Martin Schmude' via Jenkins Users
Hello, I have a freestyle job with one step of the kind "Execute Groovy Script". Its Groovy code is def x = ['a', 'b', 'c'] println x x.each { println it } The output of this job is (not surprinsingly): [Test-Groovy2] $ groovy /var/lib/jenkins/workspace/Test-Groovy2/hudson3825239812036801886

Re: Overriding default Multibranch Pipeline job parameters defined in a Jenkinsfile

2017-02-24 Thread Martin Pradny
I was dealing with similar issue today and only place that I could use to store config was credentials secret text. I stored config as a map and in pipeline, within withCredentials block, I used Eval statement to convert it to proper map, so I could use current branch name as a key to get value.

What is dynamic reporting, and is there plugin support?

2017-01-19 Thread Martin d'Anjou
Hi, I just heard the term "dynamic reporting". I am not familiar but I can guess what it means (report while tests are still running). Where can I see this in action? What plugins support it? Thanks, Martin -- You received this message because you are subscribed to the Google Groups

Pipeline-groovy, ProcessImpl, not serializable variables

2017-01-15 Thread Martin Holeček
lizable } Thank You very much! Martin -- 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 th

Howto trigger a remote job from a pipeline job

2016-12-06 Thread &#x27;Martin Schmude' via Jenkins Users
Hello, I want to trigger a parameterized remote job from a pipeline job and can't find out, if this is possible, and if so how to code the trigger. There is a build step for Jenkins pipelines, that triggers jobs. But it seems, that it cannot be applied to remote jobs. Any help? Thanks! -- You

  1   2   3   >