Throttle Concurrent Builds and Matrix configuration builds

2021-03-15 Thread Geoffroy J
Hello

i am trying to achieve the following use case using Throttle Concurrent
Builds 2.2 plugin:

Given a multi-configuration (matrix) job, limit the parallel execution of
the job configurations to the following:

   1. no more than 4 configurations of given job running globally
   2. no more than 2 configuratiosn of given job running per node


Job is configured to execute on a generic label matching several nodes.

[image: image.png]

However, at execution, i can see that all my node executors are being
filled by the numerous matrix job configurations, so it seems above setup
does not have any impact.

Am i missing something regarding this plugin usage?

Thanks in advance for your

-- 
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/d/msgid/jenkinsci-users/CAG_uJ%2BCSVPJvNPrZprAy4xcRQC42tStwF6FeH4RJFpmE4_Xotg%40mail.gmail.com.


Re: Abridged summary of jenkinsci-users@googlegroups.com - 1 update in 1 topic

2021-01-24 Thread Geoffroy J
Hello
you probably want to use
https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#isunix-checks-if-running-on-a-unix-like-node

On Sun, 24 Jan 2021 at 16:51,  wrote:

> jenkinsci-users@googlegroups.com
> 
>  Google
> Groups
> 
> 
> Today's topic summary
> View all topics
> 
>
>- Portable Maven launch <#m_-8632882283779708753_group_thread_0> - 1
>Update
>
> Portable Maven launch
> 
> Jochen Wiedmann : Jan 23 12:12PM -0800
>
> Hi,
>
> I've got a pipeline file, that should be executable on a Windows build
> server, and on a Linux build server. The pipeline is launching Maven as
> follows:
>
> On Linux:
>
> sh "mvn ...more
> 
> Back to top <#m_-8632882283779708753_digest_top>
> You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> 
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
>

-- 
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/d/msgid/jenkinsci-users/CAG_uJ%2BBkaB5tgCW-YFrJhvpgMYCXj062V-x3gRioVMwg_jT47A%40mail.gmail.com.


CustomTool installation issue with large Matrix job (race condition)

2020-11-13 Thread Geoffroy J
Hello

I have a fairly large matrix job (30 environments).

For one matrix environment only, I need to install a dedicated tool
(Sonarqube build-wrapper).
CustomTool works perfectly fine for this purpose.

However, as CustomTool installation is defined as a build wrapper step, it
get activated for all matrix environments, resulting in the tool being
installed 30 times.

As you can imagine, because several jobs are executed in // on the same
machine, we regularly face some installation race conditions (mostly on
windows) as one job is installing the tool and another one also tries to
install it (and the first step of installation seems to be uninstalling)...

Any recommendations on how to workaround this behavior?

Maybe there could be an option not to fail in case of tool installation
failure. But as the plugin seems "abandoned" it might not be a great idea
to
Elsewhere i'll switch to a manual install...


[CustomTools] - scm-sonarqube-build-wrapper: Starting installation
FATAL: Failed to install
https://sonarqubeserver/sonarqube-prod/static/cpp/build-wrapper-win-x86.zip
to
E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper
Also:   Also:   java.nio.file.AccessDeniedException:
E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper\build-wrapper-win-x86\build-wrapper-win-x86-64.exe
at
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at
sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at
sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at
jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
Also:   java.nio.file.AccessDeniedException:
E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper\build-wrapper-win-x86\build-wrapper-win-x86-64.exe
at
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at
sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at
sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at
jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)
jenkins.util.io.CompositeIOException: Unable to remove file
E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper\build-wrapper-win-x86\build-wrapper-win-x86-64.exe
at
jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:252)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at
jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at
jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at
jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:87)
Also:   Also:   java.nio.file.DirectoryNotEmptyException:
E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper\build-wrapper-win-x86
at
sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266)
at
sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at
jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
Also:   java.nio.file.DirectoryNotEmptyException:
E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper\build-wrapper-win-x86
at
sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266)
at
sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at
jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)
jenkins.util.io.CompositeIOException: Unable to remove directory
E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper\build-wrapper-win-x86
with directory contents:
[E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper\build-wrapper-win-x86\build-wrapper-win-x86-64.exe]
at
jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at

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

2020-11-12 Thread Geoffroy J
I would have a look here:
00:00:03.846  11:26:43.035 INFO: Indexing files...
00:00:03.846  11:26:43.035 INFO: Project configuration:
00:00:03.846  11:26:43.039 INFO: 0 files indexed

