Re: Two builds for PRs

2019-04-02 Thread 'Björn Pedersen' via Jenkins Users
Hi, a wild guess: Is this a timing problem? So the push to branch gets build before the pull request is filed? push to (new) branch ---> build 1 triggered --> file PR ---> build 2 triggers ??? Am Dienstag, 2. April 2

Re: Pipeline: Shell step oddity removes escaped slash

2019-06-12 Thread 'Björn Pedersen' via Jenkins Users
Am Dienstag, 11. Juni 2019 13:14:28 UTC+2 schrieb Sverre Moe: > > I have the following Pipeline step to find specific files: > sh("find . -regex '.*${packageName}-[0-9.]+-.\\.noarch\\.rpm'") > > You' ll need to escape the backslashes twice: once for groovy and once for the shell sh("find . -reg

Re: Programmatically searching the artifacts from multiple jobs

2019-08-11 Thread 'Björn Pedersen' via Jenkins Users
Hi, I think the best solution would be to use warnings-ng and set up suitable custom parser (I assume that none of the many available parsers fit your use-case). Possibly in combination with the Build Failure Analyzer plugin your jobs will show the correct status and where the errors happed.

Re: problems changing triggers{} in multibranch pipeline Jenkinsfile

2019-10-04 Thread 'Björn Pedersen' via Jenkins Users
Hi, Am Freitag, 4. Oktober 2019 02:03:17 UTC+2 schrieb Tim Black: > > We have a multibranch pipeline job set up to scan a git repo (which > contains Jenkinsfile at its root) for branches and create branch-specific > jobs for each branch discovered. The Jenkinsfile on a branch specifies: > >

Re: How to force jenkins to use $JAVA_HOME/ instead of $JAVA_HOME/jre?

2019-11-14 Thread 'Björn Pedersen' via Jenkins Users
Hi, Maybe this be a stripped down/incomplete jdk install. If looking into one of my jdk installs(manual install with oracle installer), there is a jre subdirectory present. Björn -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscr

Re: How to identify the compatibility plugins?

2019-12-02 Thread 'Björn Pedersen' via Jenkins Users
Hi, Am Dienstag, 3. Dezember 2019 08:00:10 UTC+1 schrieb YanJun Shi: > > Hi, everybody > > When I use Jenkins, I find that the effect of selecting 'all' and > 'compatibility' in 'plugins manager' is the same, I want to know how to > distinguish between compatible plugins. HI > In mos

Re: What compression algorithm is used by the pipeline zip step, and is it tunable?

2019-12-02 Thread 'Björn Pedersen' via Jenkins Users
Hi, I would probably try to compress on the agent before even trying to transfer the large data to the master. This avoids load on the master a) due to transfer and b) due to compression. And if the artifacts get really huge, consider storing them independent from jenkins (S3, maven-style repo

Re: How to identify the compatibility plugins?

2019-12-04 Thread 'Björn Pedersen' via Jenkins Users
; compatible. > > On Tue, Dec 3, 2019 at 3:05 PM 'Björn Pedersen' via Jenkins Users < > jenkins...@googlegroups.com > wrote: > >> Hi, >> >> Am Dienstag, 3. Dezember 2019 08:00:10 UTC+1 schrieb YanJun Shi: >>> >>> Hi, everybody >

Re: editing jenkins jobs in shell / vi / ssh

2019-12-12 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, this looks really unusal and has nothing to do with editing in itself. It looks like your http request is never sending data to the server , so most probably something is misconfigured (proxy?) or you are on an extremly slow network (less than 1byte/5 seconds?) . Björn Am Donnerstag, 12

Re: why does multibranch pipeline fetch branch source 3 times?

2019-12-18 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 17. Dezember 2019 17:23:15 UTC+1 schrieb Tim Black: > > Understood. Note that, even with "CleanBeforeCheckout" I have to "re fetch > tags" because my initial checkout, the one that "Discover Tags" causes, is > cleaned up afterwards. This is very counter-intuitive, because there's n

Re: Changes not being displayed on jenkins build summary and in email body

2020-01-09 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Donnerstag, 9. Januar 2020 15:59:08 UTC+1 schrieb Dominic Espiritu: > > On my jenkins Job (type of pipeline), I use gerrit-trigger and on the > pipeline script definition I run "git fetch --tags --progress -- > ${PROJECT_URL} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD", > You need to make

Re: Push sources checked out from Gerrit to Git on jenkins Job using pipeline

2020-01-13 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, Checkout from the source with scm and just add a shell step that does the push. Per default the scm implementation also will use the installed commandline git client. If you need credentials for the push, you can wrap the shell step in a withCredentials. But maybe just using the gerrit rep

Re: Need Help in executing Rest API in Jenkins Job

2020-01-13 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, from your GIT Bash mention I assume that you are running on Windows. Are you sure jenkins is using your git bash as shell, and not either another bash or powershell? Or is it even running on a different host, where may some programms (curl/sed) are not available? Try running just curl to

Re: Perform actual hardware tests using jenkins pipeline and kubernetes

2020-01-19 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, configure each HW-machine as an agent with appropirate labels and the request these labels in your job. I recommend to use the modern pipeline jobs as there you only need to request all the wanted labels in a node(). Otherwise you probably need the multi-job plugin. Björn Am Montag, 20.

Re: Git Plugin - How specify use ssh in "Repository URL" ?

2020-01-23 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
HI, that is a hostkey verifiicaction error. Solution: a) manually install the hostkey on the build agent b) configure ssh to skip hostkey verification (the more insecure option) Björn Am Dienstag, 21. Januar 2020 18:24:55 UTC+1 schrieb Ed of the Mountain: > > *What I Tried:* > > 1) Set *Sourc

