Re: How to get all Jenkins job ran between specific dates?

2023-05-13 Thread Fabian Cenedese
At 23:34 12.05.2023, you wrote: >Hi There, > >I am looking for a way to gather Jenkins's usage statistics such as builds run >every month or day. I came across a script at >https://github.com/jenkinsci/jenkins-scripts/blob/master/scriptler/jobExecutedInDateRange.groovy. > However, it is not wor

How to get all Jenkins job ran between specific dates?

2023-05-12 Thread Alok Dubey
Hi There, I am looking for a way to gather Jenkins's usage statistics such as builds run every month or day. I came across a script at https://github.com/jenkinsci/jenkins-scripts/blob/master/scriptler/jobExecutedInDateRange.groovy. However, it is not working as expected. https://plugins.je

Re: Need to re trigger if the Jenkins job fail for scheduled job

2022-12-05 Thread opayq-gg
Hi, you could check if a Conditional Build Step helps you (you might need to install the corresponding plugin): Jenkins sets an environment variable with the trigger cause, you might be able to use that. On 5 December 2022 09:37:36 CET, Praju wrote: >Hi, >To achieve (Re trigger if the J

Need to re trigger if the Jenkins job fail for scheduled job

2022-12-05 Thread Praju
Hi, To achieve (Re trigger if the Jenkins job fail when it is scheduled job ) this one I am Enabling *Retry build after failure in *post build action but it will re trigger if we run manually also. Can any one suggest how to re trigger job if fail when it is scheduler. Thank you -- You

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread Praju
Thank you all , it is working for me On Tuesday, November 22, 2022 at 7:28:29 PM UTC+5:30 db...@cloudbees.com wrote: > On Tue, Nov 22, 2022 at 2:54 PM Praju wrote: > >> Hi , >> The above one I am taking as example but actual configuration is: >> < python_file> -D&1 2 | te

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread 'Daniel Beck' via Jenkins Users
On Tue, Nov 22, 2022 at 2:54 PM Praju wrote: > Hi , > The above one I am taking as example but actual configuration is: > < python_file> -D&1 2 | tee gen.file.log > above command return "ValueError: No JSON object could be decoded" > but the job build status is showing suc

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread Praju
Hi , The above one I am taking as example but actual configuration is: < python_file> -D&1 2 | tee gen.file.log above command return "ValueError: No JSON object could be decoded" but the job build status is showing success Thanks On Tuesday, November 22, 2022 at 6:54:51 PM

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread 'Dirk Heinrichs' via Jenkins Users
Am Dienstag, dem 22.11.2022 um 05:11 -0800 schrieb Praju: echo ${var} ( Note : I am not defined var) echo NEVER fails. If ${var} is not defined, echo will output an empty string, so you'll see an empty new line in your build's log. If you want it to fail, you'd need to test whether the

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread 'Daniel Beck' via Jenkins Users
On Tue, Nov 22, 2022 at 2:11 PM Praju wrote: > Hi, > below is my configuration: > > echo "welcome" > echo ${var} ( Note : I am not defined var) > echo "hello" > > expected output status: failure > > output: > > + echo welcome > welcome >

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread Praju
hello Finished: SUCCESS On Tuesday, November 22, 2022 at 6:20:08 PM UTC+5:30 dheinric wrote: > Am Dienstag, dem 22.11.2022 um 03:47 -0800 schrieb Praju: > > I need to fail jenkins job if any linux command return error message , > could any one help on

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread 'Dirk Heinrichs' via Jenkins Users
Am Dienstag, dem 22.11.2022 um 21:01 +0800 schrieb kakamai...@gmail.com: throw exception in groovy The question is about Linux commands, not Groovy. Bye... Dirk -- Dirk Heinrichs Senior Systems Engineer, Delivery Pipeline OpenText ™ Discovery | Recommind Phone: +

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread kakamain99
-- 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 on the web visit https://groups.google.com

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread 'Dirk Heinrichs' via Jenkins Users
Am Dienstag, dem 22.11.2022 um 03:47 -0800 schrieb Praju: I need to fail jenkins job if any linux command return error message , could any one help one this By default, Jenkins runs "Execute Shell" steps with "/bin/sh -e -x". Due to "-e", the step will fail if an

Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread Alex Earl
This is the default for Jenkins, if a command exits with a non-zero exit code, then the job should already fail. On Tue, Nov 22, 2022 at 5:41 AM Praju wrote: > Hi , > I need to fail jenkins job if any linux command return error message , > could any one help one this > > Thank y

I need to fail jenkins job if any linux command return error message

2022-11-22 Thread Praju
Hi , I need to fail jenkins job if any linux command return error message , could any one help one this Thank you -- 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, sen

Re: [JJB] Jenkins Job Builder - any users here?

2022-09-08 Thread Weihong Xu
Yes, I think that's how it should be. But the Job DSL document only shows how to use freestyle job as a seed job. I am wondering is their any example showing how to use a pipeline job as a seed job. Meanwhile Jenkins Job Builder can do the similar thing via command line. That's

Re: [JJB] Jenkins Job Builder - any users here?

2022-09-08 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, dem 08.09.2022 um 23:15 -0700 schrieb Weihong Xu: Not exactly. I have already used Jenkins pipeline to define the CI/CD workflow. The problem is I still need to create Jenkins job manually in the web UI to run those pipeline scripts. I hope this could also be automated. In the

Re: [JJB] Jenkins Job Builder - any users here?

2022-09-08 Thread Weihong Xu
Not exactly. I have already used Jenkins pipeline to define the CI/CD workflow. The problem is I still need to create Jenkins job manually in the web UI to run those pipeline scripts. I hope this could also be automated. In the end users just need to tell the meta job where their repos are, and

Re: [JJB] Jenkins Job Builder - any users here?

2022-09-08 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, dem 08.09.2022 um 19:15 -0700 schrieb Weihong Xu: > I have plan to try it in our projects, but it is still a little bit > difficult for me to choose between Job DSL and it. I am try to find a > tool with which I can create a meta job in Jenkins that allows users > to fill there git

Re: [JJB] Jenkins Job Builder - any users here?

2022-09-08 Thread Weihong Xu
create / update a job automatically. On Friday, February 18, 2022 at 5:08:39 PM UTC+8 romane...@gmail.com wrote: > Hi Jenkins community! > > Any Jenkins Job Builder users here? Would be good to know how many of you > are reading this, so please leave a comment. There is a dedicated

Re: Jenkins job error

2022-09-06 Thread Ivan Fernandez Calvo
Check all your plugins are loaded correctly, it looks like you have changes in the filesystem that were not applied, and when you restarted you applied those changes, I bet that one or more of your plugins are not loaded, you should have a big red number in the top-rigth corner of your Jenkins

Jenkins job error

2022-09-06 Thread Madhu Muchukota
Hi Team, All of a sudden we are seeing below errors as soon as I run a job in Jenkins. java.lang.NullPointerExceptionat java.base/java.util.Objects.requireNonNull(Objects.java:221)at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:191)at jenkins.scm.api.SCMFileSystem.of(SCMFile

Re: How to create/update Jenkins job via REST API in Java?

2022-04-11 Thread 'Daniel Beck' via Jenkins Users
On Mon, Apr 4, 2022 at 11:13 AM Jon Brohauge wrote: > Whenever I try to POST a job, using a Basic Authentication with the > “username:password” base64 encoded, I get a 403. > Crumbs are session-specific since 2.176.2: https://www.jenkins.io/doc/upgrade-guide/2.176/#upgrading-to-jenkins-lts-2-176

Re: How to create/update Jenkins job via REST API in Java?

2022-04-04 Thread Ivan Fernandez Calvo
if you want to manage your jobs using the API are some tools that make that work Jenkin Job Builder <https://jenkins-job-builder.readthedocs.io/en/latest/>, also you can manage your Jobs and configuration using Jenkins configuration as Code <https://github.com/jenkinsci/configuratio

How to create/update Jenkins job via REST API in Java?

2022-04-04 Thread Jon Brohauge
Hi everyone, I’m trying to create/update a Jenkins job via the REST API. I can successfully retrieve a crumb, so I know that my username/password combination works. Whenever I try to POST a job, using a Basic Authentication with the “username:password” base64 encoded, I get a 403. Whenever I

Re: [JJB] Jenkins Job Builder - any users here?

2022-02-18 Thread Luca Milanesio
> On 18 Feb 2022, at 07:51, Adam Romanek wrote: > > Hi Jenkins community! > > Any Jenkins Job Builder users here? Would be good to know how many of you are > reading this, so please leave a comment. There is a dedicated discussion > group for JJB <https://groups.

[JJB] Jenkins Job Builder - any users here?

2022-02-18 Thread Adam Romanek
Hi Jenkins community! Any Jenkins Job Builder users here? Would be good to know how many of you are reading this, so please leave a comment. There is a dedicated discussion group for JJB <https://groups.google.com/g/jenkins-job-builder/> but it seems really few people are subscribed.

Re: Trigger jenkins job for all actions of pull request in github.

2022-02-14 Thread Adharsha sri
want to use the GitHub branch source plugin. >>> >>> I don't think anyone should really use the "GitHub pull request builder >>> plugin" anymore nowadays in 2022. >>> >>> Cheers >>> >>> Le lun. 14 févr. 2022 à 10:52, A

Re: Trigger jenkins job for all actions of pull request in github.

2022-02-14 Thread Ivan Fernandez Calvo
e lun. 14 févr. 2022 à 10:52, Adharsha sri a >> écrit : >> >>> Hi Team, >>> >>> I am trying to trigger the jenkins job which will send slack >>> notification to developers when there is a pull request in github. >>> >>> I am us

Re: Trigger jenkins job for all actions of pull request in github.

2022-02-14 Thread Adharsha sri
tHub pull request builder > plugin" anymore nowadays in 2022. > > Cheers > > Le lun. 14 févr. 2022 à 10:52, Adharsha sri a > écrit : > >> Hi Team, >> >> I am trying to trigger the jenkins job which will send slack notification >> to developers when ther

Re: Trigger jenkins job for all actions of pull request in github.

2022-02-14 Thread Baptiste Mathus
Hi, You want to use the GitHub branch source plugin. I don't think anyone should really use the "GitHub pull request builder plugin" anymore nowadays in 2022. Cheers Le lun. 14 févr. 2022 à 10:52, Adharsha sri a écrit : > Hi Team, > > I am trying to trigger the jen

Trigger jenkins job for all actions of pull request in github.

2022-02-14 Thread Adharsha sri
Hi Team, I am trying to trigger the jenkins job which will send slack notification to developers when there is a pull request in github. I am using github pull request builder plugin in jenkins to achieve this and created a webhook in github and selected pull requests(pull request opened, closed

Getting Appium and npm error if configured with git repository in Jenkins job

2022-02-02 Thread nisha vekaria
Developed the automation framework in Appium and I am starting the Appium server programmatically. *Runs fine if,* 1. the Same framework runs locally without Jenkins 2. Configure the Jenkins job by giving the local POM file path and not giving the git repository configured in the Jenkins job

Re: Unable to Run jenkins job on zos slave

2021-11-05 Thread Adharsha sri
choose other encodings different >>>>>>>>>>>>>>> than UTF-8 >>>>>>>>>>>>>>> you will have issues showing the build logs. In these cases I >>>>>>>>>>>>>>> use to try to >>&

Re: Unable to Run jenkins job on zos slave

2021-11-01 Thread Ivan Fernandez Calvo
gt;>>>>>> run a job that shows me the effective environment I am running >>>>>>>>>>>>>> the job by >>>>>>>>>>>>>> using the command `export`, `set`, or both, then I check the >>>&g

Re: Unable to Run jenkins job on zos slave

2021-10-31 Thread Adharsha sri
de 2021 a las 8:34:50 UTC+2, >>>>>>>>>>>>> adharsh...@gmail.com escribió: >>>>>>>>>>>>> >>>>>>>>>>>>>> Number of executors: 1 >>>>>>>>>>>>>> L

Re: Unable to Run jenkins job on zos slave

2021-10-29 Thread kuisathaverat
t;>>>>> Launch method: launch agents via SSH >>>>>>>>>>>>> Host: host name >>>>>>>>>>>>> Host key verification strategy: Non verifying verification >>>>>>>>>>>>> str

Re: Unable to Run jenkins job on zos slave

2021-10-28 Thread Adharsha sri
Java path: /usr/lpp/java/J8.0/bin/Java >>>>>>>>>>>> >>>>>>>>>>>> JVM Options: -Dfile.encoding=ISO8859-1 >>>>>>>>>>>> -Djava.io.tmpdir=/usr/lpp/test >>>>>>>>>>>>

Re: Unable to Run jenkins job on zos slave

2021-10-28 Thread Ivan Fernandez Calvo
pp/java/J8.0/ && export >>>>>>>>>>> IBM_JAVA_ENABLE_ASCII_FILETAG=ON && _BPXK_AUTOCVT=ON && >>>>>>>>>>> >>>>>>>>>>> Suffix start Agent command: &

Re: Unable to Run jenkins job on zos slave

2021-10-28 Thread Adharsha sri
;& >>>>>>>>>> >>>>>>>>>> Suffix start Agent command: >>>>>>>>>> -text >>>>>>>>>> >>>>>>>>>> Connection timeout in seconds:210 >>>>>>>>>

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Adharsha sri
;>>> geoffroy...@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> can you please show a screenshot of the zos agent configuration >>>>>>>>>> (all fields)? >>>>>>>>>>

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Ivan Fernandez Calvo
t;>>>>>>>> >>>>>>>>> On Tuesday, 26 October 2021 at 04:27:21 UTC+2 adharsh...@gmail.com >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Yes , based on that page , we have configu

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Adharsha sri
t;> Yes , based on that page , we have configured the slave. But still >>>>>>>>> facing the same issue. >>>>>>>>> >>>>>>>>> On Mon, 25 Oct 2021, 11:30 pm geoffroy...@gmail.com, < >>>>>>>>

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Adharsha sri
gt;> geoffroy...@gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi >>>>>>>>> have you checked this page (first results in google): >>>>>>>>> https://gdams.medium.com/adding-zos-to-our-jenkins-build-

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Adharsha sri
jenkins-build-farm-27ab5171fb35 >>>>>>>> Seems you might need to tune the JVM options, using >>>>>>>> -Dfile.encoding=ISO8859-1 >>>>>>>> >>>>>>>> >>>>>>>> On Monday, 25 October

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Ivan Fernandez Calvo
t;>>>> wrote: >>>>>>> >>>>>>>> Can you please consider this as priority. Actually it is critical >>>>>>>> issue for us. >>>>>>>> Whether z/ os platform is supported for jenkins or not . If it is >>>>

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Adharsha sri
onsider this as priority. Actually it is critical >>>>>>> issue for us. >>>>>>> Whether z/ os platform is supported for jenkins or not . If it is >>>>>>> supported, where we are missing and why we are not getting the output. >>&g

Re: Unable to Run jenkins job on zos slave

2021-10-26 Thread Adharsha sri
, >>>>>> wrote: >>>>>> >>>>>>> We are running just date command or simple echo command through >>>>>>> execute shell but not getting the actual output >>>>>>> >>>&g

Re: Unable to Run jenkins job on zos slave

2021-10-26 Thread Ivan Fernandez Calvo
ing just date command or simple echo command through >>>>>> execute shell but not getting the actual output >>>>>> >>>>>> On Mon, 25 Oct 2021, 17:09 Adharsha sri, >>>>>> wrote: >>>>>> >>>>>

Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread Adharsha sri
t;>> >>>>>> +□?EA/¤ >>>>>> Some thing like above >>>>>> >>>>>> On Mon, 25 Oct 2021, 15:56 Fabian Cenedese, wrote: >>>>>> >>>>>>> At 14:21 21.10.2021, you wrote: >>>>>>

Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread geoffroy...@gmail.com
t;> On Mon, 25 Oct 2021, 15:56 Fabian Cenedese, wrote: >>>>> >>>>>> At 14:21 21.10.2021, you wrote: >>>>>> >>>>>> >Can you please help me for this issue >>>>>> > >>>>>> >On Wed,

Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread Adharsha sri
t;>> On Mon, 25 Oct 2021, 15:56 Fabian Cenedese, wrote: >>>> >>>>> At 14:21 21.10.2021, you wrote: >>>>> >>>>> >Can you please help me for this issue >>>>> > >>>>> >On Wed, 20 Oct 2021, 18:53 Adhar

Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread geoffroy...@gmail.com
gt;> >>> On Mon, 25 Oct 2021, 15:56 Fabian Cenedese, wrote: >>> >>>> At 14:21 21.10.2021, you wrote: >>>> >>>> >Can you please help me for this issue >>>> > >>>> >On Wed, 20 Oct 2021, 18:53 Adharsha

Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread Adharsha sri
e, wrote: >> >>> At 14:21 21.10.2021, you wrote: >>> >>> >Can you please help me for this issue >>> > >>> >On Wed, 20 Oct 2021, 18:53 Adharsha sri, <>> adharshasuma...@gmail.com>adharshasuma...@gmail.com> wrote: >>> &

Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread Adharsha sri
21.10.2021, you wrote: >> >> >Can you please help me for this issue >> > >> >On Wed, 20 Oct 2021, 18:53 Adharsha sri, <> adharshasuma...@gmail.com>adharshasuma...@gmail.com> wrote: >> >Hi Team, >> > >> >I am unable to run a jenkins

Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread Adharsha sri
t; wrote: > >Hi Team, > > > >I am unable to run a jenkins job ( shell command : date) on zos slave . > The slave is active and online but getting some gibberish values in console > output. Please help. > > Please post the "gibberish". > > bye Fabi >

Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread Fabian Cenedese
At 14:21 21.10.2021, you wrote: >Can you please help me for this issue > >On Wed, 20 Oct 2021, 18:53 Adharsha sri, ><<mailto:adharshasuma...@gmail.com>adharshasuma...@gmail.com> wrote: >Hi Team, > >I am unable to run a jenkins job ( shell command : date) on zos

Re: Unable to Run jenkins job on zos slave

2021-10-21 Thread Adharsha sri
Can you please help me for this issue On Wed, 20 Oct 2021, 18:53 Adharsha sri, wrote: > Hi Team, > > I am unable to run a jenkins job ( shell command : date) on zos slave . > The slave is active and online but getting some gibberish values in console > output. Please help. >

Re: Unable to Run jenkins job on zos slave

2021-10-20 Thread Adharsha sri
I am unable to run a jenkins job ( shell command : date) on zos slave . The slave is active and online but getting some gibberish values in console output. Please help. On Wed, 20 Oct 2021, 18:53 Adharsha sri, wrote: > Hi Team, > > I am unable to run a jenkins job ( shell command : dat

running a jenkins job against an apache virtualhost

2021-08-19 Thread Don Raikes
virtualhosts are host1.domain.com, host2.domain.com and host3.domain.com * The actual fqdn of the compute instance is server.domain2.com * I do not yet have dns alias records setup for the three virtualhosts, although that is in the works. 3. My Jenkins job will be running

Re: Jenkins Job creation for AOSP code from Gerrit server

2021-05-27 Thread Sourav Srivastava
Hi, Need Help !!! I have AOSP code hosted on Gerrit server and have configured and integrated Jenkin Server with it. Now I need help in to create a job for AOSP code to build it in jenkins. Single .git repository is working fine but since AOSP has more that 1300 repos I am not able to make

Jenkins Job creation for AOSP code from Gerrit server

2021-05-25 Thread Sourav Srivastava
Hi, Need Help !!! I have AOSP code hosted on Gerrit server and have configured and integrated Jenkin Server with it. Now I need help in to create a job for AOSP code to build it in jenkins. Single .git repository is working fine but since AOSP has more that 1300 repos I am not able to make

Re: New Jenkins job Is disabled by default

2021-04-05 Thread Suhaas Valanjoo
il 4, 2021 at 10:55:31 PM UTC+10 suh...@gmail.com wrote: > >> I created a feature branch on Bitbucket and pushed JenkinsFile amongst >> other files to the head. As defined by the administrators, I automatically >> get a Jenkins job for that branch. I do see a new job with feature bran

Re: New Jenkins job Is disabled by default

2021-04-05 Thread drpa...@gmail.com
ors, I automatically > get a Jenkins job for that branch. I do see a new job with feature branch > name but there is a strikethrough line through the name of the job on the > Jenkins dashboard. I am wondering what conditions cause it. > > I am sure it is disabled as the round icon on the left

New Jenkins job Is disabled by default

2021-04-04 Thread Suhaas Valanjoo
I created a feature branch on Bitbucket and pushed JenkinsFile amongst other files to the head. As defined by the administrators, I automatically get a Jenkins job for that branch. I do see a new job with feature branch name but there is a strikethrough line through the name of the job on the

Re: Can HTML submit button trigger a Jenkins job ?

2020-11-03 Thread Ivan Fernandez Calvo
also, if your authentication is SAML, you will have to use an API Token to call the API. SAML delegate the authentication in your IdP so Jenkins does not process your User and Password only the TOKEN generated by your IdP. El lunes, 2 de noviembre de 2020 a las 18:17:00 UTC+1, jeremy@rifti

Re: Can HTML submit button trigger a Jenkins job ?

2020-11-02 Thread jeremy mordkoff
simple answer is no. an href cannot include a headers directive or anything else) It can be done using ajax -- https://stackoverflow.com/questions/374885/can-i-change-the-headers-of-the-http-request-sent-by-the-browser or you could build a proxy that did nothing but add that header. But if y

Can HTML submit button trigger a Jenkins job ?

2020-11-01 Thread Shifa Shaikh
My HTML code is like below where i pass the crumb and try to trigger a Jenkins DSL job along with passing parameters: On the browser i see the URL as: https://localhost:8080/job/myjob1/buildWithParameters?paramone=myhost1-stop-myfolder%20-H%20Jenkins-Crumb:d863847724897hghjtg37684yh4j3y9847d

Unable to trigger Jenkins job using API Token command-line curl

2020-09-17 Thread Mohtashim S
My requirement is to trigger(build) a jenkins job using command-line which I will invoke using ansible. I'm following the instructions on this stackoverflow link <https://stackoverflow.com/questions/42817169/jenkins-trigger-builds-remotely-authentication-token-option-missing> .

Push Jenkins-Job shell- and powershell code to git?

2020-09-15 Thread Michael Renner
Moin, we have many jobs with extensive shell- und powershell code in the build sections. Is there a chance to push the code to our internal GitLab server as soon as the code/job was modified and saved? That would be an easily accessible backup that would allow to recover a previous version if e.g.

Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-17 Thread 'monger_39' via Jenkins Users
ting building: check-single-repo #230     Starting building: check-single-repo #230     Starting building: check-single-repo #230         [Pipeline] }     check-single-repo #230 repo3 completed with status UNSTABLE (propagate: false to ignore)     [Pipeline] }     check-single-repo #230 repo3 completed w

Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Devin Nusbaum
> Scheduling project: check-single-repo > [Pipeline] build (Building check-single-repo) > Scheduling project: check-single-repo > [Pipeline] build (Building check-single-repo) > Scheduling project: check-single-repo > > Starting building: check-single-rep

Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Roman O
rting building: check-single-repo #230 > Starting building: check-single-repo #230 > > [Pipeline] } > check-single-repo #230 repo3 completed with status UNSTABLE > (propagate: false to ignore) > [Pipeline] } > check-single-repo #230 repo3 completed with sta

Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Roman O
ing: check-single-repo #230 > Starting building: check-single-repo #230 > Starting building: check-single-repo #230 > > [Pipeline] } > check-single-repo #230 repo3 completed with status UNSTABLE > (propagate: false to ignore) > [Pipeline] } > check-s

Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Roman O
check-single-repo #230 repo3 completed with status UNSTABLE (propagate: false to ignore) [Pipeline] } check-single-repo #230 repo3 completed with status UNSTABLE (propagate: false to ignore) [Pipeline] } check-single-repo #230 repo3 completed with status UNSTABLE (propagate: false to

Re: Need Help in executing Rest API in Jenkins Job

2020-01-14 Thread ramesh pasham
Hi Phani, Could you please provide the error log if you can? thanks, Ramesh On Tue, Jan 14, 2020 at 10:13 AM phanindra m wrote: > Hi, > > I'm Trying to Run Rest API in Jenkins Job, but facing few issues. > > below command will fetch the session id of an application and

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

2020-01-13 Thread Dominic Espiritu
Hi Björn Pedersen, Thanks for the reply, I will try the first approach you mentioned, I might also take a look at the gerrit replication feature in the future since I have one repository that is modified completely in gerrit and should not be synced with my Git, Im just wondering of its possible w

Re: Need Help in executing Rest API in Jenkins Job

2020-01-13 Thread 'Björn Pedersen' via Jenkins Users
to see the output before trying to catch the result. Björn Am Dienstag, 14. Januar 2020 05:43:38 UTC+1 schrieb phanindra m: > > Hi, > > I'm Trying to Run Rest API in Jenkins Job, but facing few issues. > > below command will fetch the session id of an application and stores

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 rep

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

2020-01-13 Thread Dominic Espiritu
Hi, I would just like to ask if possible to push updates from my Gerrit repository to Git repository using SCM in jenkins? I only tried doing this on a manual steps from my terminal window, Any suggestions would be a good help. Thanks, Dominic -- You received this message because you are sub

Need Help in executing Rest API in Jenkins Job

2020-01-13 Thread phanindra m
Hi, I'm Trying to Run Rest API in Jenkins Job, but facing few issues. below command will fetch the session id of an application and stores it in a var variable. this command is working fine in GIT Bash, but when i trying to run this command in Execute Shell option in jenkins it is not wo

Re: withMaven step not working with altDeploymentRepository when jenkins job parameters are specified?

2020-01-05 Thread John Citizen
On Saturday, 4 January 2020 21:58:59 UTC+10, James Nord wrote: > > 'OS' is an environment variable on windows. > the maven scripts are likely looking at it and expecting one that is > defined for Windows to set some parameters. the job parameter gets set in > the environment for the process in t

Re: withMaven step not working with altDeploymentRepository when jenkins job parameters are specified?

2020-01-04 Thread James Nord
'OS' is an environment variable on windows. the maven scripts are likely looking at it and expecting one that is defined for Windows to set some parameters. the job parameter gets set in the environment for the process in the bat step if I recall correctly and this is likely messing with the sc

Re: withMaven step not working with altDeploymentRepository when jenkins job parameters are specified?

2020-01-03 Thread Lee Meador
deploy > to a specified repository but I get some errors when using jenkins job > parameters. > > > The pipeline script is simple checkout + deploy strategy. Initially I > specified the OS (used to specify the jenkins agent label) as a variable: > > def os = 'windows

withMaven step not working with altDeploymentRepository when jenkins job parameters are specified?

2020-01-02 Thread John Citizen
I am trying to use the the withMaven step in a jenkins pipeline to deploy to a specified repository but I get some errors when using jenkins job parameters. The pipeline script is simple checkout + deploy strategy. Initially I specified the OS (used to specify the jenkins agent label) as a

Re: Jenkins job dsl- any way to dry run before affecting changes?

2020-01-02 Thread Lee Meador
I gain some confidence that my DSL jobs are not catastrophic by building jobs in test folders first. Of course, this does not help when the job builds java artifacts that try to overwrite something real in my Artifactory. And it truly doesn't help when the test job overwrites LATEST in a Docker ima

Re: Jenkins job dsl- any way to dry run before affecting changes?

2019-12-30 Thread David Karr
It seems to me that the only reasonable way to "integration test" pipeline changes before deployment is simply to deploy the changes to a job that is not used for regular work, one that you can manually send events to, to make sure it does what it needs to do. This is sort of like a "canary deploy

Re: Jenkins job dsl- any way to dry run before affecting changes?

2019-12-30 Thread red 888
Hey, thanks for the suggestions! I know about the testing framework and while I may wind up using it out of necessity I think dry-run is more valuable than a unit test here. Let me ask you this, could I have a unit test that I could run locally but that that jenkins could also run first before

Re: Jenkins job dsl- any way to dry run before affecting changes?

2019-12-30 Thread Victor Martinez
I've just seen your comment in the open PR regarding https://issues.jenkins-ci.org/browse/JENKINS-27182 > What I want is for my seed job to first output what it's going to change and wait for user input, then if the user confirms make the changes IIUC, you would like to mimic a kind of code revi

Jenkins job dsl- any way to dry run before affecting changes?

2019-12-29 Thread red 888
I opened an SO post (that no one seems to be interested in) https://stackoverflow.com/questions/59314501/jenkins-job-dsl-some-way-to-do-a-dry-run I use the jenkins job dsl to create my multibranch pipeline jobs. It works great with one glaring issue- safely confirming changes _before_ applying

Re: Force Jenkins job to be in unstable state when Junit tests fail...

2019-12-11 Thread Asi Hizkiahu
10x man 💪💪💪 On Tue, Dec 10, 2019 at 10:50 AM Mark Waite wrote: > Maven surefire plugin has an argument that tells it to not fail the build > when tests fail. Pass that argument. > > Use the Jenkins junit plugin to process and display the test results. It > will mark the build as "unstable" if

Re: Force Jenkins job to be in unstable state when Junit tests fail...

2019-12-10 Thread Mark Waite
Maven surefire plugin has an argument that tells it to not fail the build when tests fail. Pass that argument. Use the Jenkins junit plugin to process and display the test results. It will mark the build as "unstable" if tests fail. On Tue, Dec 10, 2019 at 9:47 AM Asi Hizkiahu wrote: > I am u

Force Jenkins job to be in unstable state when Junit tests fail...

2019-12-10 Thread Asi Hizkiahu
I am using Jenkins version 2.190.2 Using Junit 4.11 Using Maven 3.50 Using Java JDK 1.8 I have an issue, in Jenkins, when Junit tests fail, the job is in a failed state, not in unstable one. I tried from Java to do System.exit (2) when I recognized that tests where failing, but it didn't wo

Re: Dynamically list Artifact Version in jenkins job parameter

2019-11-18 Thread Vikrant Kaushik
[image: Capture.JPG] I'm expecting by selecting the choice parameter it will version of the tool: On Monday, 18 November 2019 14:47:20 UTC+5:30, Vikrant Kaushik wrote: > > In addition to below, I wrote groovy as below for active choice parameter > selection in Jenkins job b

Re: Dynamically list Artifact Version in jenkins job parameter

2019-11-18 Thread Vikrant Kaushik
In addition to below, I wrote groovy as below for active choice parameter selection in Jenkins job but this is not working, can someone please help. import groovy.json.JsonSlurper try { def command = ["curl", "-u", "CA:Password", "-X", "POST"

Dynamically list Artifact Version in jenkins job parameter

2019-11-14 Thread Vikrant Kaushik
Hi All, I'm struggling to get the dynamically list of the Artifact Version in jenkins job parameter, I'm using Jfrog Artifactory as a remote repo.I'm trying with Active choice parameter but don't know how to get version from Artifactory. Any help would be appreciated

Re: Upload jars or Bundle to Nexus using Jenkins Job and some repository are not uploading the jars or bundle to Nexus

2019-11-14 Thread SARDARNI NK
Thank you Gunduzalp!! I was getting an error on Jenkins Build Return code is: 401, ReasonPhrase: Unauthorized. Thanks, Nav On Wednesday, November 13, 2019 at 4:32:06 PM UTC-5, Yilmaz Gunduzalp wrote: > > Do you get any errors? It could be a ssl certificate issue -- You received this messag

Upload jars or Bundle to Nexus using Jenkins Job and some repository are not uploading the jars or bundle to Nexus

2019-11-13 Thread Yilmaz Gunduzalp
Do you get any errors? It could be a ssl certificate issue -- 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 vie

Upload jars or Bundle to Nexus using Jenkins Job and some repository are not uploading the jars or bundle to Nexus

2019-11-13 Thread SARDARNI NK
Hi All, I have a Jenkins job which takes multiple parameters, one of the Parameter we have the Name: repository with choice (xxx_snapshots_xxx, xxx_releases_xxx, xxx_thirdParty_xxx ) which basically repository to upload. In Jenkins Job, we have Build Environment step with conditional steps

Unable to read credentials in Jenkins Job

2019-10-08 Thread Mohtashim S
nUsername: ${sqlusername}\nPassword: ${sqlpassword}\n" sqlu = "${sqlusername}" sqlp = "${sqlpassword}" } I need to get the same username and password directly in a Jenkins Job without using pipelines. I copy the same above code a build step execute

  1   2   3   4   5   6   >