Re: Version Disclosure (JQuery/YUI/Prototypejs)

2024-03-21 Thread 'Björn Pedersen' via Jenkins Users
s.p...@gmail.com schrieb am Donnerstag, 14. März 2024 um 15:10:24 UTC+1: Please help. On Wednesday, March 13, 2024 at 3:27:25 PM UTC-4 s.p...@gmail.com wrote: Our web scans are showing Version disclosure for Jquery/YUI/Prototyejs . Jenkins is running on windows server . Version is 2.426.3

Re: java.io.IOException: error=2, No such file or directory

2024-03-07 Thread 'Björn Pedersen' via Jenkins Users
guruc...@googlemail.com schrieb am Donnerstag, 7. März 2024 um 10:26:40 UTC+1: Hello, We're facing the problem that jobs are failing with such errors: ... [SLNPBasicMvn] $ mvn clean install findbugs:findbugs pmd:pmd checkstyle:checkstyle Caused: java.io.IOException: Cannot run program

Re: doesn’t have label

2023-10-12 Thread 'Björn Pedersen' via Jenkins Users
Mark Waite schrieb am Mittwoch, 11. Oktober 2023 um 20:07:29 UTC+2: I've sometimes seen something like that when working with the static agents that I have connected to my controller. I workaround the problem by adding a "junk" label to any one of the agents. After saving the junk label, I

Re: Regarding two jenkins jobs

2023-08-10 Thread 'Björn Pedersen' via Jenkins Users
ashok...@gmail.com schrieb am Donnerstag, 10. August 2023 um 03:54:11 UTC+2: Hi All, How to configure jenkinsfile if one job is in one jenkins instance and another job is in another jenkins instance? I you really mean 2 jenkins instances (not different agents): * don't use a single

Re: Jenkins / Unity / Guthub integration

2023-08-03 Thread 'Björn Pedersen' via Jenkins Users
andrew@googlemail.com schrieb am Freitag, 28. Juli 2023 um 14:28:33 UTC+2: I am novice to using Unity and Jenkins. make: [makefile:57: default] Error 1 (ignored) + echo 0 How do I get Unity/Jenkins to detect that the individual test has failed. The icing on the cake would be to

Re: Could not update folder level actions from source FATAL: "Failed to recompute children" when indexing multibranch pipeline

2023-06-18 Thread 'Björn Pedersen' via Jenkins Users
ashis...@gmail.com schrieb am Donnerstag, 15. Juni 2023 um 20:19:54 UTC+2: Hi All, I'm getting this following error which is happening for a particular gerrit repo. The configuration is working for all other repos in my project but not in this particular one. *ERROR:

Re: Jira Issue

2023-05-19 Thread 'Björn Pedersen' via Jenkins Users
saravan...@gmail.com schrieb am Donnerstag, 18. Mai 2023 um 15:03:55 UTC+2: Hi Iam not getting any comments in JIra, showing below error. can you please tell what this error means. expected to call springBootPipeline.addJiraComments but wound up catching jiraComment; see:

Re: Weird behaviour after plugin updates

2023-04-21 Thread 'Björn Pedersen' via Jenkins Users
>From the backtrace and the description is seems a problem with the authorize-project plugin and restarts ( I guess the limitations for Run as user who started the job apply for restarts/resumed jobs as well, as these are essentially scheduled jobs after the restart). So you would need to

Re: Regarding unable to view the jobs in jenkins