Seems it is not finding any file to analyse...


On Thu, 12 Nov 2020 at 11:47, Richard Bywater  wrote:

> I think you've been chasing the wrong issue. The lack of a project root
> configuration file is normal if everything is configured elsewhere. As far
> as I can tell you are having issues with no code coverage?
>
> >00:10:46.807  INFO: Sensor JaCoCo XML Report Importer [jacoco]
> >00:10:46.807  INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not
> defined. Using default locations:
> target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
> >00:10:46.807  INFO: No report imported, no coverage information will be
> imported by JaCoCo XML Report Importer
>
> This is probably what you should be looking at - ensuring that your build
> is output a jacocoTestRepo.xml into the right location. Note that older
> versions of Sonarqube used to use the Jacoco binary file but newer versions
> require you to have generated the XML output.
>
> Richard.
>
> On Thu, 12 Nov 2020 at 23:28, jesus fernandez <
> jesusfernandez0...@gmail.com> wrote:
>
>> This is the huge log I get with -X parameter:
>>
>>
>>
>> 00:00:00.913  Injecting SonarQube environment variables using the
>> configuration: SonarQube2
>> [Pipeline] {
>> [Pipeline] bat
>> 00:00:01.203
>> 00:00:01.203
>> C:\Users\anton\.jenkins\workspace\Boston>C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\sonar-scanner.bat
>> -X -Dsonar.projectKey=Test -Dsonar.projectName=Test -Dsonar.sources=.
>> -Dsonar.scm.disabled=true -Dsonar.language=c++ -Dsonar.sourceEncoding=UTF-8
>> 00:00:01.203  11:26:40.422 INFO: Scanner configuration file:
>> C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\..\conf\sonar-scanner.properties
>> 00:00:01.203  11:26:40.426 INFO: Project root configuration file: NONE
>> 00:00:01.203  11:26:40.438 INFO: SonarScanner 4.4.0.2170
>> 00:00:01.203  11:26:40.438 INFO: Java 1.8.0_261 Oracle Corporation
>> (64-bit)
>> 00:00:01.203  11:26:40.438 INFO: Windows 10 10.0 amd64
>> 00:00:01.467  11:26:40.533 DEBUG: keyStore is :
>> 00:00:01.467  11:26:40.533 DEBUG: keyStore type is : jks
>> 00:00:01.467  11:26:40.533 DEBUG: keyStore provider is :
>> 00:00:01.467  11:26:40.533 DEBUG: init keystore
>> 00:00:01.467  11:26:40.533 DEBUG: init keymanager of type SunX509
>> 00:00:02.044  11:26:41.044 DEBUG: Create:
>> C:\WINDOWS\system32\config\systemprofile\.sonar\cache
>> 00:00:02.044  11:26:41.045 INFO: User cache:
>> C:\WINDOWS\system32\config\systemprofile\.sonar\cache
>> 00:00:02.044  11:26:41.045 DEBUG: Create:
>> C:\WINDOWS\system32\config\systemprofile\.sonar\cache\_tmp
>> 00:00:02.044  11:26:41.047 DEBUG: Extract sonar-scanner-api-batch in
>> temp...
>> 00:00:02.044  11:26:41.051 DEBUG: Get bootstrap index...
>> 00:00:02.044  11:26:41.051 DEBUG: Download:
>> http://localhost:9000/batch/index
>> 00:00:02.044  11:26:41.083 DEBUG: Get bootstrap completed
>> 00:00:02.044  11:26:41.088 DEBUG: Create isolated classloader...
>> 00:00:02.044  11:26:41.094 DEBUG: Start temp cleaning...
>> 00:00:02.044  11:26:41.098 DEBUG: Temp cleaning done
>> 00:00:02.044  11:26:41.098 INFO: Scanner configuration file:
>> C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\..\conf\sonar-scanner.properties
>> 00:00:02.044  11:26:41.099 INFO: Project root configuration file: NONE
>> 00:00:02.044  11:26:41.099 DEBUG: Execution getVersion
>> 00:00:02.044  11:26:41.101 INFO: Analyzing on SonarQube server 8.5.1
>> 00:00:02.044  11:26:41.102 INFO: Default locale: "es_ES", source code
>> encoding: "UTF-8"
>> 00:00:02.044  11:26:41.102 DEBUG: Work directory:
>> C:\Users\anton\.jenkins\workspace\Boston\.scannerwork
>> 00:00:02.044  11:26:41.103 DEBUG: Execution execute
>> 00:00:02.309  11:26:41.416 WARN: SonarScanner will require Java 11 to run
>> starting in SonarQube 8.x
>> 00:00:02.309  11:26:41.417 DEBUG: Community 8.5.1.38104
>> 00:00:02.309  11:26:41.483 INFO: Load global settings
>> 00:00:02.309  11:26:41.507 DEBUG: GET 200
>> http://localhost:9000/api/settings/values.protobuf | time=22ms
>> 00:00:02.309  11:26:41.523 INFO: Load global settings (done) | time=40ms
>> 00:00:02.309  11:26:41.524 INFO: Server id: BF41A1F2-AXWnoupqHjnRwWgEnmvK
>> 00:00:02.309  11:26:41.526 INFO: User cache:
>> C:\WINDOWS\system32\config\systemprofile\.sonar\cache
>> 00:00:02.309  11:26:41.528 INFO: Load/download plugins
>> 00:00:02.309  11:26:41.529 INFO: Load plugins index
>> 00:00:02.309  11:26:41.535 DEBUG: GET 200
>> http://localhost:9000/api/plugins/installed | time=6ms
>> 00:00:02.309  11:26:41.555 INFO: Load plugins index (done) | time=26ms
>> 

How to conditionally execute a step based on changeset (multiple paths)?

2020-11-12 Thread Geoffroy J
Hello

our repository structure is as follow (simplified):
/app
|-- /linux
|-- /win
|-- /macos

i am trying to execute conditionally a build step based on changeset
content into both linux & macos folder, but it is not working properly:

when { changeset "*/linux/**,*/macos/**" }

Is it possible to define multiple paths in a changeset using above syntax?
Or do i need to use regex, something like when { changeset "
.*\/(linux|macos)\/.*", comparator: "REGEXP" }  ?

Thanks in advance
Regards

-- 
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/d/msgid/jenkinsci-users/CAG_uJ%2BD7iRNrvFA64Oqh41hWh6EGCu8jwVOT-4SXGBh8nb8_%2Bg%40mail.gmail.com.


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

2020-11-12 Thread Geoffroy J
Hello

i would recommend to remove extra-spaces for "-D" options, this is
incorrect syntax, and also enable debug mode (-X).

As you are providing information using the scanner option, maybe it is
normal to see "Project root configuration file: NONE " log. Maybe setting
sonar.projectBaseDir option could help...

Also, sonar-cxx plugin (if this is the one you are trying to use) is not
compatible with SonarQube 8.X:
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/SonarQube-compatibility-matrix

Regards

On Thu, 12 Nov 2020 at 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 fernandez <
> jesusfernandez0...@gmail.com> wrote:
>
>> and this is the log:
>> ```
>> *00:00:00.901* Injecting SonarQube environment variables using the
>> configuration: SonarQube2 [Pipeline] {
>>  [Pipeline] bat
>> 
>> *00:00:01.175* *00:00:01.175*
>> C:\Users\anton\.jenkins\workspace\Boston>C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\sonar-scanner.bat
>> -D sonar.projectKey=Test -D sonar.projectName=Test -D sonar.sources=. -D
>> sonar.scm.disabled=true -D sonar.language=c++ -D sonar.sourceEncoding=UTF-8
>>  *00:00:01.175* INFO: Scanner configuration file:
>> C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\..\conf\sonar-scanner.properties
>> *00:00:01.175* INFO: Project root configuration file: NONE
>> *00:00:01.175* INFO: SonarScanner 4.4.0.2170
>> *00:00:01.175* INFO: Java 1.8.0_261 Oracle Corporation (64-bit)
>> *00:00:01.175* INFO: Windows 10 10.0 amd64
>> *00:00:02.090* INFO: User cache:
>> C:\WINDOWS\system32\config\systemprofile\.sonar\cache
>> *00:00:02.090* INFO: Scanner configuration file:
>> C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\..\conf\sonar-scanner.properties
>> *00:00:02.090* INFO: Project root configuration file: NONE
>> *00:00:02.090* INFO: Analyzing on SonarQube server 8.5.1
>> *00:00:02.090* INFO: Default locale: "es_ES", source code encoding:
>> "UTF-8"
>> *00:00:02.343* WARN: SonarScanner will require Java 11 to run starting
>> in SonarQube 8.x *00:00:02.343* INFO: Load global settings
>> *00:00:02.343* INFO: Load global settings (done) | time=42ms
>> *00:00:02.343* INFO: Server id: BF41A1F2-AXWnoupqHjnRwWgEnmvK
>> *00:00:02.343* INFO: User cache:
>> C:\WINDOWS\system32\config\systemprofile\.sonar\cache
>> *00:00:02.343* INFO: Load/download plugins
>> *00:00:02.343* INFO: Load plugins index
>> *00:00:02.343* INFO: Load plugins index (done) | time=26ms
>> *00:00:02.594* INFO: Load/download plugins (done) | time=50ms
>> *00:00:02.846* INFO: Process project properties
>> *00:00:02.846* INFO: Process project properties (done) | time=7ms
>> *00:00:02.846* INFO: Execute project builders
>> *00:00:02.846* INFO: Execute project builders (done) | time=1ms
>> *00:00:02.846* INFO: Project key: Test
>> *00:00:02.846* INFO: Base dir: C:\Users\anton\.jenkins\workspace\Boston
>> *00:00:02.846* INFO: Working dir:
>> C:\Users\anton\.jenkins\workspace\Boston\.scannerwork
>> *00:00:03.097* INFO: Load project settings for component key: 'Test'
>> *00:00:03.097* INFO: Load project settings for component key: 'Test'
>> (done) | time=9ms
>> *00:00:03.097* INFO: Load quality profiles
>> *00:00:03.097* INFO: Load quality profiles (done) | time=38ms
>> *00:00:03.097* INFO: Auto-configuring with CI 'Jenkins'
>> *00:00:03.097* INFO: Load active rules
>> *00:00:04.011* INFO: Load active rules (done) | time=981ms
>> *00:00:04.263* INFO: Indexing files...
>> *00:00:04.263* INFO: Project configuration:
>> *00:00:04.263* INFO: 0 files indexed
>> *00:00:04.263* INFO: - Run sensors on module Test
>> *00:00:04.263* INFO: Load metrics repository
>> *00:00:04.263* INFO: Load metrics repository (done) | time=13ms
>> *00:00:05.178* INFO: Sensor CSS Rules [cssfamily]
>> *00:00:05.178* INFO: No CSS, PHP, HTML or VueJS files are found in the
>> project. CSS analysis is skipped. *00:00:05.178* INFO: Sensor CSS Rules
>> [cssfamily] (done) | time=1ms
>> *00:00:05.178* INFO: Sensor JaCoCo XML Report Importer [jacoco]
>> *00:00:05.178* INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not
>> defined. Using default locations:
>> target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
>> *00:00:05.178* INFO: No report imported, no coverage information will be
>> imported by JaCoCo XML Report Importer *00:00:05.178* INFO: Sensor
>> JaCoCo XML Report Importer [jacoco] (done) | time=3ms
>> *00:00:05.178* INFO: Sensor C# Properties [csharp]
>> *00:00:05.178* INFO: Sensor C# Properties [csharp] 

Re: View all credentials on an instance (global, folders, users, ...)

2020-09-16 Thread Geoffroy J
Thanks Ivan, this is a great start and it is properly listing folder-level
credentials.
I just need to make the output more user friendly, especially adding the
scope of the credential.

On Mon, 14 Sep 2020 at 18:08, Ivan Fernandez Calvo 
wrote:

> I think this groovy script is what you want
> https://github.com/cloudbees/jenkins-scripts/blob/master/list-credential.groovy
>
> El lunes, 14 de septiembre de 2020 a las 14:57:33 UTC+2,
> geoffroy...@gmail.com escribió:
>
>> Hello
>>
>> as a global instance admin, is there a way i can view (not decrypt) all
>> credentials stored in it?
>> */credentials* will only show global/system credentials.
>>
>> If a credential is created within a Folder, the only way to view it is to
>> go to url */job//credentials/store/folder/*
>>
>> This is quite difficult to track all those credentials provided Folders
>> are used quite extensively on our instance.
>> The same also apply to user credentials, although it is not on our
>> immediate concerns.
>>
>> Is there any option to activate on Jenkins to get such "recursive" view
>> on credentials, or shall we go for a script to execute? Any pointer?
>>
>> Regards
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/l-3IuWtaCOs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/31f5dd0f-1069-4cac-81bc-470788914400n%40googlegroups.com
> 
> .
>

-- 
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/d/msgid/jenkinsci-users/CAG_uJ%2BDquA_takO1wUrs-1phj1rNT_UaB-Fzu8NaWtsHCP5UBA%40mail.gmail.com.


Re: Help Jenkins with TestComplete

2020-06-14 Thread Geoffroy J
Hello
seems you are running under Windows.
Does Jenkins run as a service? Have you enable the option "Allow service to 
interact with desktop" on the service?
Regards

On Saturday, 13 June 2020 15:33:20 UTC+2, Sanjib Basak wrote:
>
> Do you have any resolution for this problem i am also facing same issue.
>
> On Friday, 9 September 2016 13:29:39 UTC+5:30, lan tranthai wrote:
>>
>> I  have problem while run Jenkins to call TestComplete .
>>
>> "
>>
>> Started by user TestAdmin 
>> Building in workspace C:\Users\latran\.jenkins\workspace\Test
>>
>> [TestComplete] The test execution started 
>> (TestWebApp/WebApp1/KeyWordTests|Test1).
>> [TestComplete] Found TestComplete/TestExecute installations:
>>  Type: TC, Version: 11.31.2420.7, Path: "C:\Program Files 
>> (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe"
>> [TestComplete] Selected TestComplete/TestExecute installation:
>>  Type: TC, Version: 11.31.2420.7, Path: "C:\Program Files 
>> (x86)\SmartBear\TestComplete 11\bin\TestComplete.exe"
>> [TestComplete] Launching the test runner.
>> $ '"C:\Program Files (x86)\SmartBear\TestComplete 
>> 11\bin\TestCompleteService11.exe"' //LogonAndExecute //lDomain: "" //lName: 
>> "TestAdmin" //lPassword:  //lTimeout: "-1" //lUseActiveSession: 
>> "true" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestComplete 
>> 11\bin\TestComplete.exe" "C:\Users\latran\Documents\TestComplete 11 
>> Projects\TestWebApp\TestWebApp.pjs" /run /SilentMode /ForceConversion /ns 
>> /exit /ExportLog:C:\Users\latran\.jenkins\workspace\Test\5067406.tclogx 
>> /ExportLog:C:\Users\latran\.jenkins\workspace\Test\5067406.htmlx 
>> /ErrorLog:C:\Users\latran\.jenkins\workspace\Test\5067406.txt 
>> /project:WebApp1 /test:KeyWordTests|Test1"'[TestComplete] Test runner exit 
>> code: -10 (Unable to create a user session).
>> [TestComplete] [WARNING] Unable to find the log file "5067406.tclogx".
>> [TestComplete] [WARNING] Unable to find the log file "5067406.htmlx".
>> [TestComplete] [WARNING] Errors occurred during the test execution.
>> [TestComplete] Marking the build as UNSTABLE.
>> [TestComplete] [WARNING] Unable to publish test results (xml data is empty).
>> [TestComplete] The test execution finished 
>> (TestWebApp/WebApp1/KeyWordTests|Test1).
>> Build step 'TestComplete Test' changed build result to UNSTABLE 
>>
>> Finished: UNSTABLE
>>
>> "
>>
>>
>>

-- 
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/d/msgid/jenkinsci-users/c33e1571-e5c5-442f-b756-3cbe31708d35o%40googlegroups.com.


Re: Jenkins Jira integration through Jira Trigger plugin

2020-05-02 Thread Geoffroy J
Hello
silly question (sorry), but is your Jenkins visible from Jira Cloud? ie. 
does it have a public url?

On Saturday, 2 May 2020 00:21:33 UTC+2, swathi mudumbai wrote:
>
> Hi 
>
> I am trying to integrate Jenkins with JIRA cloud through JIRA trigger 
> plugin,  in order to trigger the  build in Jenkins with the JIRA status 
> ticket change.
> I have Jenkins URL using https port 443.
>
> I followed the below steps:
>
> *On Jenkins side:*
> *Jenkins global configuration (One time)*
>
> This configuration is crucial, especially for *JQL filter* usage.
>
>1. Go to Jenkins global configuration (${Jenkins URL}/configure) 
>2. Configure *JIRA Trigger Configuration*
>
>
>
> *On JIRA side:*
> *Add new JIRA webhook (One time)*
>
>1. Go to JIRA > Cog > System > Advanced > WebHooks (Requires admin 
>permission) 
>2. Create a new Webhook 
>3. Set URL to: ${Jenkins URL}/jira-trigger-webhook-receiver/ e.g. 
>http://localhost:8080/jenkins/jira-trigger-webhook-receiver/ 
>4. Enable *issue updated* event 
>5. If you are on JIRA Cloud, enable *comment created* event 
>6. Do *not* check *Exclude body* as this plugin requires the JSON to 
>operate 
>7. Save! 
>
> With the above steps, I am not able to get the build triggered on Jenkins 
> (just to run shell cmd to echo "hello jira") with the status change of the 
> JIRA ticket. I am not seeing any error on Jenkins build though. When I 
> manually run the build on Jenkins it passes but not getting triggered by 
> JIRA.
> Can anyone help me with the issue. 
>
> Thanks
> Swathi
>

-- 
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/d/msgid/jenkinsci-users/6972f4e6-a07b-4d85-9054-86f84d1faa8b%40googlegroups.com.


Re: Jenkins printing every remote branch on all builds [JENKINS-22794]

2019-07-26 Thread Geoffroy J
Hi
have you set the option on both master and slaves?
BR

On Thursday, 25 July 2019 10:25:52 UTC+2, Jordan Sokolic wrote:
>
> We are experiencing an issue where Jenkins prints every remote branch in 
> our repository to the console in every build. Since we have several 
> thousand remote branches, this creates a lot of clutter in console logs.
>
> Example:
>
> 10:29:19   > git rev-parse HEAD^{commit} # timeout=10
> 10:29:20  Seen branch in repository origin/32_.
> 10:29:20  Seen branch in repository origin/337.
> 10:29:20  Seen branch in repository origin/359.
> 10:29:20  Seen branch in repository origin/4k_.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> 10:29:20  Seen branch in repository origin/API.
> (and so on)
> 10:29:20  Seen 4,483 remote branches
> 10:29:20   > git show-ref --tags -d # timeout=10
> 10:29:20  JENKINS-19022: warning: possible memory leak due to Git plugin 
> usage; see: 
> https://wiki.jenkins-ci.org/display/JENKINS/Remove+Git+Plugin+BuildsByBranch+BuildData
>
> Per JENKINS-22794 we have tried setting 
> -Dorg.jenkinsci.plugins.gitclient.GitClient.quietRemoteBranches=true 
> in /etc/default/jenkins and confirmed that it is in fact loaded in the 
> cmdline, but Jenkins insists on printing all remote branches.
>
> From the source 
> 
>  
> it's pretty clear that this should work, but it doesn't.
>
> Jenkins version: 2.176.1 
>
> OS: Debian 9
>
> Git client plugin version: 2.8.0
>
> Thank you for any help.
>
> Jordan
>

-- 
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/d/msgid/jenkinsci-users/0a9b48a3-2911-4454-ada8-69e4ae4fab77%40googlegroups.com.


Re: Problem when trying to connect to GitHub from a Windows slave

2019-05-27 Thread Geoffroy J
Hello

Have you tried cloning manually using the ssh key on windows?

Also, what username have you configured for your git credential on Jenkins?
I faced ssh issues on windows because of change in SSH/GIT and it was 
necessary to set credential username to 'git' instead of the real github 
username. See https://issues.jenkins-ci.org/browse/JENKINS-50573

BR

On Monday, 27 May 2019 16:50:59 UTC+2, Sébastien Hinderer wrote:
>
> Dear all, 
>
> Recently, I wanted my slaves to fetch our GitHub repository through 
> authenticated ssh coneections rather than through HTTPS unauthenticated 
> connections. 
>
> I created the appropriate Jenkins credential with ssh keys, replaced the 
> HTTPS URL of the repo by an ssh-based one and requested the use of the 
> newly created credential. 
>
> On our Unix machines everything works like a charm. 
>
> On our Windows machines, though, I get an "invalid format" message while 
> trying to read a .key file. 
>
> In case it's useful, our Windows hosts are running git 2.17.0 and 
> OpenSSH 7.8p1. 
>
> Many thanks in advance for any hint! 
>
> Sébastien. 
>

>

-- 
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/d/msgid/jenkinsci-users/ddb9de8e-9a6d-4c3a-892d-4a08c9501322%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.