Re: Jenkins.war and Jenkins as service

2020-03-24 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 24. März 2020 08:13:10 UTC+1 schrieb raviraj shitole: > > Hi Mark, > > Thank you was able to install the agent as a service, but now when i > execute the tests chrome browser is not visible on the desktop. The process > starts in the background and exits. > How do i make the brows

Re: Jenkins.war and Jenkins as service

2020-03-24 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 24. März 2020 10:26:23 UTC+1 schrieb raviraj shitole: > > Actually its an organization wide setup which is done as a service(Jenkins > is installed as a service on Ubuntu) > > That's the reason i am trying to connect it that way. Everything is > working fine, even the chrome browse

Re: python script not executing in "execute python script" step

2020-04-27 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, this looks like there is no python in the path on the agent running the job. The "Execute python" step will not magically supply a python installation. Björn -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this grou

Re: Unable to install or update plugins in jenkins

2020-05-22 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, this looks like a dependency can not get installled., probably due to jenkins not seeing the update center. So you need to manually upload all dependencie before your plugin. Björn Am Donnerstag, 21. Mai 2020 13:07:19 UTC+2 schrieb Sivakumar Durairaj: > > Hi, > > I am running jenkins in c

Re: Multi-line parameter description in declarative pipeline

2020-06-15 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Montag, 15. Juni 2020 14:45:42 UTC+2 schrieb Al Silver: > > If I remove the spaces/tab at the beginning of the line, I'm left with > "ugly" code that's not maintaining indentations... T > Not remove from the source, but from the assigment value: """ -... - ""..stripIndent() >

Re: Need help - build "Execute Shell"

2020-07-29 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
>- > > >Create an SSH key pair (public/private) Ran the command “ssh-keygen -t >rsa -C "Jenkins agent key" -f "jenkinsAgent_rsa" “ >- > >Create an SSH credential in the Jenkins machine and put the private >key there Created the credentials and put jenkinsA

Re: Multibranch Pipeline job creating multiple Checkout Directories in Workspace

2020-08-20 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
This standard behaviour if jobs run in parallel. The first run uses: trunk%2FPlatform => the workdir for the job trunk%2FPlatform@tmp => the checkout for the Jenkinsfile to set up the job. the @n dirs are created for further parallel runs. Björn > -- You received this message because you are

Re: [Gerrit-Trigger Plugin] Unable to connect successfully to our Gerrit server via the REST API

2020-08-24 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, the gerrit-trigger-plugin requires ssh access ( stream-events is only available via ssh in a standard setup). Check the gerrit code review plugin (https://plugins.jenkins.io/gerrit-code-review/) if you don't need stream events triggering. Björn bbr...@ucdavis.edu schrieb am Sonntag, 2

Re: Help with JNLP-agent lost connections, Nothing on Google helps.

2020-09-22 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Current Weekly ( that is what it seems you are using) is 2.257 now. There were some changes to remoting, so make sure the agent.jar on the the client machines is up-to-date as well. And how do you connect to the windows clients? Running it as a windows service, manually starting it , ssh ???

Re: How do you set java options for ssh agents

2020-09-28 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
I think this is simply because the agent process survives the master restart (that is actually a feature) so if agent settings change, you need to disconnect and connect the agent (or otherwise restart the agent process to pick up the changes). timb...@gmail.com schrieb am Freitag, 25. Septemb

Re: calling builder template and portallocator plugin from workflow plugin

2016-03-15 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
It seems like this needs a major rework for port-allocator: See https://issues.jenkins-ci.org/browse/JENKINS-31449 Björn Am Sonntag, 6. September 2015 21:37:13 UTC+2 schrieb David Karlsen: > > No-one? > > tirsdag 1. september 2015 12.58.07 UTC+2 skrev David Karlsen følgende: >> >> Hi. >> >> Ho

Re: [workflow] Git step to check out a commit instead of a branch

2016-03-20 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, you could install gerrit-trigger-plugin (you do not need to use gerrit for your use-case) and use the gerrit-trigger checkout strategy that can use hashes/tags/etc... Björn Am Mittwoch, 25. März 2015 15:26:37 UTC+1 schrieb Lóránt Pintér: > > Hi, > > Is it possible to check out a particula

Re: Jenkins 2.x Pipeline - parametrized build, parameters are not evaluated in Git

2016-04-05 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, yes, I can confirm that behaviour. Taking a closer look at the log shows that any build wrappers that inject e.g. Environment vars are not running at this early stage. My guess is, that the assumption was that these wrappers are instantiated in the Jenkinsfile, so that they are not yet kn

Re: Jenkins as build , deploy machine and windows 7 as a selenium driver test slave machine

2016-04-14 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 12. April 2016 16:13:45 UTC+2 schrieb Antonio Hernandez: > > > Windows 7 machine that i'm sending this: > --- > cmd.exe > cd C:\Local_path\ Run_param.bat > --- > Really ? I would expect to use a Execute Windows Batch build step with something

Re: Git Client Plugin - Version info

2016-04-19 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Seem like this is a cache problem again: https://groups.google.com/forum/#!searchin/jenkinsci-users/wiki$20git-client/jenkinsci-users/KQvx8FNN6j4/4esJW6FLMAAJ Am Montag, 18. April 2016 22:18:36 UTC+2 schrieb Ashish Yadav: > > This page is coming up ‘blank' for me. > https://wiki.jenkins-ci.or

Re: Webpage for Git Client Plugin is empty

2016-04-19 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Mittwoch, 13. April 2016 19:03:37 UTC+2 schrieb Daniel Beck: > > > On 13.04.2016, at 18:30, Daniel Beck > > wrote: > > > Cache weirdness, I think: > > https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin?foo > > > > Not sure how to fix though, I'll ask Tyler. > > It's fixed now.

Re: Git Plugin: merge before build not working?

2016-04-22 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, for me it wis working fine, although the setup is slightly different: 1) I have the full refspec specified: refs/...:refs/... 2) Additionally I use the gerrit trigger checkout strategy to really build a specific change. checkout(changelog: false, poll: false, scm: [$class: 'Git

Re: can't trigger remote buildWithParameters to save my life

2016-05-11 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, And take a look at https://wiki.jenkins-ci.org/display/JENKINS/Build+Token+Root+Plugin as well. This should help you to not require overall read permissions. Björn Am Mittwoch, 11. Mai 2016 09:48:55 UTC+2 schrieb Sorin: > > Oh and a PUT can trigger as well - I'll rather take PUT. > Many tha

Re: Failed to connect to repository : Remote host closed connection during handshake

2016-05-13 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, Either that (seems not to be the case) or the owner is wrong. Make sure this is owned by the same user that jenkins is running as. Björn -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receivin

Re: Dedicated Executors for specific Jobs

2016-05-19 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
You can have slaves running on the master (using docker has been named). The simplest solution ist to use e.g. a ssh slave on the same machine. Björn -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop rec

Re: Problems running a job with rake

2016-06-08 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Mittwoch, 8. Juni 2016 00:30:32 UTC+2 schrieb ziffification: > > > I have rake running as default OS version of ruby > > > > > Building in workspace /var/lib/jenkins/workspace/test2 > [test2] $ rake --rakefile /var/lib/jenkins/workspace/test2/Rakefile features > FATAL: rake execution failedja

Re: Problems running a job with rake

2016-06-10 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
jenkins -> Manage jenkins -> global tool configuration (or if you have many slaves with different locations, in node config -> node properties. Björn Am Donnerstag, 9. Juni 2016 19:32:03 UTC+2 schrieb ziffification: > > thanks Bjorn! > > can I ask how I specify the path ? it looks like in th

Re: Workspace race condition with gerrit triggers

2016-06-13 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, if it is a shared workspace, then yes, it will have a race condition. Use one of the lock-out plugins to limit the concurrency of the job to 1, then the jobs will get queued instead. Björn Am Montag, 13. Juni 2016 09:58:44 UTC+2 schrieb Berceanu Cristian: > > I have a very simple build ste

Re: [Jenkins-infra] Scheduled infrastructure maintenance window June 14 00:00 UTC

2016-06-14 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, seems like the links from changelog pages are broken now ( https://issues.jenkins-ci.org/browse/WEBSITE-187) Björn Am Dienstag, 14. Juni 2016 02:12:54 UTC+2 schrieb R Tyler Croy: > > (replies inline) > > On Mon, 13 Jun 2016, R. Tyler Croy wrote: > > > Reminder, this will be happening in a

Re: Pipeline: Defined parameters are not available in the build

2016-06-22 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Is '../projectA/master' configured to accept parameter PROP_VERIFY (In the job definition, not in the Jenkinsfile)? Else I guess due to SEC-170 fixes, the parameter is not propagetd to the environment. Actually that would be a chicken-and-egg type problem. You need to get and execute the current

Re: What are the rules for Jenkins Pipeline to allocate workspaces, are ephemeral workspaces possible?

2016-06-22 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, the pipeline tutorial explains workspace quite well: https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#allocating-workspaces The default workspace created by 'node' is 'locked' to a single run of the appropriate node part. It is not cleared by default. If you need more th

Re: Does Role-based Authorization Strategy has users limit?

2016-06-23 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
You need to restart jenkins hard to get any effect, I guess. And depending how your jenkins server is deployed, see https://issues.jenkins-ci.org/browse/JENKINS-30062?focusedCommentId=236731&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-236731 as well. Am Donner

Re: How to override the environment variables for Jenkins slave when adding new slave to the Jenkins master?

2016-06-28 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, can you check if the necessary parent dirs are there on the slave and have the correct access permissions for the jenkins user? /home/csbuild/build And can the slave reach the https://repo.maven.apache.org

Re: Jenkins ui not loading sometimes

2016-06-30 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, I see lots of "Handling POST /jenkins/view/Dashboard/timeline/data/ from : http-bio-8080-exec-643" Id=40861 Group=main BLOCKED on hudson.model.RunMap@1e73d746 owned by "Handling POST /jenkins/view/Dashboard/timeline/data/ from : http-bio-8080-exec-547" Id=40663 in the dump. That ind

Re: Pipeline: connection is not authenticated

2016-06-30 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
>From the error message it looks like a jgit acces. I think the buitl-in jgit will not read the ssh key unless it is stored in the credentials( as it seems from your description, all user pub keys are allowed, so you just need to add the user 'jenkins' private key (not the git one). Björn Am

Re: Jenkins plug-in

2016-07-01 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, Install the plugin-usage plugin. This twill give you the information (at least for plugins that are explicitly configured in jobs. Library plugins are not always detected). Björn Am Freitag, 1. Juli 2016 09:05:18 UTC+2 schrieb Oparlescu Vlad: > > Hello everyone, > > I'm new to Jenkins and

Re: High CPU usage with Gerrit Trigger plugin

2016-07-01 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, you could check if this is caused by the mina/ssh problems in gerrit: See e.g. https://groups.google.com/forum/#!searchin/repo-discuss/open$20connections/repo-discuss/O1Beo9wRPjc/UziifXyZCAAJ It could be that the plugin just loops on trying to re-open a lost connection. Björn Am Donnerstag

Re: How exactly does stash / unstash work AND how to use the same node in different stages

2016-07-01 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, Maybe https://groups.google.com/d/msg/jenkinsci-dev/nAZD0-upB68/YwYjqmKgAwAJ can be of help for you? Björn Am Donnerstag, 30. Juni 2016 18:03:19 UTC+2 schrieb Christian Ditscher: > > Hello, > > I was wondering how exactly the stash unstash commands work. When are the > files transferred

Re: Access workspace of other project

2016-07-11 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, as the workspace is a volatile object in the general case, you should consider https://wiki.jenkins-ci.org/display/JENKINS/Clone+Workspace+SCM+Plugin. Björn Am Montag, 11. Juli 2016 16:16:55 UTC+2 schrieb jer...@bodycad.com: > > Hi, > I have a project that run some code analysis after t

Re: Access workspace of other project

2016-07-11 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
s wrong and > failing the Qml inspection is not as vital as a compilation failure, so a > warning into Qml inspection or Doxygen generation is not as bad as warning > into compiling. > > Jerome > > > On Mon, Jul 11, 2016 at 10:38 AM, 'Björn Pedersen' via Jenki

Re: Environmental values from a Groovy Pipeline.

2017-11-30 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, it depends on where in your code you are trying to use this. A workspace is only available (and the env set) while inside a node or ws block. And beware, when different parts of the pipeline run on different node, then each part has it's own workspace, possibly even at different locations.

Re: Pip not able to run inside container if using extra index

2017-12-07 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, there are two things to consider: 1) does the jenkins host allow access to outside services? 2) Jenkins will run things in the container as user 'jenkins', not as root, which is the default if you are using "docker run". If you did not omit the virtualenv actviation for brevity here, p

Re: java.lang.OutOfMemoryError: unable to create new native thread

2017-12-14 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Montag, 14. April 2014 22:30:37 UTC+2 schrieb solid: > > Hi Guys > > > JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Xmx2048m > -XX:MaxPermSize=1024m" > Well that's 2GB allocated to jenkins. Which is not too bad, depending on the number of jobs and the discard-build settings. (always und

Re: Declarative script not archiving artefacts

2018-01-18 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
always { > > archiveArtifacts artifacts: > '$WORKSPACE/RegressionTests/**/*.zip' > > The artifacts should be specified relative to the workspace, so the $WORKSPACE/ seems wrong. archiveArtifact will not archive files outside the current workspace Björn -

Re: Powershell step in pipeline not executing

2018-01-18 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, I have no experience with declarative pipelines, but configFileProvider is a standalone step , not taking a body like you use it (it's not a withConfigFile...) try: echo "Getting version for ${env.projectDir}" configFileProvider([configFile(fileId: '52c08128-

Re: List of git branches using Jenkinsfile parameters

2018-02-20 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, Take a look at: https://wiki.jenkins.io/display/JENKINS/Git+Parameter+Plugin and https://stackoverflow.com/questions/10433105/dynamically-fill-jenkins-choice-parameter-with-git-branches-in-a-specified-repo or https://gist.github.com/eeichinger/9761870 Björn -- You received this message b

Re: Algorithm negotiation fail problem

2018-03-01 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, you probably need to update SSH plugins: https://plugins.jenkins.io/publish-over-ssh -> 1.14 has a newer Jsch that provides the new algorithms. For ssh plugin (https://plugins.jenkins.io/ssh), you need to get an update on https://github.com/jenkinsci/jsch-plugin/ to 0.1.54.2 mot probabl

Re: Bash variables defined during a step

2018-03-06 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 6. März 2018 12:53:06 UTC+1 schrieb Samuel Mutel: > > Hello, > > I would like to define a variable in shell and to use it. > How can I do this? > > For example: > > sh "find packages -name internal-* -type d -exec bash -c 'for arg; do > export VERSION=\$(grep \${arg##*/} nexus-cicd-

Re: Why is Forgot password link not displayed in Jenkins login page ?

2018-03-06 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, not all authentication backends could support this, so it depends on what is configured in your case... If it is using only external authentication (ldap/AD, oauth, servlet container,...) then you would need to reset the password in the parent system. Björn Am Mittwoch, 7. März 2018 05:31

Re: Possible bug creating items

2018-03-06 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, actually this seems like this is a job that is easily ported to modern pipeline style. Maybe this now a good point to switch directly? Then the xml would be quite generic... Björn Am Dienstag, 6. März 2018 10:12:50 UTC+1 schrieb David Quirós Pérez: > > Hello Jenkins Team, > > I discovered

Re: Is there any environment variable for the current build directory?

2018-03-06 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, how does the file end up there in the first place? I guess that is copied there by the junit publisher (or by archiveArtifacts?), the original file should still be in the workspace. Björn Am Dienstag, 6. März 2018 10:12:18 UTC+1 schrieb Markus Neifer: > > Hi all, I want to process the JUni

Re: absolute path customWorkspace with docker-plugin and declarative pipeline

2018-03-18 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, so what is happening: 1. Jenkins starts up a docker container. 2. It connects as jenkins user 3. In your case, you try to create a workspace +aux. dirs on / (root level) as this user. While the real workspace is bind-mounted, jenkins attempts to create the aux.dir loca

Re: Setting Jenkins multijob build result with Groovy script based on % pass/fail child jobs

2018-03-22 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, I would in this case stop using Multijob at all. Replace it with a pipeline job that starts your sub-jobs and collects there results. Then you can compute and set the result at the end. Something like: node() { stage('build') { parallel "job1": { r1 = build ([job: 'Job1', propagate:

Re: Any way to specify a preferred agent for a job to run on?

2018-04-03 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, maybe take a look at the least -load plugin. Björn Am Dienstag, 3. April 2018 12:37:17 UTC+2 schrieb matthew...@diamond.ac.uk: > > We use freestyle jobs which allow concurrent builds. Sometime we have 10+ > builds running at the same time, distributed across a number of agents. We > use th

Re: Exception when changing to directory, Finished: UNSTABLE

2018-05-04 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, Did you carefully check ownership and access rights on this folder (on the web server side)? Maybe it is not accessible by the user you use? Björn Am Freitag, 4. Mai 2018 13:41:47 UTC+2 schrieb Saatviga Sudhahar: > > I have specified the remote directory in the global settings already where

Re: Scripted pipeline aborts for unknown reasons

2018-08-10 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, I think you are trying to be too clever here: pipeline{ } expects a declarative pipeline, but you are supplying a scripted one inside. The error mentions at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(jar:file:/data/jenkins/plugins/pipeline-model-definition/WEB-I

Re: Is there a way to rerun the failed Jobs (due to the Pod creation failed or any other reason) ?

2018-08-13 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, https://plugins.jenkins.io/naginator https://plugins.jenkins.io/periodic-reincarnation should help you. Björn Am Montag, 13. August 2018 08:10:01 UTC+2 schrieb pbasan...@gmail.com: > > Hi All, > Is there a way to rerun the failed Jobs (due to the Pod creation failed or > any other reason).

Re: Is there a way to rerun the failed Jobs (due to the Pod creation failed or any other reason) ?

2018-08-13 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
And for pipelines, you should also checkout the retry-block. Am Montag, 13. August 2018 09:50:14 UTC+2 schrieb Björn Pedersen: > > Hi, > > https://plugins.jenkins.io/naginator > https://plugins.jenkins.io/periodic-reincarnation > > should help you. > > Björn > > Am Montag, 13. August 2018 08:10:01

Re: java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

2018-08-22 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, > 2) Create it with Notepad++, choose UTF-8 encoding, save it and > commit/push to a Git branch; > And I guess that is where the byte-order mark slips in (thats something that happens mostly on Windows systems, and it's invisible in the file). Check https://notepad-plus-plus.org/communi

Re: Load balanced Jenkins?

2018-08-24 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi Am Donnerstag, 23. August 2018 19:30:54 UTC+2 schrieb Peter Berghold: > > I've been messing about a bit with Docker on Digital Ocean and was going > to branch next onto Docker Swarm stuff. I was wondering about deploying > Jenkins into a swarm and using a load balancer to switch between ins

Re: multi-branch pipeline, shell wrapper script fails

2018-08-28 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, The too many levels of symbolic links normally hints to a symlink circle. Carefully check the workspace folder (and parents) on the host machine. Björn Am Dienstag, 28. August 2018 11:58:46 UTC+2 schrieb ga...@ridezum.com: > > Here's the condensed output from the build job log... It's Je

Re: ConfigFiles 3.0 appears to be mangling config.xml

2018-09-04 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Just for reference:A jira issue exists: https://issues.jenkins-ci.org/browse/JENKINS-53399 Am Dienstag, 4. September 2018 14:29:34 UTC+2 schrieb Benjamin Brummer: > > I also had to reconfigure one jenkins job, after this update. > Configuration was gone almost completely. All provided maven sett

Re: Problems with ENV variables in jenkins 2.1.41?

2018-09-06 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, Am Mittwoch, 5. September 2018 12:46:50 UTC+2 schrieb Gorgonz ola: > > Again, I'm new to jenkins. So maybe someone should validate, that it is > the jenkins version and not a different presumption ;-) > > Using jenkins 2.1.40 with opensuse leap 15.0: > What are the jenkins versions (as rep

Re: Problems with ENV variables in jenkins 2.1.41?

2018-09-06 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
> And what global config are you referring to? > Manage jenkins -> global properties -> Environment variables ? > ==> works ok on 2.141 here > Node config -> Node properties -> Environment variables? > ==> A global vars are not overriden by node vars ==> If defined just as node variable

Re: How to list pipeline tools from Global Tool Configuration?

2018-09-07 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, did you try the snippet generator (or the declarative directive generator)? They both list available tools and generate the correct syntax. Björn Am Freitag, 7. September 2018 11:06:05 UTC+2 schrieb Mr. Laubrino: > > Yes, but what I found is that you would need Overall/Administer permissio

Re: Relationship between GitHub credentials and Jenkins Service account (running as Windows Service)

2018-09-13 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, Am Donnerstag, 13. September 2018 17:07:28 UTC+2 schrieb Christopher List: > > We are running Jenkins as a windows service on win2012 machine, and it's > working fine. > > The problem we have is that we're trying to change the service account > that it is running under. > The old and new s

Re: Not able to access and create files in path location(\\\\192.168.0.1/f$/D:\\p.txt)

2018-09-25 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, There are a few things which could be the reason ( and your descriptions are a bit too sparse to guess what is). 1) Is jenkins running on your local host? (only then the 192 probably resolve to a correct host) if not: 2) is the job running on master or on an agent ( again, the 1

Re: Issue with spaces in string parameter

2018-11-13 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 13. November 2018 00:23:02 UTC+1 schrieb 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? > > Just to

Re: Jenkins Docker Sidecar with Container Running a daemon command

2018-11-21 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 20. November 2018 15:33:26 UTC+1 schrieb Justin Seiser: > > I want to run ZAP as a proxy in my pipeline, and run my selenium tests > through the proxy. Im just using curl in a container in place of selenium > for my testing and was able to make this work locally using docker. > > I

Re: Jenkins - Add a dynamic label to a build

2018-11-28 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, you probably should take a look at the Badge Plugin (together with Groovy Post Build plugin probably) for adding the labels. Org use the build Name Setter plugin to modify the build name if that matches your build better. Björn Am

JEP-210 : Status of pipeline-job plugin

2018-11-28 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, The pipeline job-plugin (2.29) still warns about possible stability problems. I do not see much activity in github nor in jira, so what is the status here? Are there still changes iawating release or is it considerd stable by now? Björn -- You received this message because you are subsc

Re: Pass the data thru variable using curl command

2019-01-23 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 22. Januar 2019 05:18:28 UTC+1 schrieb Panneer: > > Hi David, > > My request is here below:- > > def status = "curl -s --max-time 30 POST 'https:url'" -H "Content-type: > application/json" -d {"DeAppRulesList": > [{"Applion":"02.01.02","Applime":"REFW"},{"Applion":"01.01.01","Appli

Re: How to include pipeline errors in email (Email-ext plugin)

2019-02-04 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, you should be ablre to achieve this with the help of the Build Failure Analyzer plugin or the warnings-ng plugin (possibly with a custom groovy parser ) Björn Am Montag, 4. Februar 2019 11:39:18 UTC+1 schrieb Faad Sayaou: > > I am trying to have the reason as it is printed on the console

Re: Node getting CancellationException during startup

2019-02-21 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
We have setups with more than one agent on one host, but they do not share the root. Both agents hold a lock on /remoting/remoting.log.0.lck So you would probably need to ensure each remoting instance uses a different root dir (do not share it wiht other nodes). Björn -- You received this m

Re: Jenkins LDAP and SSHA passwords

2017-03-24 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, that's not how LDAP-auth normally works: Jenkins takes the user and password, and tries an LDAP bind with this password. If the LDAP server returns success, then the login is granted. I suspect there is some other problem with your LDAP config. Questions: * What type of LDAP server ar

Re: Jenkins LDAP and SSHA passwords

2017-03-24 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
h filter: > (objectClass=inetOrgPerson)(objectClass=posixAccount)(uid=%u) > Manager DN: cn=Directory Manager > Display Name LDAP attribute: displayname > Email Address LDAP attribute: mail > > > 2017-03-24 8:24 GMT+01:00 'Björn Pedersen' via Jenkins Users < > jenki

Re: Jenkins LDAP and SSHA passwords

2017-03-24 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
n=accounts > User search filter: > (objectClass=inetOrgPerson)(objectClass=posixAccount)(uid=%u) > Manager DN: cn=Directory Manager > Display Name LDAP attribute: displayname > Email Address LDAP attribute: mail > > > 2017-03-24 8:24 GMT+01:00 'Björn Pedersen' via Jenkins

Re: pipeline: parameters documentation.

2017-04-26 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Mittwoch, 26. April 2017 14:43:39 UTC+2 schrieb Kenneth Johansson: > > hmm I'm starting to question the usefulness of the pipeline system. Its > very hard to understand how to do even very basic stuff. > > Even something as easy as finding out what type of parameters I can use > is hard. >

Re: Accessing workspace from WebUI in a multi-branch pipeline project

2017-05-11 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, if you have take a look at the pipeline steps (left menu on a job), then you will find the workspace links on each node and ws step there. As Mark correctly mentionend, there will be a workspace for each of these steps. Björn -- You received this message because you are subscribed

Re: Jenkins 2.0 pipeline as code executor question

2017-05-11 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, what kind of ressource conflict is happening? If some part of your build opens a tcp port, then conflicts may be resolved by using the port allocator plugin. Björn -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from th

Re: Jenkins - unexpected EOF while looking for matching `"' Build step 'Execute shell' marked build as failure

2017-07-05 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Dienstag, 4. Juli 2017 15:21:38 UTC+2 schrieb 江南: > > > > favorite > > > I have specified C:\Program Files\Git\bin\sh.exe in the Jenkins Global > Configuration Shell. An

Re: Restricting Pipeline Job to run on specific slaves

2017-07-06 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, that option does not make much sense for a pipeline job. With each 'node() ' you can specify a label or slave where this part of the pipeline should run. The main part (that does typically nothing that is computationally demanding) then runs on the master (in a fylweight executor actually).

Re: Everything lost after automatic upgrades

2017-07-23 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, I've something like that once here. It turned out that the upgrade did change the configured jenkins home (I think the environment var was not set, and the default was changed from the current working dir to ~/.jenkins) You can check the current used home on the "configure jenkins" page.

Re: Agent fails to run the job because working directory doesn't exist

2017-07-23 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Am Freitag, 21. Juli 2017 18:20:48 UTC+2 schrieb Marcos: > > Hi, > > I'm trying to move our current Jenkins setup based on one single > master to a distributed one. My first tests were unsuccessful > because the agent is unable to move into the working directory > because it doesn't exist[0]

Re: Accessing a variable in shell

2017-08-08 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
sh ''' ^^^ You are using a triple-single-quoted string. Replacement of groovy vars happens only in single- or triple-double-quoted strings. So use: sh """ -- You received this message because you are subscribed to the Google Groups "Jen