2023-03-27 Thread 'Björn Pedersen' via Jenkins Users
ashok...@gmail.com schrieb am Montag, 27. März 2023 um 08:56:17 UTC+2: ErrorNote: My mgmt suggested me to use jenkins 2.176.1 version and do not upgrade. Can you please suggest? You have the following options: - install jenkins in a supported version ( LTS or the latest weekly

Re: Issue with the Jenkins Plugin emailext Plugin.

2023-02-17 Thread 'Björn Pedersen' via Jenkins Users
slide schrieb am Mittwoch, 15. Februar 2023 um 19:46:07 UTC+1: Can you check the Jenkins logs and see if there is a full exception trace in the log? On Wed, Feb 15, 2023 at 11:01 AM Chetan wrote: Hi Yes the failure.html will created in workspace before calling the emailext. Also it will not

Re: Poll git removes build artifacts/clean repository on node workspace

2023-01-17 Thread 'Björn Pedersen' via Jenkins Users
zakyn schrieb am Dienstag, 17. Januar 2023 um 16:57:45 UTC+1: Hello, thank you. The job is defined as a jenkinsfile with the polling and git checkout and other build steps. The snippet of jenkinsfile is below. After deeper investigation just at the time when polling is executed (every hour)

Re: Poll git removes build artifacts/clean repository on node workspace

2023-01-17 Thread 'Björn Pedersen' via Jenkins Users
zakyn schrieb am Dienstag, 17. Januar 2023 um 10:13:21 UTC+1: Hello, we have a problem that polling git clean the repository in workspace on the node. Steps: 1. clone git repository and build 2. build artifacts are in workspace on the node 3. press poll smc button -> build artifacts are

Re: Another way to uninstall a plugin?

2023-01-02 Thread 'Björn Pedersen' via Jenkins Users
zil...@gmail.com schrieb am Sonntag, 1. Januar 2023 um 19:16:34 UTC+1: > Jenkins v2.346.3 running as a docker container > > I go to the Plugins Manager page, click the red-circled "x" and see > "Uninstallation pending". I then restart Jenkins via " > myJenkins.domain.com/restart", but then see

Re: git checkouts always set to controller user, causing problems with latest git

2022-11-02 Thread 'Björn Pedersen' via Jenkins Users
Mark Waite schrieb am Freitag, 28. Oktober 2022 um 15:17:21 UTC+2: > I suspect that you'll find that something is misconfigured in your agent > definition rather than an issue in the checkout step. > > I think you'll be able to see that if you: > >1. Create a file in the workspace from

git checkouts always set to controller user, causing problems with latest git

2022-10-28 Thread 'Björn Pedersen' via Jenkins Users
In our setup we run the agents a separate user via ssh ( contoller: jenkins, agent: jenkinsworker). In a pipeline we checkout some code: ``` node(agent) { checkout git+ssh://. } ``` This results in the workdir and all git files belonging to the user jenkins, not jenkinsworker.

Re: LLVM scan-build jenkins plugin throws NullpointerExceptions

2022-07-27 Thread 'Björn Pedersen' via Jenkins Users
I would suggest to check if clang is supported by the warnings-ng plugin (I would expect it does support it). Björn Peter schrieb am Mittwoch, 27. Juli 2022 um 02:08:22 UTC+2: > Hi, > upgrading to jenkins weekly every now and then, i do get this in

Re: jenkins parameters issues

2022-06-28 Thread 'Björn Pedersen' via Jenkins Users
zzgua...@gmail.com schrieb am Freitag, 24. Juni 2022 um 16:13:22 UTC+2: > Hi team, > I have such a requirement on the Jenkins pipeline: when creating > parameters, there is a booleanParam parameter A, when A is true, I want the > extendedChoice boxes will pop up automatically, and the

Re: Gerrit publish just run one build

2022-03-07 Thread 'Björn Pedersen' via Jenkins Users
jimsearle schrieb am Freitag, 4. März 2022 um 21:41:56 UTC+1: > Hi, > > We have been longtime Jenkins user and recently started the transition to > Gerrit. > > The Jenkins Gerrit trigger kicks off the job for each commit that is in > the publish, but we would prefer just to run the job on the

Re: Trigger upstream job

2021-12-19 Thread 'Björn Pedersen' via Jenkins Users
You should really think through what you want and always keep the jobs hierachically ordered. To accomplish what you want you need an explict trigger Job1 step (maybe a plugin is needed for freestyle builds). But beware that if you also have a trigger in job2 that triggers after job1 success,

Re: Declarative Pipeline: Add trigger only on when condition

2021-11-19 Thread 'Björn Pedersen' via Jenkins Users
You can't do it on the triggers level ( the trigger config only can affect the next run, as the job is already triggered), but you can wrap the whole work in the pipeline in a when, so if the branch is a userbranch this run is mostly a do-nothing. Björn sverr...@gmail.com schrieb am

Re: "pending - waiting for next executor" message occurs while executing the job in Jenkins

2021-10-20 Thread 'Björn Pedersen' via Jenkins Users
kuzh...@gmail.com schrieb am Dienstag, 19. Oktober 2021 um 20:14:52 UTC+2: > I have no jobs available in the queue.I increased the executor > counter,still got the same message. > > Hard to tell without more information... * what kind of job: pipeline , freestyle, ??? * configured labels

Re: "pending - waiting for next executor" message occurs while executing the job in Jenkins

2021-10-19 Thread 'Björn Pedersen' via Jenkins Users
kuzh...@gmail.com schrieb am Dienstag, 19. Oktober 2021 um 12:45:17 UTC+2: > Hi, > > I am unable to execute any jobs in Jenkins.When I run the job,I am getting > the following error message > "pending - waiting for next executor".How can I solve this issue. > Some more reason why you could

Re: Pipeline: Nodes and Processes incompatibility?

2021-10-06 Thread 'Björn Pedersen' via Jenkins Users
See https://groups.google.com/g/jenkinsci-users/c/R7AUrb6nq5k fr...@fritz-elfert.de schrieb am Mittwoch, 6. Oktober 2021 um 16:54:26 UTC+2: > > Hi, > > I am looking at the Plugin Manager im my jenkins 2.303.1 installation and > it > shows this warning for the Pipeline: Nodes and Processes

Re: Inserting a Jelly template into a step

2021-09-28 Thread 'Björn Pedersen' via Jenkins Users
Victor Sudakov schrieb am Dienstag, 28. September 2021 um 09:21:26 UTC+2: > Hello Colleagues, > > Sorry for being dumb. I'm currently using the following simple step: > > post { > failure { > emailext body: 'Check console output at $BUILD_URL to view the results', > subject: ' > } >

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

