SSL invalid handshake issue

2021-10-07 Thread jesus fernandez
I am using the P4 plugin for Jenkins, I had this SSL invalid handshake issue before which I sorted by starting jenkins (I am running Jenkins through the war file on Windows 10) with the following command " java -DsecureSocketEnabledProtocols=TLSv1 -jar jenkins.war" but it does not seem to be w

how to use publish-over-dropbox plugin

2021-06-30 Thread jesus fernandez
I am using Jenkins 2.299, I am trying to use the publish-over-dropbox(latest version) plugin for jenkins for the first time, but when I try to create the credentials using the kind Dropbox api token, I generate it and copy paste it to the token field, but then I get an ```A problem occurred whi

Re: how can I iterate a json with a list of objects in a pipeline?

2021-04-19 Thread jesus fernandez
Thanks it works now! El lunes, 19 de abril de 2021 a las 18:55:19 UTC+2, davidmic...@gmail.com escribió: > You're missing the most important value of what JsonSlurper (and similar > tools) provides. There is no reason to iterate maps, and it's important to > realize that there is no ordering g

how can I iterate a json with a list of objects in a pipeline?

2021-04-19 Thread jesus fernandez
I have a json object which I receive in my jenkins pipeline through a url and I parse it like this: ``` def url = 'http://localhost:8080/job/find_issues/22/cppcheck/all/api/json' def json = new JsonSlurper().parseText( new URL(url).text ) ``` Which has this format ``` { "_class": "io.jenkins.plu

Re: how to access all classes and methods of a plugin in jenkins pipeline?

2021-04-15 Thread jesus fernandez
Yes I will do so El miércoles, 14 de abril de 2021 a las 21:00:34 UTC+2, ullrich...@gmail.com escribió: > Can you please file a bug report for the warnings plugin, it seems > something broken in my build... > > Am 14.04.2021 um 18:55 schrieb jesus fernandez : > > yes all t

Re: Can I send cppcheck results through slack in a jenkins pipeline?

2021-04-15 Thread jesus fernandez
plugin/blob/master/ui-tests/src/test/java/io/jenkins/plugins/analysis/warnings/SmokeTests.java#L99 > > > Am 13.04.2021 um 16:17 schrieb jesus fernandez : > > How can I access those token macros? (sorry if this is a silly question) I > have never used them before, I tried

Re: how to access all classes and methods of a plugin in jenkins pipeline?

2021-04-14 Thread jesus fernandez
yes all the other plugins I have checked so far have a woeking javadoc El mié., 14 abr. 2021 18:20, Ullrich Hafner escribió: > I publish one, but never looked at the results. Does that work for other > plugins? > > Am 13.04.2021 um 13:32 schrieb jesus fernandez < > jesusferna

Re: Can I send cppcheck results through slack in a jenkins pipeline?

2021-04-13 Thread jesus fernandez
a las 14:03:39 UTC+2, ullrich...@gmail.com escribió: > > https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md#token-macro-support > > Am 09.04.2021 um 13:59 schrieb jesus fernandez : > > Thanks for replying, any documentation or link to guide me in the ri

Re: how to access all classes and methods of a plugin in jenkins pipeline?

2021-04-13 Thread jesus fernandez
ortedBean. > > Am 12.04.2021 um 10:16 schrieb jesus fernandez : > > > where can I see that? in the javadoc I do not see any method with that > annotation, thoug I could use the getResults() with no problems > El domingo, 11 de abril de 2021 a las 21:43:06 UTC+2, ullrich...@gmai

Re: how to access all classes and methods of a plugin in jenkins pipeline?

2021-04-12 Thread jesus fernandez
are > accessible in Groovy scripts. Does your getter have such an annotation? > > Am 11.04.2021 um 19:02 schrieb jesus fernandez : > > I am a junior dev trying to lear about Jenkins, I have been learning on my > own for a couple of months. Currently I have a pipeline (just for

how to access all classes and methods of a plugin in jenkins pipeline?

2021-04-11 Thread jesus fernandez
I am a junior dev trying to lear about Jenkins, I have been learning on my own for a couple of months. Currently I have a pipeline (just for learning purposes) which runs static analysis on a folder, and then publish it, I have been able to send a report through email using jelly templates, from

Re: is there a way to see all the available methods of a plugin in Jenkins?

2021-04-09 Thread jesus fernandez
ere... any help is much appreciated El viernes, 9 de abril de 2021 a las 16:05:31 UTC+2, jesus fernandez escribió: > But the object model of both is different, you need to choose the > correct one in the email template! > > Yes, that template I am using it with publishcpp

Re: is there a way to see all the available methods of a plugin in Jenkins?

2021-04-09 Thread jesus fernandez
I get an error 'groovy.lang.MissingPropertyException: No such property: cppcheckResult for class: groovy.lang.Binding' so I am stuck trying to get the total number of errors from each build El viernes, 9 de abril de 2021 a las 15:41:22 UTC+2, jesus fernandez escribió: > but thi

Re: is there a way to see all the available methods of a plugin in Jenkins?

2021-04-09 Thread jesus fernandez
but this is like god trying to explain something to a rock, I have just started in this world...hehehe El viernes, 9 de abril de 2021 a las 15:40:44 UTC+2, jesus fernandez escribió: > hahaha oh gosh I should have known I watched your video on youtube a few > days ago. > > El v

Re: is there a way to see all the available methods of a plugin in Jenkins?

2021-04-09 Thread jesus fernandez
m not sure if there is an easy way to debug email ext templates in the >> meantime, I am not using it actively. >> But you can simply start with a subset of the script below and check >> which values produce a result and which not. >> >> Am 09.04.2021 um 14:32

Re: is there a way to see all the available methods of a plugin in Jenkins?

2021-04-09 Thread jesus fernandez
lates in the > meantime, I am not using it actively. > But you can simply start with a subset of the script below and check which > values produce a result and which not. > > Am 09.04.2021 um 14:32 schrieb jesus fernandez : > > my projects are in Perforce. What if I want to ac

Re: is there a way to see all the available methods of a plugin in Jenkins?

2021-04-09 Thread jesus fernandez
ld-school when it comes to build result reporting... > > Am 09.04.2021 um 13:58 schrieb jesus fernandez : > > Thanks for asering. I have been checking the javadoc of the plugin > https://javadoc.jenkins.io/plugin/email-ext/ but my java knowledge is > super basic and I do not g

Re: Can I send cppcheck results through slack in a jenkins pipeline?

2021-04-09 Thread jesus fernandez
the warnings plugin, it can export the > results of CppCheck either into tokens or into objects (that you can > process using your pipeline). > > I have no idea if the slack plugin is capable of doing step 2 though, but > I would assume that it works in that way... > > A

Re: is there a way to see all the available methods of a plugin in Jenkins?

2021-04-09 Thread jesus fernandez
las 13:48:03 UTC+2, ullrich...@gmail.com escribió: > You need to read the code of the plugin. I.e., the model of the producer > plugin. > > > Am 09.04.2021 um 13:08 schrieb jesus fernandez : > > I am learning Jenkins on my own and I am trying to learn about plugins. I >

is there a way to see all the available methods of a plugin in Jenkins?

2021-04-09 Thread jesus fernandez
I am learning Jenkins on my own and I am trying to learn about plugins. I have a stage to send an email with the cppcheck results with a template I found https://stackoverflow.com/questions/13888338/sending-cppcheck-result-report-on-email-from-jenkins-using-email-ext-plugin the template instan

Can I send cppcheck results through slack in a jenkins pipeline?

2021-04-08 Thread jesus fernandez
I just started using cppcheck, and I was wondering if there is any way to access to the report values (for instance number of total errors) and send it to slack. I have been searching in the documentation and here in SO but I have found nothing, as I just have been using Jenkins for a couple of

Re: I cannot run Azure CLI commands from jenkins pipeline

2021-04-08 Thread jesus fernandez
it happened to be an issue with the path, as jenkins uses its own path for its user I have not declared the path for the right user El miércoles, 7 de abril de 2021 a las 9:24:44 UTC+2, jesus fernandez escribió: > az is installed as it runs from the cmd, and it also runs if I start > j

error when sending jelly template using email ext plugin with jenkins

2021-04-08 Thread jesus fernandez
I want to send the cppcheck report through email but I had never used the email ext plugin before, so I found this https://stackoverflow.com/questions/13888338/sending-cppcheck-result-report-on-email-from-jenkins-using-email-ext-plugin with a nice jelly template to do so, I have also followed

Re: how can I use my own templates with email ext plugin in Jenkins?

2021-04-08 Thread jesus fernandez
I have also tried with some other templates with the same result, if I remove the ```mimeType: 'text/html'``` I do not get an error but I get a blank email in both cases El jueves, 8 de abril de 2021 a las 13:02:11 UTC+2, jesus fernandez escribió: > I want to send the cppcheck r

how can I use my own templates with email ext plugin in Jenkins?

2021-04-08 Thread jesus fernandez
I want to send the cppcheck report through email but I had never used the email ext plugin before, so I found this https://stackoverflow.com/questions/13888338/sending-cppcheck-result-report-on-email-from-jenkins-using-email-ext-plugin with a nice jelly template to do so, I have also followed

Re: I cannot run Azure CLI commands from jenkins pipeline

2021-04-07 Thread jesus fernandez
az is installed as it runs from the cmd, and it also runs if I start jenkins from a non administrator prompt, it just do not work when starting Jenkins from a admin prompt (which I need to) El martes, 6 de abril de 2021 a las 21:22:06 UTC+2, Martin Schmude escribió: > Maybe az has not been inst

I cannot run Azure CLI commands from jenkins pipeline

2021-04-06 Thread jesus fernandez
I am trying to run some az commands from a Jenkins pipeline which (running in Windows 10) I already used in my laptop´s Jenkins, but when trying to use it on another computer (also running w10) I get this error : ``` 11:12:47 powershell.exe : az : The term 'az' is not recognized as the name of

Re: how can I run cppcheck in Jenkins?

2021-04-01 Thread jesus fernandez
ture_16446078] <https://www.dimonoff.com/> > > *dimonoff.com* <https://www.dimonoff.com/> > > 1015 Avenue Wilfrid-Pelletier, > > Québec, QC G1W 0C4, 4e étage > > > > > > *From: *jenkins...@googlegroups.com on > behalf of jesus fernandez > *D

how can I run cppcheck in Jenkins?

2021-03-31 Thread jesus fernandez
I have a playground pipeline and I am trying to start using cppcheck, but when I execute the command in the cmd (I am running windows 10) it works fine, but if executing the command inside the pipeline, it returns ```'cppcheck' is not recognized as an internal or external command``` I have inst

Re: How to publish cppcheck results in a pipeline?

2021-03-26 Thread jesus fernandez
t; > > I still do not understand why you are redirecting stdout or stderr. I > would assume that every tool that creates XML files automatically creates > the file in your workspace. Did you check the workspace if there is a file > if you omit the redirect (>)? > > > >

Re: How to publish cppcheck results in a pipeline?

2021-03-26 Thread jesus fernandez
finitely not XML :-) > This is the stderr of your program! > > 2 > cppcheck.xml pipes your stderr to a file. You do not need this part. > > Am 25.03.2021 um 20:08 schrieb jesus fernandez : > > so it seems like if it basically is writting all the outputs the cmd throws > >

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
so it seems like if it basically is writting all the outputs the cmd throws El jueves, 25 de marzo de 2021 a las 20:07:20 UTC+1, jesus fernandez escribió: > the supposely .xml does not have any format, these are the first 5 lines: > Checking E:\Source\Game\AchievementManag

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
the file contains valid XML can you > please show the first 5 lines of the XML file here? > > Am 25.03.2021 um 19:36 schrieb jesus fernandez : > > I thought the ```bat'cppcheck "E:/Source" --force — enable=all — > inconclusive — xml — xml-version=2 . 2 > cppch

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
ML tag. Can you open it in an > editor that can validate the XML? > > Am 25.03.2021 um 17:57 schrieb jesus fernandez : > > Thanks for replying, I have opened and it has 2000 lines of code but I do > not know if it is valid or not as I have never used cppcheck before, and if > it i

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
UTC+1, ullrich...@gmail.com escribió: > It look like your create XML is not valid. Can you please open the XML > file and check? > > Am 25.03.2021 um 17:40 schrieb jesus fernandez : > > I am learning about Jenkins on my own, and I wanted to try the cppcheck > plugin, I hav

How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
I am learning about Jenkins on my own, and I wanted to try the cppcheck plugin, I have setup the following sample pipeline: ``` pipeline { agent any stages { stage('analysis') { steps { script{ bat'cppcheck "E:/Source" --force — enab

Re: how can I get the value of a global variable within a function in a pipeline?

2021-02-12 Thread jesus fernandez
Thanks a lot Victor, the links provided made it much clear now and the example worked just fine. You are always saving me hehe El jueves, 11 de febrero de 2021 a las 22:11:15 UTC+1, victormar...@gmail.com escribió: > You can simplify it quite a bit with the post stage event > https://www.jenki

how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread Jesus Fernandez
I have a declarative pipeline with a few steps. at the end I send a message to slack with some statistics of the compilation times and some more information. I want to send in case it fails the stage at which it fails. I have set a global variable but the function does not seem to be able to rea

Re: how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread jesus fernandez
Venkatesh > > > On Thu, Feb 11, 2021 at 11:26 PM jesus fernandez > wrote: > >> >> I have a declarative pipeline with a few steps. at the end I send a message >> to slack with some statistics of the compilation times and some more >> information. I want to

how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread jesus fernandez
I have a declarative pipeline with a few steps. at the end I send a message to slack with some statistics of the compilation times and some more information. I want to send in case it fails the stage at which it fails. I have set a global variable but the function does not seem to be able to rea

I get an error when trying to iterate a xml file in jenkins pipeline

2020-11-17 Thread jesus fernandez
I am trying to understand how to iterate a .xml file in Jenkins so I create a super simple .xml file: ``` hello bye ``` I just want to get acces to a tag value (i.e. tag3) and print it out. I have been reading a lot here on SO and I this is the cod I have: ``` import groovy.xml.* pipel

how to get the last commiter in jenkins pipeline

2020-11-16 Thread jesus fernandez
I have a Jenkins pipeline setup that it works with Perforce as SCM I have been trying to find if it is possible to send a slack message(it is already connected to slack to send msgs to a channel on each build) / email to the person who commited in case the build fails, I have found information b

error indexing C++ .h files on sonarqube with jenkins

2020-11-13 Thread jesus fernandez
It is my first time using sonarqube. I am using 7.9.4 version with the community cxx plugin. I tried in a super simple project and it worked so I went for a bigger project but I keep getting this error everytime I try to build my pipeline ```Language of file 'Source\age3\abilities.h' can not b

Re: where do I have to set the sonar-project.properties file to make sonar work in Jenkins?

2020-11-12 Thread jesus fernandez
\anton\.jenkins\workspace\Boston\.scannerwork\scanner-report 00:00:04.783 11:26:43.876 DEBUG: Upload report 00:00:04.783 11:26:43.904 DEBUG: POST 200 http://localhost:9000/api/ce/submit?projectKey=Test&projectName=Test | time=27ms 00:00:04.783 11:26:43.905 INFO: Analysis report uploaded

Re: where do I have to set the sonar-project.properties file to make sonar work in Jenkins?

2020-11-12 Thread jesus fernandez
01:00, David Karr wrote: > >> I have never seen the "-D" command-line option used with a space between >> the option and the provided value, and the documentation never shows that >> example. >> >> On Wed, Nov 11, 2020 at 1:13 PM jesus fernand

Re: where do I have to set the sonar-project.properties file to make sonar work in Jenkins?

2020-11-12 Thread Jesus Fernandez
d Karr wrote: > >> I have never seen the "-D" command-line option used with a space between >> the option and the provided value, and the documentation never shows that >> example. >> >> On Wed, Nov 11, 2020 at 1:13 PM jesus fernandez >> wrote

Re: where do I have to set the sonar-project.properties file to make sonar work in Jenkins?

2020-11-11 Thread jesus fernandez
ranch has no lines of code." even though on activity I can see the task has been executed each time I run the pipeline El miércoles, 11 de noviembre de 2020 a las 22:09:21 UTC+1, jesus fernandez escribió: > Thanks Geofrroy for your answer, > > I had posted the question in the sonarsour

Re: where do I have to set the sonar-project.properties file to make sonar work in Jenkins?

2020-11-11 Thread jesus fernandez
10 de noviembre de 2020 a las 20:41:32 UTC+1, >> davidmic...@gmail.com escribió: >> >>> I believe that the mistake that most people make with running the >>> sonarqube scan from a CI build is TRYING to define a sonarqube properties >>> file. It's best to simp

Re: where do I have to set the sonar-project.properties file to make sonar work in Jenkins?

2020-11-11 Thread jesus fernandez
It's best to simply provide all of the required options on the > sonar-scanner command line, using "-D". > > On Tue, Nov 10, 2020 at 3:44 AM jesus fernandez > wrote: > >> I am trying to learn the basics of sonarqube, I have set it up on my >> jenkins pipel

where do I have to set the sonar-project.properties file to make sonar work in Jenkins?

2020-11-10 Thread jesus fernandez
I am trying to learn the basics of sonarqube, I have set it up on my jenkins pipeline (which uses MSBuild to compile the project) and the set a step to execute SonarQube but after reading and watching a few tutorials and the documentation itself I think I got a bit lost as when my pipeline fini

Re: how to add a configuration parameter with spaces on Jenkins

2020-11-10 Thread jesus fernandez
that worked! thanks! El viernes, 6 de noviembre de 2020 a las 15:55:26 UTC+1, victormar...@gmail.com escribió: > Did you try with escaped double quotes? Something like: > > >- bat "\"${msbuild}\" AoC/Source/project-GRDK.sln /t:Rebuild >/p:configuration=\"Release Steam D3D11\" " > > >

how to add a configuration parameter with spaces on Jenkins

2020-11-06 Thread Jesus Fernandez
I have a pipeline which builds a C++ project for that I am using MSBuild, untill now we were using the "Final" configuration parameter, but now I need to switch it to "Release Steam D3D11", when I try to do that I get an error on Jenkins when building the project I guess it is because of the sp

Re: can I run a stage at a certain time within a pipeline

2020-11-06 Thread jesus fernandez
Gracias Victor! El viernes, 30 de octubre de 2020 a las 19:48:15 UTC+1, victormar...@gmail.com escribió: > triggeredBy within the stage context should help you: > https://www.jenkins.io/doc/book/pipeline/syntax/#when > > pipeline { >... >triggers { > cron 'H H22 * * 1-5' >} >

Re: why my pipeline creates different workspaces?

2020-11-06 Thread jesus fernandez
Gracias por aclararlo ahora tiene sentido :) El viernes, 30 de octubre de 2020 a las 19:39:40 UTC+1, victormar...@gmail.com escribió: > Directories with an ampersand (like @tmp, @script, @libs, @2) are > specifically created by the pipeline internals, each one got a different > context. The on

How to add a configuration parameter with spaces on Jenkins

2020-11-06 Thread jesus fernandez
I have a pipeline which builds a C++ project for that I am using MSBuild, untill now we were using the "Final" configuration parameter, but now I need to switch it to "Release Steam D3D11", when I try to do that I get an error on Jenkins when building the project I guess it is because of the sp

How to run a visual studio CMD command in a pipeline?

2020-10-26 Thread jesus fernandez
I need to run a elevated x64 Native Tools Command Prompt fro VS 2019 command ("vcperf /start session") within my pipeline. I have tried different ways but I cannot make it work. This is what I tried last: pipeline { agent any stages { stage('test') { steps {

why my pipeline creates different workspaces?

2020-10-08 Thread jesus fernandez
I am quite new to Jenkins. I managed to create a simple pipeline to pull from perforce and build the project every commit, but I find sometimes it creates a different workspace such as project@2, project@tmp, project@tmp@2 and so on... why does this happen I have even set the customworkspace. S

can I run a stage at a certain time within a pipeline

2020-09-26 Thread jesus fernandez
I have a declarative pipeline with 3 stages and it is using poll SCM every 10 minutes (checkout, build and deploy), but I need the last step (deploy) to be executed just once everyday (i.e. 22 o´clock) so it keeps checking out and building everytime a change is submitted but it only deploys onc

Re: How to reuse an existing workspace?

2020-09-24 Thread jesus fernandez
arative and scripted pipelines, so I don't know if there is > that option in freestyle too. > > Cheers, > Gianluca. > > > Il giorno gio 24 set 2020 alle ore 15:33 jesus fernandez < > jesusfern...@gmail.com> ha scritto: > >> I am quite new to Jenkins,

How to reuse an existing workspace?

2020-09-24 Thread jesus fernandez
I am quite new to Jenkins, I have been learning on my own, I have a working freestyle project that I want to convert to pipeline now, I have the script (at least I think) but I do not know what to add to make it use the existing workspace from the freestyle job so when pulling from the SCM does

Re: how to execute a bash script in a jenkins declarative pipeline

2020-09-24 Thread jesus fernandez
but what you suggested worked! probaly I need to improve my batch scripting knowledge as it is none at the moment. THANKS A LOT! El jueves, 24 de septiembre de 2020 a las 16:19:09 UTC+2, jesus fernandez escribió: > I also tried with call but I get this error: > ``` > *16:18:43* C:\U

Re: how to execute a bash script in a jenkins declarative pipeline

2020-09-24 Thread jesus fernandez
ct/Steam > Build Scripts/scripts/build_dev.bat”'); > > > > Why do you need the start? Is the command return before completion or > something? > > > > > > *From:* jenkins...@googlegroups.com *On > Behalf Of *jesus fernandez > *Sent:* September 2

how to execute a bash script in a jenkins declarative pipeline

2020-09-24 Thread jesus fernandez
I have started recently using Jenkins in windows 10. I have a freestyle job that sync from the SCM, build a C++ solution and then it runs a batch script to upload to steam. I am trying to convert it to pipeline as I realized reading the documentation how much more powerful it is. My problem is