How to download artifacts from nexus

2019-03-09 Thread Faad Sayaou
Hello, I have a pipeline which builds my project and uploads the result as a zip file on nexus. I am now making a second pipeline which will download the zip files from Nexus in order to deploy the application to a server. 1. Is there any plugin which I can use to get the latest version of my zi

Re: sending email for unstable builds

2019-03-12 Thread Faad Sayaou
t; } > unstable { > > > } > failure { > > } > aborted { > } > } > > https://jenkins.io/doc/pipeline/tour/post/ > > > Am Donnerstag, 28. Februar 2019 21:41:50 UTC+1 schrieb Faad Sayaou: >> >> Hi e

How to create environment variables with a script?

2019-03-15 Thread Faad Sayaou
Hi, Is there any method of creating environment variables via a script? The goal is to have a script that I can run whenever I have a freshly installed jenkins instance. Then I don't have to set all the variables manually. Same question also for pipelines. Thanks -- You received this message b

Re: How to create environment variables with a script?

2019-03-16 Thread Faad Sayaou
Hi, I found a way of creating it via the script console (in reference to an answer in this group). Maybe this could help others in the future instance = Jenkins.getInstance() globalNodeProperties = instance.getGlobalNodeProperties() envVarsNodePropertyList = globalNodeProperties.getAll(hudson.sla

Using active choice reactive parameter in jenkinsfile

2019-03-19 Thread Faad Sayaou
Hi, I am using active choice reactive parameter and I would like to access the selected value from my jenkinsfile. Is that possible with this plugin ? I used active choices parameter as follows Name: select_ environment Groovy script : return [“dev”,”QA”,”prod”] Based on the selected environ

Creating multiple pipeline jobs using groovy

2019-03-25 Thread Faad Sayaou
Hi, Is there any way I can create multiple pipeline jobs using A single groovy script ? Say 5 pipeline jobs by setting Name of the job Git repository Script path= Jenkinsfile Perhaps credentials too Thanks -- You received this message because you are subscribed to the Google Groups "Jenki

Accessing active choice reference parameter in jenkinsfile

2019-04-04 Thread Faad Sayaou
Hello, This might be simple but I having difficulties accessing Active choice reference parameter in my jenkinsfile. It is simple using “active choices reactive parameter” by doing ${params.myvalue} but this doesn’t work when I use it with “active choices reactive reference parameter”. Any idea

Programmatically create Jenkins dashboard view

2019-04-29 Thread Faad Sayaou
Hi everyone, I have several dashboard views and I would like to know if there is a possibility of creating these views using groovy script? Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop rece

Re: Programmatically create Jenkins dashboard view

2019-05-02 Thread Faad Sayaou
this world a little better than you found it and, when > your turn comes to die, you can die happy in feeling that at any rate you > have not wasted your time but have done your best ~~~ > > Lord Baden-Powell > > > On Tue, Apr 30, 2019 at 8:20 AM Faad Sayaou wrote: > >>

Re: Active Choices Reactive Reference Parameter -> use the parameter in a bash ?

2019-05-13 Thread Faad Sayaou
have you tried ${params.ReactiveRefParam} ??? On Monday, 13 May 2019 11:27:01 UTC+2, b o b i wrote: > > In > Scenario 2: Pass a dynamically created value that is *hidden* (can't be > edited by the user) > > return " class=\"setting-input\" type=\"text\">" > > > *ReactiveRefParam* is the Reactiv

Creating jobs grid portlet using groovy

2019-05-14 Thread Faad Sayaou
Hi, I created a script to create a dashboard view but I am having difficulties creating job grid in my groovy script. Any idea how to include portlets via groovy ? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group

Re: Get stage name in pipeline

2019-08-23 Thread Faad Sayaou
0mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAM6nqfeQ9sPjgT-nPf%2BhWDY-nuE30%3D3O6No-10WLT3G%2B-jiPvg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- *Best Regards / Mit freundlichen Grüßen,* *Faad Sayaou,* *Embedded Systems fo

How to verify if directories exist on remote server from jenkinsfile?

2020-05-19 Thread Faad Sayaou
Hi All, I have 4 directories on my remote server and I will like to verify if the directories exist on the remote server. If not then create these directories. I already enabled key based login and I will like to know how to check from my jenkiins. Best regards -- You received this messag

Changing Jenkins URL

2018-10-16 Thread Faad Sayaou
Hello everyone I changed Jenkins URL field to "jenkins-app.mywebsite.com" in the jenkins.model.JenkinsLocationConfiguration.xml file and I tried accessing it on the browser but to no avail. My goal is to set up a running Jenkins instance where everyone in the company can access it with the link.

Re: Changing Jenkins URL

2018-10-23 Thread Faad Sayaou
ure how Jenkins will > notify the users of the instance, in case of build failure for example. > > You still need to configure the DNS, reverse-proxy or other elements. > > Best regards. > -- Adrien > > Le mar. 16 oct. 2018 à 21:58, Faad Sayaou a écrit : > >> Hello eve

Zipping build artifacts on jenkins

2018-11-08 Thread Faad Sayaou
Hello, I am having difficulties zipping results from a build process in a jenkins pipeline. As of now, I am getting just an empty zipped directory called HelloJenkins.zip. The build result is under *HelloJenkins/bin/release* and I will like to zip the entire zip folder. Below is my code stag

Error: Batch scripts can only be run on windows nodes (on windows machine)

2018-11-08 Thread Faad Sayaou
Hello, I am having this strange error even though i am running jenkins on a windows machine (in a docker container). The script works perfectly on my second windows machine (jenkins installed locally and not in a container as the first machine) The error states: *java.io.IOException: Batch scr

Error fetching remote origin in Jenkins pipeline

2018-11-09 Thread Faad Sayaou
Everything was working fine until i added a new file to my gitlab repository. It seems jenkins is not keeping track of changes made to my repository and somehow inconsistent. I am getting the error* Error fetching remote origin in Jenkins pipeline *after adding this file. Any help on how to rep

Jenkins upload dotnet build results to nexus

2018-11-11 Thread Faad Sayaou
Hi all, I am using a pipeline script to upload the result of my dotnet build (in a zip) to nexus repo 3. I am using the Nexus repository manager to do so. However, I am getting an error when I execute the build. Is there any way I can use maven to upload the zipped results to nexus? here is my s

Adding files before zipping (pipeline utility plugin Jenkins)

2018-11-15 Thread Faad Sayaou
Hello, I currently have a pipeline which zips results of a build stage. I have a README.md file which i will like to add in my zip file when uploading to nexus. The file is included during checkout. how do I add this during the zip stage? I tried the approach below but it doesn't add the readme

Re: Adding files before zipping (pipeline utility plugin Jenkins)

2018-11-15 Thread Faad Sayaou
November 2018 19:15:41 UTC+1, Stuart Rowe wrote: > > Have you tried copying the *README.md* into *directory/to/my/folder* before > calling *zip*? > > On Thursday, 15 November 2018 09:38:27 UTC-8, Faad Sayaou wrote: >> >> Hello, >> I currently have a pipeline which

Jenkins-nexus= bad gateway

2018-12-03 Thread Faad Sayaou
Hello, I am currently having a problem with my jenkins nexus upload. It was however working before now I get an error * return code is: 502, ReasonPhrase: Bad gateway.* *uploading file bin.zip failed* And also I have this warning in my configuration (attached to this thread). I don't know if t

xunit report from dotnet test command in jenkins pipeline

2018-12-09 Thread Faad Sayaou
Hello everyone, I have been struggling with an issue for parsing test results to xunit for publishing. My goal is to display this in Jenkins UI for seeing all the passed tests. Below is my script sh *'dotnet test --logger:trx path/to/my/project/project.csproj'* * xunit testTimeMargin: '30

problems using google chat notification plugin

2019-01-03 Thread Faad Sayaou
Hello everyone, I am trying to use the Google chat notification plugin to post successful or failed builds I used the pipeline snippet generator to generate the command for this. However there are different ways of the defining the URL. I am now trying to configure google webhook but I do not k

Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Faad Sayaou
Hi everyone, I have this scenario i would like to implement but i don not know if that is possible within a single jenkinsfile. My idea was to have 2 pipelines 1st pipeline -git checkout -build -Test 2nd pipeline if first build from the first pipeline was successful, then -re-do the first 3

Re: Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Faad Sayaou
I was thinking maybe doing something like this would help but unfortunately not node { stages } node2 { stages } but it is viewed by jenkins as a single pipeline. I am using the scripted pipeline syntax On Thursday, 10 January 2019 16:25:11 UTC+1, Faad Sayaou wrote: > &

Re: Creating 2 pipelines in a single jenkinsfile

2019-01-10 Thread Faad Sayaou
You can create two pipeline jobs and have the first one trigger the >>> second one as a downstream job. >>> i.e in a finally block you can check the result of the build and trigger >>> the pipeline that publish to nexus >>> >>> On January 10,

How to modify xml elements from an xml file in jenkins

2019-01-14 Thread Faad Sayaou
I have an issue with my pipeline. I have an XML file in my project repo and I will like to read this file and change values after my checkout stage. verNum.xml 1.0.0 and my jenkinsfile node { stage ('checkout') { ... } stage ('readfile') { readFile("verNum.xml")

How to Auto-increment XML tag value in jenkins

2019-01-21 Thread Faad Sayaou
Hi, I have an xml file in my project repo which after checkout, I will like to auto increment the last value of the version number for every build. I am already accessing the version number using xmlslurper and storing this in a variable. I have something like this in my pipeline script and my x

How to auto increment a variable for every Jenkins Build

2019-01-24 Thread Faad Sayaou
Hello everyone, I would like to auto increment a number for every Jenkins build. I have a function which reads value (1.0.0.0) from a file which goes as follows String IncBuildNum() { def v= getVersion("path/to/file.xml") def splitted= v..split('\\.') splitted[3]= (((splitted[3] +1 as BigDe

Re: How to auto increment a variable for every Jenkins Build

2019-01-24 Thread Faad Sayaou
Thursday, January 24, 2019 at 10:12:30 AM UTC-8, Faad Sayaou wrote: >> >> Hello everyone, >> >> I would like to auto increment a number for every Jenkins build. I have >> a function which reads value (1.0.0.0) from a file which goes as follows >> >>

How to push to Gitlab after Jenkins build

2019-01-27 Thread Faad Sayaou
0 I have a stage at the end of my pipeline job which has to push changes back to a particular Gitlab branch. After trying out several solutions proposed on stackoverflow, I am still not able to push to the branch sh("git add .") sh("git commit -a -m ' New changes'") sh('git push https://${GIT_U

Re: How to push to Gitlab after Jenkins build

2019-01-27 Thread Faad Sayaou
surprised that it says everything is up to date On Sunday, 27 January 2019 22:14:03 UTC+1, Faad Sayaou wrote: > > 0 > > I have a stage at the end of my pipeline job which has to push changes > back to a particular Gitlab branch. After trying out several solutions > proposed on s

How to include other files using (pipeline utility plugin) in jenkins pipeline

2019-01-29 Thread Faad Sayaou
Hello, I am using the pipeline utility plugín for zipping build results in order to do a nexus upload in my pipeline script. However, I have a readme.md file in my workspace which i will like to include when zipping my build artifacts. I tried the following stages stage ('zip stage') {

Re: How to include other files using (pipeline utility plugin) in jenkins pipeline

2019-01-29 Thread Faad Sayaou
you have put, it looks like you'd end up with > a zip file called "bin.zip**/some/other/path/bin.zipREADME.md" - is that > definitely what you have in your pipeline? > > > Richard. > > On Wed, Jan 30, 2019 at 7:59 PM Faad Sayaou > wrote: > >> He

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

2019-02-04 Thread Faad Sayaou
I am trying to have the reason as it is printed on the console of my Jenkins instance why a build failed through email. I did the following try { . } catch (err) { cause=err emailext body:"Error: $cause ", to: 'myem...@gmail.com' } The result on the console is something like "dotnetge co

Jenkins pushing to a Nuget hosted repository (Nexus)

2019-02-23 Thread Faad Sayaou
Hi All, I am trying to push my nuget package generated from dotnet build and pack command. I already installed the Nuget plugin and I also configured API key and server URL. I left the NuGet command line executable field empty in the jenkins config. I did a sh *"nuget push myNuget.package.$versi

Sending email for unstable build

2019-02-28 Thread Faad Sayaou
Hi everyone I am using the extended email plugin for notification when the build fails by using try catch. I will also like to send email when the build is unstable. Below is the structure of my pipeline node { try { stage('Checkout') { cleanWs() che

sending email for unstable builds

2019-02-28 Thread Faad Sayaou
Hi everyone I am using the extended email plugin for notification when the build fails by using try catch. I will also like to send email when the build is unstable. Below is the structure of my pipeline node { try { stage('Checkout') { cleanWs() che

Re: sending email for unstable builds

2019-02-28 Thread Faad Sayaou
um: 01.03.19 03:06 (GMT+01:00) > An: jenkinsci-users@googlegroups.com > Betreff: Re: sending email for unstable builds > > You can check the status of build by using BUILD_STATUS, if it is unstable > then send a mail > > On Fri, 1 Mar 2019, 02:11 Faad Sayaou, wrote: > >> H

Re: How to find specific warnings from jenkins console

2021-01-05 Thread Faad Sayaou
Hi Dany, thanks for the recommendation. I will check it out. best regards On Tue, 5 Jan 2021 at 10:13, Dany Jacob wrote: > you can try Warnings Next Generation | Jenkins plugin > and if the existing ones don't > fit your need, you may simply write a cust