2021-09-27 Thread 'Björn Pedersen' via Jenkins Users
> > That "our local path" thing is not clear to me. What exactly would that > be? If the file I create is in the root directory of the workspace , would > that "local path" be empty? > Correct. The pathes you specify are relative to the workspace part. To check just compare the -- You

Re: Pull changes when a tag is created

2021-09-27 Thread 'Björn Pedersen' via Jenkins Users
> >> On Wednesday, September 22, 2021 at 11:50:30 AM UTC-8 >> jayarama...@gmail.com wrote: >> >>> Hello, >>> >>> I wanted to trigger a Jenkins build when a new tag is created but I'm >>> not having any luck with it. >>> >>> Just to be sure I mentioned it, I don't have access to modify the

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

2021-09-22 Thread 'Björn Pedersen' via Jenkins Users
> > I'm not familiar with the archive process. If you could provide me some > quick links for information, that would be useful. I'll also ask our > internal ops team. > > Archiving is not something special, it's a standard feature. in a scripted pipeline: archiveArtifacts artifacts:

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

2021-09-22 Thread 'Björn Pedersen' via Jenkins Users
db...@cloudbees.com schrieb am Mittwoch, 22. September 2021 um 14:54:48 UTC+2: > On Mon, Sep 13, 2021 at 5:49 PM Jerome Godbout > wrote: > >> Humm, that would be hard and security unwise. The executing node path >> aren't available to the web. > > > They are in the case of workspace files

Re: Jenkins workspace with @2

2021-09-20 Thread 'Björn Pedersen' via Jenkins Users
Hi, generally you should always consider these workspaces as temporary and managed by jenkins. If you need to put files (persistent) in defined places you should do this by explicitly copying the files (or e.g. use one of the artifact publisher plugins). And check the ws step docs: A

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