Re: Dynamic closures called in parallel

2017-08-09 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, your problem is actually addressed in the example. The closure is evalutated only during the parallel call. There $name is constant. Put a def xname = name inside your loop and use xname in the closures. (in the example it is the def index=i line). Björn Am Mittwoch, 9. August 20

Re: Failed to create docker image exception (Docker Slaves plugin)

2017-08-14 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, this is a know bug, see discussion here: https://groups.google.com/forum/#!topic/jenkinsci-users/k14ZkFV69CA In global config, you need to remove the final slash from jenkins/agent/ Björn Am Montag, 14. August 2017 08:42:19 UTC+2 schrieb Hugo Alfonso Zúñiga Calvo: > > Hello, I am ex

Re: Broken Shell in Jenkins

2017-09-05 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, File exists does not seem to do ant-style expansion, if I look at the docs. Either specify the correct relative path, or use Files Match. Björn Am Dienstag, 5. September 2017 11:45:43 UTC+2 schrieb Ana MB: > > Ok the problem is with the "File exists" Condition, because I've put > "Al

Re: New version of Jenkins (*) is available for

2016-08-04 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
Hi, why do you want to turn it off? It is an important hint to check wether relevant security and/or bug fixes have happend. If you are running an LTS version, then it should show up much less frequently (if keep your installation up to date). Björn Am Donnerstag, 21. Juli 2016 08:17:46 UTC+2

Re: The option to “Launch slave agents via Java Web Start” is missing from new node configuration

2016-08-04 Thread &#x27;Björn Pedersen&#x27; via Jenkins Users
>From the changelog (https://jenkins.io/changelog/): Hide the Java Web Start launcher when the TCP agent port is disabled. (issue 36996 ) So check your setup and enable the TCP agent port. Björn Am Donnerstag, 4. August 2016 12:51:56 UTC+2 s

  1   2   >