2021-09-13 Thread 'Björn Pedersen' via Jenkins Users
Hi, no, not really. Especially as workspaces typically are reused between jobs such an URL would be at leas open to surprise. Best practice is to archive such files (log output, generated files. ) as artifacts to get persistence. Björn davidmic...@gmail.com schrieb am Freitag, 10.

Re: NodeProperty extension behaves differently with Freestyle than Pipeline job

2021-09-07 Thread 'Björn Pedersen' via Jenkins Users
(Note: better suited jenkinsci-dev list) Node and workspace handling differs quite a lot between freestyle and pipeline jobs. In a single pipeline you can create many nodes (node block) and even works spaces (ws blocks). So this is expected... Björn and...@hammar.net schrieb am Dienstag, 7.

Re: Can't run shell script in docker container

2021-09-03 Thread 'Björn Pedersen' via Jenkins Users
How are you starting the container and run the script? From the locations it looks like a sh step in a pipeline. Then you should not mount jenkins_home or temp that way. Instead use a docker.image.inside step to run the script. It will do the correct mounting. (/tmp should mount

Re: Why does my Jenkins not run a .exe file?

2021-08-31 Thread 'Björn Pedersen' via Jenkins Users
I would consider using powershell instead of bat for such jenkins tasks, then Start-Job should do the trick ( you will need to also call Stop-Job once you are done of course).

Re: Why does my Jenkins not run a .exe file?

2021-08-18 Thread 'Björn Pedersen' via Jenkins Users
mahmoud...@ejad.com.eg schrieb am Mittwoch, 18. August 2021 um 15:14:13 UTC+2: > I have the same issue here. > I have a .bat file named bat *RunUSBRedirector.bat* that only has one line > > *call "C:\Program Files\USB Redirector Client\usbredirectorlt.exe"* > this line should start the

Re: Trouble using JenkinsRule with PluginManager

2021-08-06 Thread 'Björn Pedersen' via Jenkins Users
And see also https://javadoc.jenkins.io/component/jenkins-test-harness/org/jvnet/hudson/test/HudsonTestCase.html#useLocalPluginManager Björn Pedersen schrieb am Freitag, 6. August 2021 um 09:38:13 UTC+2: > And take a look at >

Re: Trouble using JenkinsRule with PluginManager

2021-08-06 Thread 'Björn Pedersen' via Jenkins Users
And take a look at https://javadoc.jenkins.io/component/jenkins-test-harness/org/jvnet/hudson/test/RestartableJenkinsRule.html , especially the info about UnitTestSupportingPluginManager. Björn Björn Pedersen schrieb am Freitag, 6. August 2021 um 09:32:14 UTC+2: > I guess this question

Re: Trouble using JenkinsRule with PluginManager

2021-08-06 Thread 'Björn Pedersen' via Jenkins Users
I guess this question is better suited for https://groups.google.com/g/jenkinsci-dev matthi...@outlook.com schrieb am Donnerstag, 5. August 2021 um 16:48:48 UTC+2: > Thanks for the reply. It looks like your repo is similar to > https://github.com/sheehan/job-dsl-gradle-example/, which is the

Re: Migrate jobs to pipeline "in-place"?

2021-08-04 Thread 'Björn Pedersen' via Jenkins Users
As you would need to delete the old job before you can create a new job with the name, no. I would recommend to create a new job with a nice version (e.g. jobnameV2 ) in parallel to the old job, then disable (not delete! ) the old job. Björn sl...@dresearch-fe.de schrieb am Mittwoch, 4.

Re: multithreading inside cleanup step

2021-07-22 Thread 'Björn Pedersen' via Jenkins Users
Take a look at the end of your stackoverflow link: You can use parallel inside a script block even in a post block. Just remember that inside a script block you need to use the scripted syntax, not the descriptive syntax. omr...@gmail.com schrieb am Mittwoch, 21. Juli 2021 um 15:54:27 UTC+2:

Re: credentials-binding-plugin and private key files

2021-06-22 Thread 'Björn Pedersen' via Jenkins Users
This message has been introduced by https://github.com/jenkinsci/credentials-binding-plugin/pull/132 (so it is only related to the credentials-binding -plugin version, not the core). andreas.ch...@gmail.com schrieb am Dienstag, 22. Juni 2021 um 08:19:20 UTC+2: > Anyone else noticed this? I

Re: Environment variable "sometimes" not expanded as "Repository URL"

2021-06-09 Thread 'Björn Pedersen' via Jenkins Users
> git config --get remote.${GerritSlave}.url # timeout=10 FATAL: hudson.plugins.git.GitException: Failed to fetch from ${GerritSlave} This seems to indicate the ${GerritSlave} is used in the wrong field (the 'name' field) . It should ever be used in the repo url field. Björn

Re: Jenkins upgrade from 2.250 to 2.275

2021-05-31 Thread 'Björn Pedersen' via Jenkins Users
BTW, if you don't want to do too frequent updates (upgrade each week and check for all changes each time), I would consider switching to the LTS series (2.277.1 in your case). Then such changes would be easier to find in the LTS changelog. Björn Björn Pedersen schrieb am Montag, 31. Mai 2021

Re: Jenkins upgrade from 2.250 to 2.275

2021-05-31 Thread 'Björn Pedersen' via Jenkins Users
Hi, it seems you did not upgrade all plugins as well. These effects are caused by the tables-to-div migrations. See https://www.jenkins.io/doc/developer/views/table-to-div-migration/ for more details... Björn s.p...@gmail.com schrieb am Montag, 31. Mai 2021 um 02:52:14 UTC+2: > After I

Re: Issue in pipeline step of jenkinsfile

2021-05-12 Thread 'Björn Pedersen' via Jenkins Users
You need to add an intermediate var in your first loop and use this in the sh step sprat...@gmail.com schrieb am Dienstag, 11. Mai 2021 um 14:59:56 UTC+2: > Hey Devin, > Sorry for the late reply , I was down with covid for some time. > the code that you have given i tried and it works , but how

Re: Jenkins user is no member of docker group

2021-04-30 Thread 'Björn Pedersen' via Jenkins Users
Has the slave been restarted after setting the groups? On unix the groups are only refreshed on login. chris@gmail.com schrieb am Donnerstag, 29. April 2021 um 14:23:58 UTC+2: > Dear all, > > I have a jenkins slave running on linux (jenkins version 2.249.2). The > strange thing is that

Re: git-plugin 4.7.1 fails

2021-04-29 Thread 'Björn Pedersen' via Jenkins Users
We are running git-4.7.1 without problems. Check that git-client-plugin 3.7.1 is also installed. Björn morten.b...@gmail.com schrieb am Donnerstag, 29. April 2021 um 09:27:39 UTC+2: > > The recommended git tool is: NONE > 07:00:00 FATAL: org.jenkinsci.plugins.gitclient.GitClient > 07:00:00

Re: multibranch plugin with gerrit trigger plugin

2021-04-28 Thread 'Björn Pedersen' via Jenkins Users
If you use gerrit-trigger you don't need to discover new branches. You get the GERRIT_BRANCH from the trigger data. A typical checkout looks like: checkout ([poll: false, scm: [$class: 'GitSCM', branches: [[name: '$GERRIT_BRANCH']],

Re: multibranch plugin with gerrit trigger plugin

2021-04-28 Thread 'Björn Pedersen' via Jenkins Users
lar...@gmail.com schrieb am Mittwoch, 28. April 2021 um 10:51:59 UTC+2: > Thanks. What I want to achieve in the end is a pipeline with a stage0 > check for uploaded patches, and if that passes have it do a +1 verify vote. > Then a multistage job that runs of what is submitted. > And I want

Re: multibranch plugin with gerrit trigger plugin

2021-04-28 Thread 'Björn Pedersen' via Jenkins Users
There are 2 plugins for gerrit support: - gerrit-trigger -> does not work with multibranch as it supplies its own way of checking out the right commits, so why would you want to use multibranch ( each change in gerrit is on its own branch by gerrit design!) - gerrit-codereview [1] -> does

Re: How to fix workspace deletion on slave node

2021-04-16 Thread 'Björn Pedersen' via Jenkins Users
Best idea is to avoid relying on the workspace being preserved at all . So if you are deplyoing something, then do it by installing/copying/whatever the final artifacts in a place outside the workspace. m.s.sent...@gmail.com schrieb am Freitag, 16. April 2021 um 03:18:23 UTC+2: > This is a

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread 'Björn Pedersen' via Jenkins Users
Did you try to use credentials in jenkins to store the token instead of fiddling with token on the machine? See e.g. https://stackoverflow.com/questions/61105368/how-to-use-github-personal-access-token-in-jenkins Then you could do everything in one job instead of doing some copy-magic

Re: hypothesis: Test Results Aggregator - need help

2021-03-17 Thread 'Björn Pedersen' via Jenkins Users
The code[1] definitly does not impose a limit. Does your mailserver impose a limit on the number of recipients in a single mail? Is a mailing list involved, e.g mailmain often imposes a limit on the number of recipients...? Crank up logging and check the logs for reported errors. Björn [1]

Re: Using withEnv with withCredentials

2021-03-08 Thread 'Björn Pedersen' via Jenkins Users
Used : withEnv([‘http_proxy=https://${PROXY_CREDENTIALS}@proxy-endpoint.com:3128']) { Note the single quotes, this needs to be double-quoted for the replacement to happen. Björn kelvSYC schrieb am Montag, 8. März 2021 um 22:29:00 UTC+1: > Suppose I have a username and password credential

Re: [JCasC] job parameters lost when re-starting docker container / reloading existing configuration

2021-02-22 Thread 'Björn Pedersen' via Jenkins Users
Yes, this seems like a general chicken-and-egg problem when specifying parameter-config in the Jenkinsfile. It also affects any updated Jenkinsfile that adds a new parameter/changes a parameter , as these changes only take effect *after * the job is started. The only really working solution

Re: How to remove CVS plugin ? / Bundeled plugins

2021-02-16 Thread 'Björn Pedersen' via Jenkins Users
CVS has been unbundled as of 2.271 (https://www.jenkins.io/changelog/#v2.271). So the next LTS ( based on 2.777 I guess) should allow you to uninstall CVS. Björn mj1414...@gmail.com schrieb am Montag, 15. Februar 2021 um 18:45:54 UTC+1: > > Hello, > > the CVS plugin 2.11 has security

Re: Plugin Build fails with "JellyTestSuiteBuilder"

2021-01-28 Thread 'Björn Pedersen' via Jenkins Users
My first guess would be the Jenkinsfile ( it seems like a null is passed where null is not expected: buildPlugin(jenkinsVersions: [null, '1.651.2'], failFast: false) ^^ swate...@gmail.com schrieb am Donnerstag, 28. Januar 2021 um 15:05:04

Re: High memory usage by Java process

2020-12-03 Thread 'Björn Pedersen' via Jenkins Users
Check the advanced settings for the agent at least ssh agents allow custom JVM options there. Björn Pedersen schrieb am Donnerstag, 3. Dezember 2020 um 13:39:46 UTC+1: > Unless configured otherwise, the agent processes inherit the options from > the controller, so this high VM may happen. > >

Re: High memory usage by Java process

2020-12-03 Thread 'Björn Pedersen' via Jenkins Users
Unless configured otherwise, the agent processes inherit the options from the controller, so this high VM may happen. Björn DavidA schrieb am Donnerstag, 3. Dezember 2020 um 13:37:43 UTC+1: > Hi > > I have a Centos 7 Jenkins agent. 'top' shows that Jenkins is running a > Java process on it

Re: Jenkins' HTTP Request plugin does not wait until web page is loaded

2020-12-02 Thread 'Björn Pedersen' via Jenkins Users
Are you sure your GET request targets the right endpoint? If you get a loading mesage, this is a strong hint that there is ajax loading involved, which the http requets plugin would not handle. Either find out the ajax endpoint you are interessted in, or switch to e.g. using selenium in

Re: Script to get Jenkins CentOS versions?

2020-11-25 Thread 'Björn Pedersen' via Jenkins Users
The problem probably is that the centos image is not in the first 30 results . You would need to get the next page(s) until you find a centos image. See https://docs.docker.com/registry/spec/api/#tags for details. And remember that this endpoint has a limit on the numbe rof requests in a

Re: Job stuck on "git pull --no-edit"

2020-11-17 Thread 'Björn Pedersen' via Jenkins Users
Hi, this seems like you are mis-using git here. For deploy, checkout into a clean workspace and do the build. What happens in your case is, that the pull creates a merge commit ( you want fast-forwards only for automated updates in most cases), so thats why git wants a merge commit message. (

Re: How do you set java options for ssh agents

2020-09-28 Thread 'Björn Pedersen' 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.

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

2020-09-22 Thread 'Björn Pedersen' 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: [Gerrit-Trigger Plugin] Unable to connect successfully to our Gerrit server via the REST API

2020-08-24 Thread 'Björn Pedersen' 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,

Re: Multibranch Pipeline job creating multiple Checkout Directories in Workspace

2020-08-20 Thread 'Björn Pedersen' 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

Re: Need help - build "Execute Shell"

2020-07-29 Thread 'Björn Pedersen' 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

Re: Multi-line parameter description in declarative pipeline

2020-06-15 Thread 'Björn Pedersen' 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: Unable to install or update plugins in jenkins

2020-05-22 Thread 'Björn Pedersen' 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

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

2020-04-27 Thread 'Björn Pedersen' 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

Re: Jenkins.war and Jenkins as service

2020-03-24 Thread 'Björn Pedersen' 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

Re: Jenkins.war and Jenkins as service

2020-03-24 Thread 'Björn Pedersen' 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

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

2020-01-23 Thread 'Björn Pedersen' 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

Re: Perform actual hardware tests using jenkins pipeline and kubernetes

2020-01-19 Thread 'Björn Pedersen' 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: Need Help in executing Rest API in Jenkins Job

2020-01-13 Thread 'Björn Pedersen' 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

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

2020-01-13 Thread 'Björn Pedersen' 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

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

2020-01-09 Thread 'Björn Pedersen' 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

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

2019-12-18 Thread 'Björn Pedersen' 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

Re: editing jenkins jobs in shell / vi / ssh

2019-12-12 Thread 'Björn Pedersen' 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,

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

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

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

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

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 .

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

Re: Node getting CancellationException during startup

2019-02-21 Thread 'Björn Pedersen' 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

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

2019-02-04 Thread 'Björn Pedersen' 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: Pass the data thru variable using curl command

2019-01-23 Thread 'Björn Pedersen' 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": >

JEP-210 : Status of pipeline-job plugin

2018-11-28 Thread 'Björn Pedersen' 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

Re: Jenkins - Add a dynamic label to a build

2018-11-28 Thread 'Björn Pedersen' 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

Re: Jenkins Docker Sidecar with Container Running a daemon command

2018-11-21 Thread 'Björn Pedersen' 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. > >

Re: Issue with spaces in string parameter

2018-11-13 Thread 'Björn Pedersen' 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: Not able to access and create files in path location(\\\\192.168.0.1/f$/D:\\p.txt)

2018-09-26 Thread 'Björn Pedersen' 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

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

2018-09-13 Thread 'Björn Pedersen' 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

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

2018-09-07 Thread 'Björn Pedersen' 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

Re: Problems with ENV variables in jenkins 2.1.41?

2018-09-07 Thread 'Björn Pedersen' 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

Re: Problems with ENV variables in jenkins 2.1.41?

2018-09-07 Thread 'Björn Pedersen' 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

Re: ConfigFiles 3.0 appears to be mangling config.xml

2018-09-04 Thread 'Björn Pedersen' 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

Re: multi-branch pipeline, shell wrapper script fails

2018-08-28 Thread 'Björn Pedersen' 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

  1   2   >