Re: How I can change the default directory which Jenkins will use to load plugins?

2022-10-13 Thread Richard Bywater
Have you read the Preinstalling plugins section on the Docker image
documentation?
https://github.com/jenkinsci/docker/blob/master/README.md#preinstalling-plugins

Richard.

On Fri, 14 Oct 2022 at 08:17, Vladimir  wrote:

> I have a server which periodically I want to update. I've moved
> JENKINS_HOME directory to a separate disk volume. Configuration for server
> saved as yaml file CASC, jobs and history also stored inside the volume.
> And I run Jenkins server as a Docker container.
> I expected that if I will provide an updated docker image with the new
> Jenkins version and updated plugins it will just load jobs and
> configuration and will work. And it did work for some time.  But recently I
> stumbled on an error like this.
>
> - Update required: commons-lang3 v3.x Jenkins Api Plugin
> (commons-lang3-api 3.12.0.0) to be updated to 3.12.0-36.vd97de6465d5b_ or
> higher
> jenkins  | at
> hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:994)
> jenkins  | at hudson.PluginManager$2$1$1.run(PluginManager.java:542)
>
>
> The issue is that plugins are also stored in JENKINS_HOME directory and a
>  new Jenkins version in the docker image was not able to start with old
> plugins.
> I expected that I will be able to tell Jenkins where to look for plugins
> so only jobs, config, history and other configurations will be loaded from
> the attached volume but Jenkins itself will use updated plugins from the
> inside image.
> I've tried this property hudson.PluginManager.workDir
> https://www.jenkins.io/doc/book/managing/system-properties/#hudson-pluginmanager-workdir
> but it is not working
> Jenkins still trying to look inside JENKINS_HOME/plugins
>
>
> My question is it possible to point Jenkins to directly with plugins, so
> it will not pay attention to JENKINS_HOME/plugins ?
>
> --
> 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/6faef0f6-d9f8-47f5-a993-ca639a4ff6ban%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/CAAy0hwd8ETPG-Q1hfci%2BhEPeDt0OrZM0hSBqDzfGwhpE1%3De7PQ%40mail.gmail.com.


Re: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

2021-05-31 Thread Richard Bywater
Which version of Openshift are you using? AFAIK Openshift 4 doesn't support
use of the Docker socket anymore (or at least not by default)

Richard.

On Sat, 29 May 2021 at 05:36, anilkumar panditi 
wrote:

> Hi,
> sorry for asking repeated question,
> Earlier i had worked on a Jenkins instance which is a docker docker
> container which uses the docker inside container like below.
> -v /var/run/docker.sock:/var/run/docker.sock --privileged="true"
> --user="root"
>
> But , my Jenkins instance is running on Openshift as pod ,now and i wanted
> to reuse the same Jenkinsfile which has docker commands , and failing with
> *Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is
> the docker daemon running?*
>
> Please help.
>
> --
> 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/afc6f6ad-63f1-40a0-86d3-24486b0b321dn%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/CAAy0hwd_sdse7rjPJYhk0Gq7EajDCzGRu1JWk4%3DHocSLf%2BwpcA%40mail.gmail.com.


Re: Kubernetes plugin

2021-03-22 Thread Richard Bywater
Ah right gotcha. That makes me feel a little more at ease.

Thanks!
Richard

On Tue, 23 Mar 2021, 3:04 am Carlos Sanchez,  wrote:

> I think Guillermo confused the plugin referenced, as he was maintainer of
> the kubernetes-ci-plugin, which I guess is the one no longer maintained.
>
>
> On Mon, Mar 22, 2021 at 9:28 AM Richard Bywater 
> wrote:
>
>> Hi
>>
>> I was just looking at JENKINS-64778
>> <https://issues.jenkins.io/browse/JENKINS-64778> which regarded a
>> request in the Kubernetes plugin and noted one of the comments was "we are
>> no longer actively maintaining this plugin"
>>
>> Just wondering about whether this is because there is another plugin that
>> is now instead favoured to be used or was that just a comment about the one
>> particular maintainer but the plugin itself is still being maintained?
>>
>> We are just starting to implement a solution that will be using the
>> Kubernetes plugin so if it's going to break in the near future would be
>> good to know :)
>>
>> Thanks
>> Richard.
>>
>> --
>> 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/CAAy0hweadzZP-7_VQuhZteYz2pt6HOVhmEH0OMgGnTJdkoO%3Djg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hweadzZP-7_VQuhZteYz2pt6HOVhmEH0OMgGnTJdkoO%3Djg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CALHFn6O4wEUPKP16KOoNq3SSnga3Aa0mLVYGApTsf_Gap%2B69-A%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6O4wEUPKP16KOoNq3SSnga3Aa0mLVYGApTsf_Gap%2B69-A%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAAy0hwf3R3mZVqK9gESsoZ3ZOvjUqyaPWn2fYs62sWfbZkU2Wg%40mail.gmail.com.


Kubernetes plugin

2021-03-22 Thread Richard Bywater
Hi

I was just looking at JENKINS-64778
 which regarded a request
in the Kubernetes plugin and noted one of the comments was "we are no
longer actively maintaining this plugin"

Just wondering about whether this is because there is another plugin that
is now instead favoured to be used or was that just a comment about the one
particular maintainer but the plugin itself is still being maintained?

We are just starting to implement a solution that will be using the
Kubernetes plugin so if it's going to break in the near future would be
good to know :)

Thanks
Richard.

-- 
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/CAAy0hweadzZP-7_VQuhZteYz2pt6HOVhmEH0OMgGnTJdkoO%3Djg%40mail.gmail.com.


Re: JDK8 or JDK11 to be used for Jenkins ?

2020-12-11 Thread Richard Bywater
Personally if you are starting from a new Jenkins version then I'd go JDK11
unless you hit some strange edge-case issue where you might need to roll it
back to JDK8.

Although JDK8 isn't going anywhere in the short term its probably best to
keep with the newest LTS version of Java to not make the upgrade someone
else's problem down the line 

Richard.

On Fri, 11 Dec 2020, 11:00 PM mj1414...@gmail.com, 
wrote:

> Hello,
> I'm trying to decide, whether I should use JDK8 or JDK11 to run Jenkins.
> So far I have been using JDK8.
>
> If I look at the documentation, I find:
>
> "Installing Jenkins" https://www.jenkins.io/doc/book/installing/
> points to
> "Java Requirements"
> https://www.jenkins.io/doc/administration/requirements/java/
> which says
> -
>
> "Java 8 runtime environments, both 32-bit and 64-bit versions are
> supported"
> -
>
> "Since Jenkins 2.164 and 2.164.1 [1
> 
> ], Java 11 runtime environments are supported
>
>-
>
>Running Jenkins with Java 11 is documented here
>
>-
>
>There are some precautions to take when upgrading from Java 8 to Java
>11 in Jenkins, please follow these guidelines
>
> 
>."
>
> So this sounds like "both JDK8 and JDK11 are supported"
> But the "fine print" below JDK11 sounds different:
>
> https://www.jenkins.io/doc/administration/requirements/upgrade-java-guidelines/
>
> So what is the current recommendation:
> Use JDK8 ? JDK11 ?
> Give JDK11 a try and report issues ?
> Is an update planned to make JDK11 the preferred version ?
>
> Regards
>
> Martin
>
> --
> 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/8b37283f-47d9-495b-9086-2b8bd003876an%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/CAAy0hwc2d-FCOawn%3D1VGoWOa9mnUuyDczKPNj3tKRmyeTeLCJA%40mail.gmail.com.


Re: Login Problems with issues.jenkins-ci.org - who to contact?

2020-12-02 Thread Richard Bywater
I suspect that the Jira sign-up link should actually probably be disabled
as if I'm not mistaken accounts need to be created via the accounts or
beta.accounts URL.

Hopefully someone who knows more about the new Jira setup can confirm or
deny that :)

Richard.

On Thu, 3 Dec 2020 at 06:24, Inga Quatuor  wrote:

> I am having a similar problem. I signed up at https://issues.jenkins.io/
> and I received a mail titled "[JIRA] Account signup" but I cannot login.
> Neither at https://accounts.jenkins.io/ nor
> https://beta.accounts.jenkins.io/ nor https://issues.jenkins.io/ . The
> password reset is also not working - I am not receiving any mails that way.
> As far as I can see there is no verification action required. The signup
> mail only contains 2 links ( https://issues.jenkins.io
> 
> and a link to reset your password ) and my account info.
>
> I tried signing up with different email adresses (the first three kinda
> similar with name.surname at different domains, the last one randomly
> generated at tempmail.org), tried passwords with differing complexies and
> tried different browser to no avail. No account let's me login.
>
> Any ideas?
>
> On Friday, November 27, 2020 at 12:28:42 PM UTC+1 yannick...@gmail.com
> wrote:
>
>> I am able to log in to https://accounts.jenkins.io/  and to
>> https://beta.accounts.jenkins.io/ but not https://issues.jenkins.io/
>> My password is already in ASCII range and there is not captcha on
>> https://issues.jenkins.io/
>>
>> On Fri, Nov 27, 2020 at 5:07 AM Mark Waite  wrote:
>>
>>> I've had to refresh the captcha on occasion to show an updated captcha
>>> that I can then enter.  You might try that?
>>>
>>> You might also try with a long password that uses only characters in the
>>> ASCII range.  I'm not sure how locale processing is handled in the password
>>> validation process.
>>>
>>> On Thu, Nov 26, 2020 at 8:30 PM Yannick Lacaute 
>>> wrote:
>>>
 I have reset my password with https://beta.accounts.jenkins.io/
 I am able to connect on https://beta.accounts.jenkins.io/
  but I
 still cannot log in issues.jenkins-ci.org.

 any idea ?

 Le jeudi 26 novembre 2020 à 01:29:55 UTC+1, Mark Waite a écrit :

> Try resetting your password through https://beta.accounts.jenkins.io/
> and then attempt to login to https://issues.jenkins.io/
>
> If that does not work, reply to this email and we'll try more
> diagnostics.
>
>
> On Wed, Nov 25, 2020 at 1:15 PM Ross Bender 
> wrote:
>
>> I am having the same issue. I have an account and can log into
>> https://accounts.jenkins.io/, but when I try logging into
>> https://issues.jenkins.io/ I receive the error "Sorry, your username
>> and password are incorrect - please try again."
>>
>> My username is l3ender. Can someone advise or assist? Thanks!
>>
>> On Friday, June 29, 2018 at 3:43:45 AM UTC-5 mark.ot...@gmail.com
>> wrote:
>>
>>> I have a co-worker that's been unable to get his
>>> issues.jenkins-ci.org Jira account working correctly.  Tried
>>> multiple browsers and still have the same issue.  He's able to login to
>>> https://accounts.jenkins.io/ just fine, but the same account
>>> doesn't work on issues.jenkins-ci.org
>>>
>>> Is there anyone he can contact for assistance?  I was unable to find
>>> any contacts on the websites themselves.
>>>
>>> Thanks!
>>> Mark
>>>
>> --
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/38e55859-b849-415d-9120-f5c622d631b2n%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-use...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/b815ee90-74ea-4d6c-aad0-6959fc6b1789n%40googlegroups.com
 
 .

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups 

Re: Azure pull request plugin?

2020-11-19 Thread Richard Bywater
Azure DevOps is pretty new compared to the other options and so it's
probably a case of that it's not been well enough used for someone to
consider writing a plugin to support it. These plugins are generally
written for and by the community and so it requires someone to put up their
hand to write it. I'd say the fact it's a paid service also makes it harder
to support as there's now a cost factor to maintaining it.

As to your merge issue, I could be wrong but I think the plugins expect a
merged version of the code to be presented by the SCM provider. Does Azure
DevOps present a ref which contains a merged result?

Richard.


On Fri, 20 Nov 2020, 5:02 AM David Maul,  wrote:

> Azure DevOps hosts Git repos, so I consider them a SCM provider.
>
> I have pull requests emanating from Azure Repos, and arriving (via smee.io
> broker) at my local Jenkins infrastructure (not in cloud).  I am trying to
> us Multibranch pipeline job to build those PRs, but I cannot figure out how
> to get it to build the "merged" commit.  It currently only builds the
> source branch and the target branch, but not the "what if I merged the
> two", which is what a PR reviewer wants to see.  Any help or pointers you
> might have would be appreciated.
>
> On Thursday, November 19, 2020 at 10:54:59 AM UTC-5 slide wrote:
>
>> Hi David,
>>
>> Most of those are SCM providers. Azure in and of itself is not an SCM
>> provider. What type of functionality are you looking for?
>>
>> Regards,
>>
>> Alex
>>
>> On Thu, Nov 19, 2020, 08:36 David Maul  wrote:
>>
>>> Mailer left out my image.  Wondering what the approach is when the cloud
>>> repo is Azure.   From jenkins documentation:
>>>
>>> *Supporting Pull Requests*
>>>
>>> 
>>>
>>> Multibranch Pipelines can be used for validating pull/change requests
>>> with the appropriate plugin. This functionality is provided by the
>>> following plugins:
>>>
>>>-
>>>
>>>GitHub Branch Source
>>>
>>>-
>>>
>>>Bitbucket Branch Source
>>>
>>>-
>>>
>>>GitLab Branch Source
>>>
>>>-
>>>
>>>Gitea 
>>>-
>>>
>>>Tuleap Git Branch Source
>>>
>>>-
>>>
>>>AWS CodeCommit Jobs 
>>>
>>>
>>> On Thursday, November 19, 2020 at 10:33:14 AM UTC-5 David Maul wrote:
>>>
 Jenkins has a plugin for pull requests from most cloud services:   Why
 not Azure?



 --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/2228b699-7fc8-412e-9ce7-02f3ad85a9ffn%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/183f4ff7-5016-4c30-9337-fb6cf7398221n%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/CAAy0hwcY%2BVvATu%2BOWiHcTORGAfmDSC2mrAERXzOngLcWZpAiqg%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 Richard Bywater
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 
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
> 00:00:02.309  11:26:41.580 INFO: Load/download plugins (done) | time=52ms
> 00:00:02.575  11:26:41.622 DEBUG: Plugins:
> 00:00:02.575  11:26:41.622 DEBUG:   * C++ (Community) 1.3.2.1853 (cxx)
> 00:00:02.575  11:26:41.622 DEBUG:   * Python Code Quality and Security
> 3.1.0.7619 (python)
> 00:00:02.575  11:26:41.622 DEBUG:   * CSS Code Quality and Security
> 1.3.1.1642 (cssfamily)
> 00:00:02.575  11:26:41.622 DEBUG:   * JaCoCo 

Re: How to access jenkins using ip address remotely ?

2020-10-21 Thread Richard Bywater
As well as the above, if you are wanting to access Jenkins on your Mac
outside of the machine itself you'll also need to ensure the Mac Firewall
is open to allow port 8080 traffic.

Richard.

On Wed, 21 Oct 2020 at 08:37, Ivan Fernandez Calvo 
wrote:

> Do you use something like this to run Jenkins?
>
> java --jar jenkins.war -httpListenAddress=0.0.0.0 --httpPort=8080
>
> El martes, 20 de octubre de 2020 a las 19:35:17 UTC+2, nhoj.p...@gmail.com
> escribió:
>
>> From the command line do;
>> $ netstat -an | grep 8080
>>
>> That will show you what ip address as listening on the port 8080, e.g.
>> your jenkins instance. If it's only listening to local addresses then
>> it will never work remotely.
>>
>> Don't have access to a jenkins at the moment, but within Jenkins
>> configuration you should be able to select what addresses jenkins
>> should bind to and listen to. It might require a manual change in the
>> configuration then restart.
>>
>> John
>>
>>
>> On Tue, 20 Oct 2020 at 15:41, Danny Trunk  wrote:
>> >
>> > Hello Vaibhav,
>> >
>> > what does "remotely" mean? Inside your network or outside from the
>> internet?
>> > Inside of your network this should work out of the box.
>> > Outside from the internet you need to open port 8080 to access it.
>> > Please refer to the documentation of your router on how to open a port.
>> > Keep in mind this might be a security issue.
>> >
>> > And in addition: If you have 24h reconnect in order to get a new ip
>> address you can get and run a so called DynDNS address.
>> > There are several providers out there.
>> > Some (or most?) routers support configuring a DynDNS address as well -
>> so you don't have to run a service on your computer.
>> >
>> > Am Mo, 19. Okt, 2020 um 10:22 NACHMITTAGS schrieb Vaibhav Khachane <
>> vkha...@namutek.com>:
>> >
>> > Hello Team,
>> >
>> > I am trying to access jenkins using ip address but it is not working .
>> I am using macOS.
>> >
>> > Following jenkins url working fine
>> > http://localhost:8080/
>> > http://127.0.0.1:8080/
>> > http://0.0.0.0:8080/
>> >
>> > but while using ip adress of my machine it is not working
>> > http://(ip address of my. machine ):8080/
>> >
>> >
>> > --
>> > 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-use...@googlegroups.com.
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/0a2be992-d850-41d8-a0eb-6959888f0cb0n%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-use...@googlegroups.com.
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/JS8IIQ.Z02SEYIZGNFU2%40gmail.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/51f117b4-be03-4c8b-b469-d513b411316fn%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/CAAy0hwfR86-rRCa86M3o34%2B6UN38A2AK3rL16WGkD9SdEF4A6w%40mail.gmail.com.


Re: Unable to list Warnings Next Generation plugin

2020-09-19 Thread Richard Bywater
Have you checked the Installed plugins section to see if they are already
installed? If they are already installed (which they might be as a
dependency on another plugin you have previously installed) then they won't
show in Available plugins.

Richard.

On Sun, 20 Sep 2020 at 16:41, Praveen Kumar K S 
wrote:

> Hello,
>
> Today I have upgraded Jenkins to 2.249.1. After the upgrade, Jenkins
> suggested removing deprecated plugins. I visited the plugins home page and
> got to know that All functionality has been integrated into the Warnings
> Next Generation Plugin 
> and the Static Analysis Model and Parsers Library
> .
> So I have uninstalled those deprecated plugins, restarted Jenkins and
> tried to install Warnings Next Generation Plugin
>  and the Static Analysis
> Model and Parsers Library .
> But those are not getting listed under Available plugins. Please help.
>
> --
>
>
> *Regards,*
>
>
> *K S Praveen Kumar*
>
> --
> 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/CANSiNp5P2ax%2B_JfaFuxPuLFaKyagYesXQNVm%3DadLvsGsACmJdQ%40mail.gmail.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/CAAy0hwfhZePWnvh8GvtupiS%3D92LQuk%2BZ3_gNriGbDf0qLk%3Dh3g%40mail.gmail.com.


Re: Unable to Update Jenkins and Plugin

2020-09-01 Thread Richard Bywater
Are you running in a corporate environment that uses a proxy to talk to the
Internet? If so then you'll need to ensure that the certificate used by the
proxy (assuming it intercepts TLS traffic) is loaded in the "cacerts" file
for the given version of Java. Unfortunately I'm not sure where that
resides on a Windows instance.

Richard.

On Wed, 2 Sep 2020 at 16:44, cmc...@gmail.com  wrote:

> master is running current JRE 8
> java.version
> 1.8.0_261
>
> I was able to upgrade from jenkins-2.222.3 to jenkins-2.235.1 at 06/30/20.
> I am puzzled by this error.
>
> On Tuesday, September 1, 2020 at 6:54:23 PM UTC-7 Mark Waite wrote:
>
>> That may indicate that the Java installation used by your Jenkins on
>> WIndows does not recognize the SSL certificates that Let's Encrypt provides
>> for the Jenkins update center.
>>
>> Check the Java version from the "System Information" page in "Manage
>> Jenkins".  Java 8u262 is the most recent version of Java 8.  Java 11.0.8 is
>> the most recent version of Java 11.  If you're not running one of those
>> versions, download and install a version of AdoptOpenJDK for Windows and
>> modify the Jenkins configuration to use that new Java installation.
>>
>> On Tue, Sep 1, 2020 at 6:03 PM cmc...@gmail.com  wrote:
>>
>>> I am running Jenkins 2.235.1 on Windows.  I am not able to Update
>>> Jenkins and Plugin failed to update.  I have tried to installed self sign
>>> SSL Cert and does not solve the issue.  What is the cause and how to fix?
>>>
>>>
>>>
>>>  Failure -
>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to
>>> find valid certification path to requested target at
>>> sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source) at
>>> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown
>>> Source) at java.security.cert.CertPathBuilder.build(Unknown Source) Caused:
>>> sun.security.validator.ValidatorException: PKIX path building failed at
>>> sun.security.validator.PKIXValidator.doBuild(Unknown Source) at
>>> sun.security.validator.PKIXValidator.engineValidate(Unknown Source) at
>>> sun.security.validator.Validator.validate(Unknown Source) at
>>> sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) at
>>> sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) at
>>> sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
>>> Caused: javax.net.ssl.SSLHandshakeException: PKIX path building failed:
>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
>>> valid certification path to requested target at
>>> sun.security.ssl.Alert.createSSLException(Unknown Source) at
>>> sun.security.ssl.TransportContext.fatal(Unknown Source) at
>>> sun.security.ssl.TransportContext.fatal(Unknown Source) at
>>> sun.security.ssl.TransportContext.fatal(Unknown Source) at
>>> sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown
>>> Source) at
>>> sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(Unknown
>>> Source) at
>>> sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(Unknown
>>> Source) at sun.security.ssl.SSLHandshake.consume(Unknown Source) at
>>> sun.security.ssl.HandshakeContext.dispatch(Unknown Source) at
>>> sun.security.ssl.HandshakeContext.dispatch(Unknown Source) at
>>> sun.security.ssl.TransportContext.dispatch(Unknown Source) at
>>> sun.security.ssl.SSLTransport.decode(Unknown Source) at
>>> sun.security.ssl.SSLSocketImpl.decode(Unknown Source) at
>>> sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source) at
>>> sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) at
>>> sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) at
>>> sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/0d0c3c60-741e-4ef9-a362-3fed70c8bf7fn%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/01ce2a4c-d423-4a55-ac2a-e9e71445df25n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.

Re: K8s jenkins dynamic agent fails & shows - tcpSlaveAgentListener error

2020-08-29 Thread Richard Bywater
What is the K8s-Worker node that you are referring to? You didn't mention
that in the first email so I'm not sure where that fits in. Also which
entries did you actually put into the /etc/hosts file as you don't say what
it looked like before.

I'm fairly new to K8s myself but my main question would be whether or not
you have a service defined in the namespace fronting the Jenkins master
called 'jenkins-server'?

Richard.

On Fri, 28 Aug 2020 at 18:29, Mk  wrote:

> Further tried by adding below entries in */etc/hosts* file on both 
> *Jenkins/K8s
> Master* and* K8s-Worker* node system as well. But still result is same.
>
> # cat /etc/hosts
> 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
> ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
>
> 75.76.77.5  jenkins-server jenkins-server.company.domain.com
> 75.76.77.6  k8s-node-1 k8s-node-1.company.domain.com
>
>
> *Excuted below on K8s-Worker node.*
>
> #  curl -I http://jenkins-server/jenkins/tcpSlaveAgentListener/
> HTTP/1.1 200
> Server: nginx/1.14.1
> Date: Fri, 28 Aug 2020 06:13:34 GMT
> Content-Type: text/plain;charset=UTF-8
> Connection: keep-alive
> Cache-Control: private
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> X-Content-Type-Options: nosniff
> X-Hudson-JNLP-Port: 40021
> X-Jenkins-JNLP-Port: 40021
> X-Instance-Identity:
> MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnkgz8Av2x8R9R2KZDzWm1K11O01r7VDikW48rCNQlgw
> /pUeNSPJu9pv7kH884tOE65GkMepNdtJcOFQFtY1qZ0sr5y4GF5TOc7+U/
> TqfwULt60r7OQlKcrsQx/jJkF0xLjR+xaJ64WKnbsl0AiZhd8/
> ynk02UxFXKcgwkEP2PGpGyQ1ps5t/
> yj6ueFiPAHX2ssK8aI7ynVbf3YyVrtFOlqhnTy11mJFoLAZnpjYRCJsrX5z/
> xciVq5c2XmEikLzMpjFl0YBAsDo7JL4eBUwiBr64HPcSKrsBBB9oPE4oI6GkYUCAni8uOLfzoNr9B1eImaETYSdVPdSKW
> /ez/OeHjQIDAQAB
> X-Jenkins-Agent-Protocols: JNLP4-connect, Ping
> X-Remoting-Minimum-Version: 3.14
>
> # curl http://jenkins-server:40021/
> Jenkins-Agent-Protocols: JNLP4-connect, Ping
> Jenkins-Version: 2.235.3
> Jenkins-Session: 4455fd45
> Client: 75.76.77.6
> Server: 75.76.77.5
> Remoting-Minimum-Version: 3.14
>
>
>
>
> On Friday, August 28, 2020 at 10:16:45 AM UTC+5:30, Mk wrote:
>>
>> Dear Team,
>>
>> I have *Jenkins Master* &* K8s-Master* running on same server(*CentOS-8*),
>> Configured Jenkins *Kubernetes Plugin version - 1.26.4* But while
>> running pipeline job i always getting an error, Below is K8s cluster
>> jenkins agent pod log.
>>
>> [root@K8s-Master /]# kubectl logs -f pipeline-test-33-sj6tl-r0clh-g559d -c 
>> jnlp
>>
>> Aug 08, 2020 8:37:21 AM hudson.remoting.jnlp.Main createEngine
>> INFO: Setting up agent: pipeline-test-33-sj6tl-r0clh-g559d
>> Aug 08, 2020 8:37:21 AM hudson.remoting.jnlp.Main$CuiListener 
>> INFO: Jenkins agent is running in headless mode.
>> Aug 08, 2020 8:37:21 AM hudson.remoting.Engine startEngine
>> INFO: Using Remoting version: 4.3
>> Aug 08, 2020 8:37:21 AM org.jenkinsci.remoting.engine.WorkDirManager 
>> initializeWorkDir
>> INFO: Using /home/jenkins/agent/remoting as a remoting work directory
>> Aug 08, 2020 8:37:21 AM org.jenkinsci.remoting.engine.WorkDirManager 
>> setupLogging
>> INFO: Both error and output logs will be printed to 
>> /home/jenkins/agent/remoting
>> Aug 08, 2020 8:37:21 AM hudson.remoting.jnlp.Main$CuiListener status
>> INFO: Locating server among [http://jenkins-serverjenkins/]
>> Aug 08, 2020 8:37:41 AM hudson.remoting.jnlp.Main$CuiListener error
>>
>> SEVERE: Failed to connect to 
>> http://jenkins-server/jenkins/tcpSlaveAgentListener/: jenkins-server
>> java.io.IOException: Failed to connect to 
>> http://jenkins-serverjenkins/tcpSlaveAgentListener/: jenkins-server
>> at 
>> org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:217)
>> at hudson.remoting.Engine.innerRun(Engine.java:693)
>> at hudson.remoting.Engine.run(Engine.java:518)
>> Caused by: java.net.UnknownHostException: jenkins-server
>> at 
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:607)
>> at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
>> at sun.net.www.http.HttpClient.(HttpClient.java:242)
>> at sun.net.www.http.HttpClient.New(HttpClient.java:339)
>> at sun.net.www.http.HttpClient.New(HttpClient.java:357)
>> at 
>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226)
>> at 
>> sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
>> at 
>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
>> at 
>> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990)
>> at 
>> 

Re: HTML Publisher pipeline syntax

2020-08-24 Thread Richard Bywater
Looks like the issue is with your reportDir. In your case I think you'd
want this set to simply "coverage-results" assuming there is a index.html
in that directory. If the index.html only exists in the subdirectories of
coverage-results (which I think might be the case?) then reportFiles should
be something like "*/index.html" or "**/index.html" (exact syntax alludes
my brain right this second).

Note that if you are wanting to keep the reportFiles and reportTitles in
sync, you'll probably want to explicitly add each directory as a reportFile
(e.g.
"coverageDir1/index.html,coverageDir2/index.html,coverageDir3/index.html)

Hope that helps - I have only had a casual look in between my day job jobs
but hopefully it gets you in the right direction.

Richard.

On Tue, 25 Aug 2020 at 09:43, Steven Heuertz 
wrote:

> Hi,
>
> I'm working with a pipeline that builds a bunch of npm packages in a
> monorepo. Our commands are run on each package individually, so we have
> individual test/lint results in each package. I'm trying to pull all of the
> results into a single html report. To make this easier, I'm copying the
> reports into a central folder, and trying to build the report from there:
> pipelineContext.echo "Publishing jest results"
> pipelineContext.sh(script: 'mkdir coverage-results')
> List reportTitles = []
> changeSet.each {
> String coverageDir = it.packageJson.name.replace('/', '_')
> pipelineContext.sh(script: "mkdir -p coverage-results/${coverageDir}")
> pipelineContext.sh(script: "cp -R ${it.path}/coverage/lcov-report/*
> coverage-results/${coverageDir}")
> reportTitles << "'${it.packageJson.name }'"
> }
> pipelineContext.publishHTML(
> target: [allowMissing : false,
> alwaysLinkToLastBuild: true,
> keepAll : true,
> reportDir : 'coverage-results/**/*',
> reportFiles : 'index.html',
> includes : '**/*,**/**/*',
> reportName : 'Jest Coverage',
> reportTitles : reportTitles.join(',')]
> )
> The issue I'm having is that for some reason, it's not seeing the folder,
> I guess?
> ERROR: Specified HTML directory
> '/home/rh/workspace/ckages_task_test-jest-publishing/coverage-results/**/*'
> does not exist.
>
> I went into our build node and checked, and that directory does exist, so
> I'm unsure where my issue lies.
>
> Thanks,
> Steve
>
> --
> 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/53090af4-a733-448e-b9fc-d78a36436817n%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/CAAy0hwfEW9HQAfHuU0u%3D1XNrK1GLJnRUH2HRngsPqjMJGibEWA%40mail.gmail.com.


Re: Where is source for the "withSonarQubeEnv" and "waitForQualityGate" pipeline steps?

2020-08-12 Thread Richard Bywater
I'm not sure if
https://github.com/SonarSource/sonar-scanner-jenkins/pull/123 is
relevant or not (it talks about different URLs being used which is kind of
your issue but I couldn't really make sense of what it was actually solving
:D)

Richard.

On Thu, 13 Aug 2020 at 12:51, David Karr  wrote:

> Thanks. That's not giving me an obvious answer to my problem. I guess I'll
> have to post more details in a separate question.
>
> On Wednesday, August 12, 2020 at 5:13:50 PM UTC-7, Richard Bywater wrote:
>>
>>
>> https://github.com/jenkinsci/sonarqube-plugin/blob/master/src/main/java/org/sonarsource/scanner/jenkins/pipeline/WaitForQualityGateStep.java
>>  is
>> probably what you are looking for.
>>
>> Richard.
>>
>> On Thu, 13 Aug 2020 at 11:27, David Karr  wrote:
>>
>>> I'm trying to troubleshoot a problem with our integration between
>>> Jenkins and our enterprise SonarQube instance. I need to see the source
>>> code for the "waitForQualityGate()" pipeline step. Is that available
>>> somewhere?
>>>
>>> We're using a SonarQube server definition that uses "http:", but the
>>> "waitForQualityGate()" step appears to be querying tasks from sonarqube
>>> using the "https:" url.  I need to understand why it is doing that.
>>>
>>> --
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/8b6301de-7d0e-480a-ba35-c1b09f82e130o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/8b6301de-7d0e-480a-ba35-c1b09f82e130o%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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/5fa593d9-5a4c-4edb-85a8-081d6950f3efo%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/5fa593d9-5a4c-4edb-85a8-081d6950f3efo%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAAy0hwdw-s1Y_57eZr05AYgGyzCwVXHGf2w-Pnwk5bBnGFAAeA%40mail.gmail.com.


Re: Where is source for the "withSonarQubeEnv" and "waitForQualityGate" pipeline steps?

2020-08-12 Thread Richard Bywater
https://github.com/jenkinsci/sonarqube-plugin/blob/master/src/main/java/org/sonarsource/scanner/jenkins/pipeline/WaitForQualityGateStep.java
is
probably what you are looking for.

Richard.

On Thu, 13 Aug 2020 at 11:27, David Karr  wrote:

> I'm trying to troubleshoot a problem with our integration between Jenkins
> and our enterprise SonarQube instance. I need to see the source code for
> the "waitForQualityGate()" pipeline step. Is that available somewhere?
>
> We're using a SonarQube server definition that uses "http:", but the
> "waitForQualityGate()" step appears to be querying tasks from sonarqube
> using the "https:" url.  I need to understand why it is doing that.
>
> --
> 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/8b6301de-7d0e-480a-ba35-c1b09f82e130o%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/CAAy0hweeua7ufu3o81zVko_xTjpXq67soVADvm1%3DLkEd5n5f2A%40mail.gmail.com.


Re: Help needed with setting up credentials for Bitbucket-branch-source-plugin

2020-07-24 Thread Richard Bywater
For use with a multibranch type job you'll need username & password/token
credentials for a Bitbucket user which has read access to the repo (or
admin access if you want Jenkins to setup the hooks automatically).
For use with an organisation folder type job (with Bitbucket server at
least - haven't used Bitbucket cloud so can't fully comment) you'll want a
username & password/token credentials for a Bitbucket user which has read
access to a project (or admin access if you want Jenkins to setup the hooks
automatically).

If that's not working then you'll need to be a bit clearer about the error
that you are getting as it could be a number of things.

Richard.

On Fri, 24 Jul 2020 at 04:56, Ashish Sharma  wrote:

> Dear community,
>
> I need help in understanding how setting up credentials work for this
> plugin.
>
> Does this require system admin level username / password or any user
> credentials (who has read access on repo) can be provided.
>
> Also any limitations on what kind of directory that user is coming from?
> We are using delegated ldap for microsoft active directory in bitbucket.
>
> I tried to setup using a general user credentials but its not able to
> fetch repositories with project name, it keeps showing error message. Does
> this have to be the project admin user credentials?
>
> Thanks,
> Ashish
>
> --
> 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/1fe9539e-3ee3-4e49-86d0-dfda77f3fca2o%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/CAAy0hwc84N4YeCKiTO39zPDNRCdCXRpfqrjbiQxeWYPdkkCtYg%40mail.gmail.com.


Re: how to login to jenkins with third party sso from python scripts

2020-06-23 Thread Richard Bywater
https://www.jenkins.io/doc/book/system-administration/authenticating-scripted-clients/
will
hopefully get you started.

Richard.

On Wed, 24 Jun 2020 at 16:53, Lokeshwaran  wrote:

> Where do we get this API token from
>
> On Wednesday, June 17, 2015 at 12:50:28 PM UTC+5:30, Sushant Gupta wrote:
>>
>> Hi All,
>>
>> I don't know if anyone tried to login to sso enabled jenkins server from
>> python api.
>>
>> I need to automate jenkins, It is very easy to login to jenkins from
>> python with its local-user/password. But our jenkins server is configured
>> with assembla sso and I am not able to login through jenkins.jenkins python
>> module. Can any oen suggest how to login to jenkins server with third party
>> sso configuration.
>> python api docs:
>> https://python-jenkins.readthedocs.org/en/latest/api.html
>>
>> I am open to use any other module.
>>
>> import jenkins
>> j = jenkins.Jenkins('http://your_url_here', 'username', 'password')
>> j.get_jobs()
>>
>>
>> Regards,
>> Sushant
>>
> --
> 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/2e41317c-832c-460b-9bbd-4220dc850b60o%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/CAAy0hwe%3DjSh%2BZD_86NE7dgOWqTvdDD8GVm%3DqAv_wpwondLwkpQ%40mail.gmail.com.


Re: Artifactory Plugin creates invalid packages?

2020-04-22 Thread Richard Bywater
Please don't double post questions. If/when someone can help you then they
will.

Note that I believe the Artifactory plugin is developed by JFrog themselves
and so you may be able to get support from them directly unless you are
using the OSS version of Artifactory.

Richard.

On Wed, 22 Apr 2020 at 22:35, flx Anfaenger  wrote:

> I'm using Artifactory Plugin to create and upload conan
>  packages to our Artifactory Server.
>
> Creating the conan package works fine, I can inspect the packages with the
> conan-client locally in the Jenkins workspace.
>
> But after uploading the package with the plugin's conanClient, I can no
> longer see or retrieve the package from the artifactor server, a 'conan
> search -r myremote pkgName' gives no candidates,
> a 'conan search -r myremote' gives an Error reporting something like
>
> > too many @
>
> What I found out till now:
> The Artifactory Plugin gathers a lot of build information from the Jenkis
> environment (BUILD_NUMBER, GIT_COMMIT,...) and attaches this information by
> writing a File "artifact.properties" and uploads this extra information to
> the server.
> It seams that this extra information breaks our Artifactory server. This
> is new to me as the old server worked fine, but after upgrading to 7.x, all
> my uploads are broken.
> So this maybe is an Artifactor server issue, and a little bit OT here, but
>
> But does anybody know if and who I can set up Artifactory Plugin to NOT
> gather the extra information?
>
> Any help or hint is highly appreciated.
>
> --
> 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/CABjz5Rq9MAFy6tExpfgwAiKZ8vpMihLPHLvDnHNPbg1x3Sj1Sg%40mail.gmail.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/CAAy0hwe51CvjxXmHDArCgctQ%3Dxj_D3%3Dkm75zeNZwGmg%3DHkLWcw%40mail.gmail.com.


Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Richard Bywater
Yes there is - use "includes" parameter which is an Ant compatible pattern
that specifies what files in the report directory to archive. It defaults
to archiving all files in the given report directory.

Richard.


On Thu, 2 Apr 2020 at 08:41, Filip Kosik  wrote:

> Thanks Gianluca for your explanation.
> This is exactly my problem. So, there is no way *how I can publish only
> specific files without archiving all files in directory*?
>
> The reason for the build number in my filenames is generating all HTML
> files to the shared directory (it is not inside build directory). It's not
> index (it was only example) and it's used for another purpose. So, if there
> is no way how publish and archive only specific files, I would make a fork
> of the plugin and change it by myself.
>
> Thank you for help.
> Filip
>
>
> On Wednesday, April 1, 2020 at 1:27:40 PM UTC-6, Gianluca wrote:
>
>> Hi,
>> I think you misunderstood the meaning of
>> reportDir: "/${reportDir}",
>>
>> The publishHTML publishes the directory ... not the file. The reportFiles
>> is the "index" that is loaded as beginning but it's the reportDir with
>> whole is content that is published by the plugin.
>>
>> So, you can't have a reportDir that's shared across builds or everything
>> will be published for all builds getting duplicates.
>>
>> I'm not sure why do you need the build number in the index file, Jenkins
>> publishHTML plugin already put the generated files into separated builds
>> directory as you already found out by looking at the reportDirs.
>>
>> So, I would suggest to rethink your strategy of building reports and
>> avoid file names with build number into it.
>>
>> Cheers,
>> Gianluca.
>>
>>
>> On Wednesday, 1 April 2020 20:20:56 UTC+1, Filip Kosik wrote:
>>>
>>> Hi Gianluca,
>>>
>>> thank you for your answer. Here is an example of my problem:
>>>
>>> When I run pipeline code:
>>> def fileName = "index_${reportBuildNo}.html";
>>> … // HTML is generated here
>>> publishHTML (target: [
>>>   allowMissing: false,
>>>   alwaysLinkToLastBuild: false,
>>>   keepAll: true,
>>>   reportDir: "/${reportDir}",
>>>   reportFiles: fileName,
>>>   reportName: "Results"
>>> ])
>>> my build directories after 3 builds contains the following:
>>> build/1/htmlreports
>>>  - index_1.html
>>> build/2/htmlreports
>>>  - index_1.html
>>>  - index_2.html
>>> build/3/htmlreports
>>>  - index_1.html
>>>  - index_2.html
>>>  - index_3.html
>>>
>>> Maybe the problem is in my generic report filenames (including build
>>> number).
>>> My old and new HTML files are generated into one directory for all
>>> builds. When HTML files are generated I pass only filenames of the current
>>> build to htmlPublisher.
>>>
>>>
>>>
>>> On Wednesday, April 1, 2020 at 12:46:35 PM UTC-6, Gianluca wrote:

 Hi, I have this in my pipeline

 publishHTML target: [
 allowMissing: true,
 alwaysLinkToLastBuild: false,
 keepAll: true,
 reportDir: 'out/python3-cov',
 reportFiles: '*/index.html',
 reportName: 'Python 3 Coverage'
 ]



 And I don't have old reports in builds. Each build has it own report
 built.

 So, or I don't understand what you are asking for, or you misunderstood
 the behaviour?

 Can you details more what you mean with duplications?


 On Wednesday, 1 April 2020 18:32:12 UTC+1, Filip Kosik wrote:
>
> Hi,
>
> I am trying to *publish HTML reports for each build*. I tried plugin 
> HtmlPublisher
> (1.22)  but when it
> publishes my reports on their build page (using keepAll=true), it
> creates copies of reports from all previous builds in each build 
> directory.
> So, each Jenkins build includes many copies of old reports and they are
> bigger and bigger. If I publish my reports on the project page (using
> keepAll=false), old reports are preserved in their project directory
> (in my file system) but only the last report is accessible from Jenkins. 
> Is
> there any way how to have reports *on their build pages without
> creation of their duplicates*? Maybe, there is some parameter that
> I'm still missing.
>
>
> My pipeline includes the following HtmlPublisher use:
>
>
> publishHTML (target: [
>   allowMissing: false,
>   alwaysLinkToLastBuild: false,
>   keepAll: true,
>   reportDir: "./htmlReports",
>   reportFiles: reportFileNames, //generic variable
>   reportName: "Results"
> ])
>
>
> 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, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> 

Re: Security concern for Gitlab webhook token to Jenkins

2020-03-19 Thread Richard Bywater
I haven't tried it so I don't know if it works, but have you tried passing
the Authorization header in the request rather than setting username &
password as part of the URL? e.g. `Authorization:Basic
username:apiToken`  where
the whole `username:apiToken` is base-64 encoded

Richard.

On Thu, 19 Mar 2020 at 14:05, Jheison Rodriguez 
wrote:

> currently I'm using a webhooks token for trigger Jobs from GitLab to
> Jenkins, I have a global user so a token set up for all project something
> like this: https://USERID:APITOKEN@JENKINS_URL/project/YOUR_JOB
> 
>
> Additionally, when I create a new version of the Jenkins master the token
> is updated and I need to update in each GitLab project.
>
> I'd like to know if someone has experienced this and had managed this kind
> of set up in another way? Also to avoid expose the token in the webhooks'
> URL (security concern) or update it (even with scripts) for each GitLab
> project.
>
> --
> 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/7d84e91d-3682-4a56-b366-7b92dbbac51e%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/CAAy0hwf5A2xgwxsJzPteKQ78aYG1KSCy1jLOzcWCGsoJ14DX6w%40mail.gmail.com.


Re: Shell script not working as expected in jenkins

2020-02-11 Thread Richard Bywater
Without seeing some kinds of logs to understand what the script is doing
and what output is wrong then there could be many things wrong.

One thing to note is that MacOS Terminal is not Linux - there are a number
of tools that are different as MacOS is BSD based. "sed" is one of those
and so the behaviour and options of sed differs greatly between the sed
that comes with MacOS and GNU sed which runs on most Linux servers.

As you say you are using ECS to run this, have you tried running on the
process a local docker container with the right Linux variant to see if it
works?

Richard.

On Wed, 12 Feb 2020 at 13:39, Sai Pavwan  wrote:

> Hi Mark Waite,
>   Thanks for your response on that.
>Firstly, I have take into consideration all of the things that you
> stated except the environment. My local Macos Terminal which is linux, but
> i am running my script in on Ubuntu which makes a little sense for a moment
> but in that case the build should fail and in the logs i am seeing only one
> ticket number extracted every time.
>  And i am using commands like:
>   sed, regular expresions, echo, sort, uniq, for loop and curl too.
>And also running through Cron Job is also a good idea but i have to
> include this script only in the job which deploys our code to STG Env. Cron
> Job is what we can schedule to run this at that particular time. But here
> the requirement is different, script should execute along with the code
> deploy job.
>   Is there any other alternative that i can proceed by excluding these
> consequences .
> - Pavwan.
>
> On Tuesday, February 11, 2020 at 4:20:09 PM UTC-8, Mark Waite wrote:
>>
>> It is quite common that a script which works on a developer desktop does
>> not work in another environment like Jenkins.
>>
>> Common reasons include:
>>
>>- Scripts assuming they are running with a controlling terminal
>>- Scripts assuming the existence of specific ssh private keys
>>- Scripts assuming the existence of specific environment variables
>>- Scripts assuming a specific user account name
>>- Scripts assuming specific versions of tools are available
>>- Scripts assuming specific execution environment (Windows, Linux,
>>FreeBSD, macOS, etc.)
>>
>> One way to diagnose those types of dependencies is to create a new
>> account on your development computer and run the script from that new
>> account.  Another technique is to create a new account on a Jenkins agent
>> computer and run the script from there.  Another technique is to run the
>> script from a cron or batch job as yourself.
>>
>> Mark Waite
>>
>> On Tue, Feb 11, 2020 at 5:06 PM Sai Pavwan  wrote:
>>
>>> Hi ,
>>>   I am on my jenkins which is hosted on ECS cluster. I have created
>>> a jenkins job and planned to run that job for every release. So coming to
>>> the point this script will transition jira tickets, will change the jira
>>> tickets status. The process of picking jira tickets will be filtered by
>>> commit messages between git branches. I am using a command git log
>>> origin/master..${BRANCH} --oneline --no-merges this will give you all the
>>> commit messages which will include Jira Ticket numbers. From that messages
>>> I am using sed command and regular expressions concepts to take out the
>>> ticket number like X1-(0-9). This extracted number will be passed to a Jira
>>> Query to transition ticket automatically.
>>>  So the thing is I developed this script in local system which
>>> works fine and it transitioning all the tickets like around 200 tickets for
>>> every release, so when i add this script to Jenkins job in Build -->
>>> Execute Shell its not working as expected. There is not fail in job but the
>>> response was absolutely wrong , if we have a 100 tickets in branch every
>>> time its getting only one ticket number out from the Repo's. Just because
>>> its working in my local and its working in Jenkins just want to make sure
>>> whether this problem is with the Jenkins or i am missing anything. Can you
>>> guys please help me out on this. Thanks in advance.
>>> - Pavwan.
>>>
>>> --
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/1be64daa-3235-4c49-9d05-501e8e31ddda%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
> 

Re: (Trivial) Startup Message Awkwardness

2019-12-31 Thread Richard Bywater
>From my native (New Zealand) English speaking perspective the way its
worded currently seems to sound right and the alternate (gets) version
seems not quite right - the wonders of English :)

Personally, using
https://conjugator.reverso.net/conjugation-english-verb-get.html and
https://www.englishgrammar.org/simple-present-present-continuous-tense-differences/
as
a reference, I think that "is getting" is probably the more correct term
for its current use.

Having said that though, I'm not overly fussed with which is being used :)

Richard.

On Wed, 1 Jan 2020 at 11:32, Jamie Jackson  wrote:

> Warning: Opinions Follow! :)
>
> I wouldn't bring this up if the message were anywhere else but I find
> myself staring at the Jenkins startup screen more than I would like. It is
> also probably the first thing any new Jenkins user sees.
>
> Currently, the message <#m_-7620564545364750833_L54]> reads:
>
> Please wait while Jenkins is getting ready to work
>
> It's hard to explain why, but from my perspective as a native (American)
> English speaker, that strikes me as incorrect at worst, or slightly awkward
> at best. The word, "while," makes the present-continuous form, "is
> getting," seem strange.
>
> This works better (present-simple form):
>
> Please wait while Jenkins gets ready to work
>
> The following may be even better (albeit only slightly) than the above,
> since it's less redundant. (Note: I care less about this change.)
>
> Please wait while Jenkins gets ready
>
> I'm interested to know what others think.
>
> Thanks,
> Jamie
>
>
> --
> 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/CA%2BonWPcX5JkD%2BOoJHTaeko81Ode0uL5oN_EGhphxCODi_SoMTg%40mail.gmail.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/CAAy0hwcBN5F6dHfS8ZR7WXjTYBrxcPv03ZzUFsUa3VoexLGiHw%40mail.gmail.com.


Re: Publish over SSH plugin not transferring any files

2019-12-24 Thread Richard Bywater
Looks to me like the Ansible playbook is running on the remote server but
there's nothing actually copying the files to the remote server so the
playbook doesn't have anything to copy.

However I've only have taken a quick peek so apologies if I've misread the
situation.

Richard.

On Wed, 25 Dec 2019, 4:14 AM Prabhu Varadhachari, <
prabhu.rudhvin2...@gmail.com> wrote:

>
> Hello ,
>>
>>
> I want transfer the file from Jenkins work space to remote server. Job is
> done but files are not transferred. Can you please help me to fix this
> issue.
>
> SNAPSHOT/server-1.0-SNAPSHOT.jar
> [JENKINS] Archiving /var/lib/jenkins/workspace/Devops-project-2/pom.xml to 
> com.example.maven-project/maven-project/1.0-SNAPSHOT/maven-project-1.0-SNAPSHOT.pom
> channel stopped
> SSH: Connecting from host [192.168.56.150]
> SSH: Connecting with configuration [ansible-server] ...
>
> SSH: Disconnecting configuration [ansible-server] ...
> SSH: Transferred 0 file(s)
> SSH: Connecting from host [192.168.56.150]
> SSH: Connecting with configuration [ansible-server] ...
> SSH: EXEC: STDOUT/STDERR from command [ansible-playbook 
> /opt/playbooks/copywarfile.yml] ...
>
> PLAY [all] 
> *
>
> TASK [Gathering Facts] 
> *
>
> ok: [192.168.56.160]
>
> TASK [copy jar/war onto tomcat servers] 
> 
>
> ok: [192.168.56.160]
>
> PLAY RECAP 
> *
> 192.168.56.160 : ok=2changed=0unreachable=0failed=0   
>  skipped=0rescued=0ignored=0
>
> SSH: EXEC: completed after 8,881 ms
> SSH: Disconnecting configuration [ansible-server] ...
> SSH: Transferred 0 file(s)
> Finished: SUCCESS
>
>
> Thanks
>
> Prabhu V
>
> --
> 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/17d9e826-dee5-4bd5-959f-ce7eef81dfd1%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/CAAy0hwe3A5eoY0CXhddr_7%2Bp1A0werQ0XW%2BC%3D1iLfLowhVo8xA%40mail.gmail.com.


Re: bitbucket-branch-source-plugin disable trigger once at day

2019-10-04 Thread Richard Bywater
Does unticking the option not work? If it doesn't then I'd consider raising
an issue against the plugin to track as that doesn't sound right.

Richard.

On Sat, 5 Oct 2019, 3:25 AM Andrey Kislyak,  wrote:

> Hi All
>
> I have installed and configured bitbucket-branch-source-plugin v.2.4.0 on
> jenkins 2.176.2
> On repository level exist option "Scan Multibranch Pipeline Triggers" once
> a day.
> How i can disable this trigger, plugin only view this config and does give
> change.
>
> --
> 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/6ca8764d-79a5-43bb-843d-9f7b5bf13388%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/CAAy0hwdVy9CeKiCL-9_PpjGpnL_5LP8UfTqrr5oNmQ-nVfCGhQ%40mail.gmail.com.


Re: Gradle Tool Failed Download

2019-08-07 Thread Richard Bywater
Personally with Gradle I've always found it easier to use Gradle Wrapper
instead of full installs.

Don't know if that's an option for you or not.

Richard.

On Thu, 8 Aug 2019, 7:38 AM Sverre Moe,  wrote:

> Got it working using the "Run Shell Command". Though I find it very
> cumbersome.
>
> wget --quiet https://
> nexus.company.no:8443/repository/gradle-distributions/gradle-5.5.1-bin.zip
> unzip -qq gradle-5.5.1-bin.zip
> mv gradle-5.5.1/* .
> rmdir gradle-5.5.1
> rm gradle-5.5.1-bin.zip
>
>
> onsdag 7. august 2019 21.10.59 UTC+2 skrev Sverre Moe følgende:
>>
>> Perhaps I could use instead the Installers "Run Shell Command", or "Run
>> Batch Command".
>> Then unpack it myself, ensuring it gets unpacked within the tool name
>> directory.
>> Would I need both in order for it to work on Linux and Windows?
>>
>> onsdag 7. august 2019 21.04.09 UTC+2 skrev Sverre Moe følgende:
>>>
>>> I thought of the same.
>>> I downloaded the Gradle distribution zip file. Placed it in our Nexus
>>> Repository Manager, in a raw repository.
>>>
>>> Used the Installer "Extract *.zip/*.tar.gz". Did not go so well
>>> Tool: gradle-5.5
>>> File: gradle-5.5.1-bin.zip
>>>
>>> Get extracted in
>>> hudson.plugins.gradle.GradleInstallation/gradle-5.5/gradle-5.5.1
>>>
>>> My pipeline script suspects to find the gradle executable under
>>> ${gradleTool}/bin/gradle.
>>>
>>> The GradleInstaller unpacks it under the tool name.
>>>
>>> onsdag 7. august 2019 20.51.09 UTC+2 skrev Mark Waite følgende:

 Maybe this is the time to reconfigure the tool installer to download
 from a locally cached copy of the tool instead of pulling it from the
 internet?

 I've had good results with that technique by placing zip files of the
 tool installers inside my network and then configuring the tool installer
 to use the copy from my network instead of the copy from the internet.

 On Wed, Aug 7, 2019 at 11:56 AM Sverre Moe  wrote:

> I have no modifed cacerts.
>
> Using wget also fails on the agent, until I set a proxy.
> The Jenkins server does have proxy configured, but not the agents.
> When I add HTTP Proxy in Jenkins under the Update Center I get a
> totally different stacktrace when it tries to retrieve the gradle tool.
>
> Unpacking https://services.gradle.org/distributions/gradle-5.5.1-bin.zip 
> to 
> /home/build/jenkins-test/tools/hudson.plugins.gradle.GradleInstallation/gradle-5.5
>  on master-sles12.3-x86_64_2
>
> ERROR: Failed to download 
> https://services.gradle.org/distributions/gradle-5.5.1-bin.zip from 
> agent; will retry from master
> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
> find valid certification path to requested target
>   at 
> sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
>   at 
> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
>   at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
>   at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
> Caused: sun.security.validator.ValidatorException: PKIX path building 
> failed
>   at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
>   at 
> sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
>   at sun.security.validator.Validator.validate(Validator.java:262)
>   at 
> sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:330)
>   at 
> sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:237)
>   at 
> sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:132)
>   at 
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621)
> Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
> master-sles12.3-x86_64_2
>   at 
> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
>   at 
> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
>   at hudson.remoting.Channel.call(Channel.java:957)
>   at hudson.FilePath.act(FilePath.java:1070)
>   at hudson.FilePath.act(FilePath.java:1059)
>   at hudson.FilePath.installIfNecessaryFrom(FilePath.java:913)
>   at hudson.FilePath.installIfNecessaryFrom(FilePath.java:846)
>   at 
> hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:77)
>   at 
> hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:69)
>   at 
> hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
>   at 
> hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
>   at 
> 

Re: no files matching the pattern C:\MyApp\bin\project.dll ERROR: no files matching the pattern C:\MyApp\bin\project.dll

2019-06-11 Thread Richard Bywater
Pure guess without looking at the plugin code or ever having used the
plugin but I'm guessing Test Files need to be specified as a relative path
within the workspace rather than an arbitrary file somewhere else on the
disk.

Richard.

On Tue, 11 Jun 2019 at 05:13, Nef Rey  wrote:

> I'm using a Windows10 installation of Jenkins 2.164.3. The configuration
> for VSTest.Console plugin is like below Test Files =
> C:\MyApp\bin\project.dll Test Name = /Tests:Test1 However I get the error:
> no files matching the pattern C:\MyApp\bin\project.dll. Have tried
> different things to no avail. I know I can use a windows batch command to
> run the test cases with the same path and switch described above, but I
> would like to use this plugging as it seems more elegant to use. IS there a
> fix for this???
>
> --
> 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/16a70671-c27d-433c-9268-67cd848c7eee%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwesANNKUAfZbSEmCr0ujkfsJW3oe4k1fD__Hz2w6sGr3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins user cpu is high and will jenkins create .firefoxcatche directory

2019-06-03 Thread Richard Bywater
In fact
https://msandbu.org/real-life-detection-of-a-virtual-machine-in-azure-with-security-center/
sounds
very similar to your issue.

On Mon, 3 Jun 2019 at 22:13, Richard Bywater  wrote:

> A quick Google search of the directory name ".firefoxcatche" appears to
> point at possible crypto-mining malware which would go along with the high
> CPU usage I'm guessing. I'd get your machine checked.
>
> Richard.
>
> On Tue, 21 May 2019 at 18:12, Turaco mobile  wrote:
>
>> Hi, Jenkins is running in CentOS 7 and the user is jenkins. Most of the
>> time cpu usage is high above 70% even nobody building the jobs.
>> Top command shows:
>> Jenkins user and command column shows 'cron' or 'tsm'.
>> 12310 jenkins   20   0 3488136   9936   1088 S  61.1  0.3  20:07.09 tsm
>> 16196 build 20   0 3491620  10212   1188 S  50.0  0.3   6:21.44 tsm
>>
>> Will jenkins default create hidden file .firefoxcatche directory?
>> [root@do-svn-Jenkins cron]# cat jenkins
>> 0 0 */3 * * /var/lib/jenkins/.firefoxcatche/a/upd>/dev/null 2>&1
>> @reboot /var/lib/jenkins/.firefoxcatche/a/upd>/dev/null 2>&1
>> 5 8 * * 0 /var/lib/jenkins/.firefoxcatche/b/sync>/dev/null 2>&1
>> @reboot /var/lib/jenkins/.firefoxcatche/b/sync>/dev/null 2>&1
>> #5 1 * * * /tmp/.X13-unix/.rsync/c/aptitude>/dev/null 2>&1
>>
>> Pls let know how to resolve this issue. Even if i delete this file, it's
>> automatically created.
>>
>> --
>> 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/CAC3KZS_eYPztwQafYQDLMKbQWZSkx0yDNAnZVBg2E6nuwAUqfw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAC3KZS_eYPztwQafYQDLMKbQWZSkx0yDNAnZVBg2E6nuwAUqfw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/CAAy0hwcr%2Bc1t59A1quW4o5d7YYrrZnsUst1LWh6JxXX9xxpc0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins user cpu is high and will jenkins create .firefoxcatche directory

2019-06-03 Thread Richard Bywater
A quick Google search of the directory name ".firefoxcatche" appears to
point at possible crypto-mining malware which would go along with the high
CPU usage I'm guessing. I'd get your machine checked.

Richard.

On Tue, 21 May 2019 at 18:12, Turaco mobile  wrote:

> Hi, Jenkins is running in CentOS 7 and the user is jenkins. Most of the
> time cpu usage is high above 70% even nobody building the jobs.
> Top command shows:
> Jenkins user and command column shows 'cron' or 'tsm'.
> 12310 jenkins   20   0 3488136   9936   1088 S  61.1  0.3  20:07.09 tsm
> 16196 build 20   0 3491620  10212   1188 S  50.0  0.3   6:21.44 tsm
>
> Will jenkins default create hidden file .firefoxcatche directory?
> [root@do-svn-Jenkins cron]# cat jenkins
> 0 0 */3 * * /var/lib/jenkins/.firefoxcatche/a/upd>/dev/null 2>&1
> @reboot /var/lib/jenkins/.firefoxcatche/a/upd>/dev/null 2>&1
> 5 8 * * 0 /var/lib/jenkins/.firefoxcatche/b/sync>/dev/null 2>&1
> @reboot /var/lib/jenkins/.firefoxcatche/b/sync>/dev/null 2>&1
> #5 1 * * * /tmp/.X13-unix/.rsync/c/aptitude>/dev/null 2>&1
>
> Pls let know how to resolve this issue. Even if i delete this file, it's
> automatically created.
>
> --
> 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/CAC3KZS_eYPztwQafYQDLMKbQWZSkx0yDNAnZVBg2E6nuwAUqfw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwfTxzDeVgr%2Bgz0Ekr8Sy1avr1yB7E8DtmmVVK0KJFmy8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Plugin cannot get called from the pipeline with new syntax

2019-02-25 Thread Richard Bywater
You'll need to provide some idea of what error/behaviour you are seeing as
otherwise it's hard to help point you in the right direction.

Richard

On Tue, 26 Feb 2019, 1:17 AM prasad.pofali via Jenkins Users, <
jenkinsci-users@googlegroups.com> wrote:

> Hello,
>
> I have created a Symbol in TestRunPublisher for descriptor. The code now
> looks like following:
>
>
> public class TestUploader extends Publisher implements SimpleBuildStep {
> private final String name;
> private final String password;
> //getters are there for above variables.
> @DataBoundConstructor
> public TestUploader (String name, String password){
> //set the data to class members.
> }
> @Symbol("TestUploader")
> @Extension
> ublic static final class DescriptorImpl extends
> BuildStepDescriptor {
> public DescriptorImpl () {
> load();
> }
> }
>   public boolean isApplicable (Class
> aClass) {return true;}
>
> public String getDisplayName () {return "TestUploader";}
>
> @Override
> public boolean configure (StaplerRequest req, JSONObject formData) throws
> FormException {
> save();
> return super.configure(req, formData);
> }
> }
>
> I think I am missing out on something.
>
>
> On Sunday, February 24, 2019 at 12:19:56 PM UTC+5:30, Richard Bywater
> wrote:
>>
>> You need to define a Symbol in your plugin.  See Defining Symbols section
>> at
>> https://jenkins.io/doc/developer/plugin-development/pipeline-integration/
>>
>> Richard
>>
>> On Sat, 23 Feb 2019, 11:25 AM prasad.pofali via Jenkins Users, <
>> jenkins...@googlegroups.com> wrote:
>>
>>> I have developed a custom Jenkins plugin which extends *Recorder *and
>>> implements *SimpleBuildStep*. I was calling this plugin using the
>>> syntax:
>>>
>>> pipeline {
>>> agent any
>>> stages {
>>> stage('Build and Run Tests') {
>>> steps {
>>> step([$class : 'TestClass', name: 'admin', lastname:
>>> 'admin', endPoint:'http://localhost:8080/', file:'path/to/myfile.txt'])
>>> }
>>> }
>>> }
>>> }
>>>
>>>
>>> With this the plugin is executed, but now my requirement is to call this
>>> plugin with the different pipeline syntax which is our primary requirement.
>>> The required syntax is as follows:
>>>
>>> pipeline {
>>> agent any
>>>  stages {
>>>  stage('Build and Run Tests') {
>>>   steps {
>>>TestClass name:'admin' lastname: 'admin' endPoint: '
>>> http://localhost:8080/', file:'path/to/myfile.txt'
>>>   }
>>>   }
>>>  }
>>> }
>>>
>>>
>>> But I am not able to call the same plugin with the above syntax. Can
>>> anyone please help me?
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/db5c1523-75e2-4969-ba26-54dede193291%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/db5c1523-75e2-4969-ba26-54dede193291%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/a882d3ba-768b-43f0-8c63-4dcc7f82ba3e%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/a882d3ba-768b-43f0-8c63-4dcc7f82ba3e%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwcUjQr_P6asXvEkZDbamgr5%2Be%2BjaY6fiRbEO3Gypbzt-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Plugin cannot get called from the pipeline with new syntax

2019-02-23 Thread Richard Bywater
You need to define a Symbol in your plugin.  See Defining Symbols section
at https://jenkins.io/doc/developer/plugin-development/pipeline-integration/

Richard

On Sat, 23 Feb 2019, 11:25 AM prasad.pofali via Jenkins Users, <
jenkinsci-users@googlegroups.com> wrote:

> I have developed a custom Jenkins plugin which extends *Recorder *and
> implements *SimpleBuildStep*. I was calling this plugin using the syntax:
>
> pipeline {
> agent any
> stages {
> stage('Build and Run Tests') {
> steps {
> step([$class : 'TestClass', name: 'admin', lastname:
> 'admin', endPoint:'http://localhost:8080/', file:'path/to/myfile.txt'])
> }
> }
> }
> }
>
>
> With this the plugin is executed, but now my requirement is to call this
> plugin with the different pipeline syntax which is our primary requirement.
> The required syntax is as follows:
>
> pipeline {
> agent any
>  stages {
>  stage('Build and Run Tests') {
>   steps {
>TestClass name:'admin' lastname: 'admin' endPoint: '
> http://localhost:8080/', file:'path/to/myfile.txt'
>   }
>   }
>  }
> }
>
>
> But I am not able to call the same plugin with the above syntax. Can
> anyone please help me?
>
> --
> 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/db5c1523-75e2-4969-ba26-54dede193291%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwdCjRxSWRcufGsFpTxf2thWEBKhf-9gAMfHK90%3Dd1ZFew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins pushing to a Nuget hosted repository (Nexus)

2019-02-23 Thread Richard Bywater
I have never used Nuget but looks like Nuget isn't installed or isn't
present on the path of the user that Jenkins is running as?

Also usually plugins will expose their own "methods" so would think you'd
be using one of those rather than using a sh step.

Richard

On Sun, 24 Feb 2019, 1:40 AM Faad Sayaou,  wrote:

> 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.$version.symbols.nupkg -s
> $NugetServer -sk *"
>
> I get an error on the console saying *nuget command not found*
>
>
> *Please help!*
>
> --
> 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/f22991dc-2ddf-4a4a-b316-41baa9ea2d35%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwftoEQQmR%3D1NGwAg65io9WD5dgYvMQzwTHp%3DZnwquSJRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Configure BitBucket to build upon commit on Jenkins

2019-02-21 Thread Richard Bywater
Have you followed the instructions available at
https://support.cloudbees.com/hc/en-us/articles/11553051-How-to-Trigger-Multibranch-Jobs-from-Bitbucket-Server-
? I haven't configured it in a while but these steps are what I last used.

Also of particular note is that, as far as I know, you can't used the
native Bitbucket webhook functionality and instead need to use the plugin
mentioned in the above article.

Richard.

On Fri, 22 Feb 2019, 11:50 AM Francisco,  wrote:

> Hello guys,
>
> I'm facing an issue and I already tried many solutions. The trouble is: on
> BitBucket (BB) I configured the Bitbucket Server Webhook to Jenkins with my
> Jenkins URL and my repository. Then, on Jenkins I configured (in a
> multibranch) the Git Plugin with my repo and tried to do a commit and it
> worked perfect, I committed and a build was a fired on Jenkins. But I want
> to use the BitBucket Branch Source Plugin on Jenkins and when I tried to
> configure it instead of using the Git Plugin nothing happened (no build has
> fired on Jenkins after a commit). Can you guys help me on this?
>
> The second solution I tried was using a custom hook on BitBucket which
> seems to get to Jenkins but then it doesn't find my multibranch on Jenkins
> (I can detail this a little more if you want).
>
> I wanted to make the first solution to get to work because it's the best
> and the cleanest, so if you could help me I would appreciate.
>
> Best regards,
>
> Francisco Vieira
>
> --
> 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/66a7c81b-d4e5-49b1-b796-8147680c7885%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwfjdYeA7xdaQ_xY1hQ%2BtM734J-YNFO8JMhL_nbT-2ma%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does Bitbucket Source Branch plugin support "SSH username with private key" type credentials?

2019-02-14 Thread Richard Bywater
Have you added the "Checkout over SSH" behaviour?

Richard.

On Fri, Feb 15, 2019 at 3:20 PM Cameron Morrison 
wrote:

> Hi,
>
> I am using the bitbucket-source-branch plugin - it's working, but I cannot
> figure out how to provide "SSH & private key" type credentials to the
> branch source, when using the Bitbucket source type.
>
> It does work with username/password authentication, and a bare Git type
> branch source *does* work with SSH and private key, but the Birbucket
> source type does not show any SSH credentials at all. Is there something I
> am missing? Or does the plugin simply not support the SSH and private key
> credential type for Bitbucket branch sources?
>
> Cheers,
> Cameron Morrison
>
>
> --
> 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/f835484d-311f-4d3d-90d9-24cc5a2d143c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwekQi0p6Ben0z6EM2Oj7s4Sc%2BaD%3DA%3DAa8qyHOrJ1R3Z3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get Ansible "PLAY RECAP" Failed value from Jenkins pipeline

2019-02-05 Thread Richard Bywater
The Log Parser plugin might be useful for your use case although a
disclaimer that I don't use it myself so can't vouch for it.

https://wiki.jenkins.io/plugins/servlet/mobile?contentId=43713289#content/view/43713289

Richard.

On Wed, 6 Feb 2019, 2:51 AM Manoranjan Panigrahi, <
manranp.panigr...@gmail.com> wrote:

> Hello All,
>
>
>
> I have Jenkins server setup on a windows 2016 server and Ansible Server
> installed on “RHEL 7” OS.
>
>
>
> Through Jenkins pipeline I would like to get the value for “Failed=”
> parameter which is populated in “PLAY RECAP” section when a Ansible script
> is executed.
>
>
>
> I am not able to achieve the same.
>
>
>
> Could you please guide me.
>
> --
> 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/dc095196-4a13-4f11-a668-301e77bee560%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwe12J4uiX96TxwD8KtaTV5SyXD%3DfaJLPgq4AesKMTm65Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-01-29 Thread Richard Bywater
Based on my reading of what 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:

> 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') {
>
> zip dir: 'My/path/bin', glob: '', zipFile: 'bin.zip' +
> '**/some/other/path/bin.zip' + 'README.md'
>
> }
>  stage ('nexus') {
>  nexusArtifactUploader artifacts: [[artifactId: 'myID',
>  classifier: '', file: 'bin.zip',
>  type: 'zip']], credentialsId: '***',
>  groupId: 'myGroupID', nexusUrl: 'nexus.c
> om',
>  nexusVersion: 'nexus3', protocol: 'https', repository: 'Test',
>  version: '1.0.${BUILD_NUMBER}',
> }
>
> the README.md is however not included after checking the uploaded
> artífacts.
>
> Any idea of how to include this file?
>
> --
> 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/9584f089-fe67-451b-912c-c39d9be8bdc8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hweTf2dLmZVRix_LAcP2qEUqr5jEayrLUzgfDJ33vog7-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Users unable to build projects they're authorized for via role-strategy-plugin

2019-01-18 Thread Richard Bywater
I've had this issue in the part. In my experience there isn't really much
that you can do about it except to try and get people to use a particular
case when logging in (e.g. all lower case).

If there's an alternative option that can be chosen would love to hear
about it though.

Richard.

On Sat, 19 Jan 2019, 5:38 AM Benjamin Primrose,  wrote:

> I’m not sure if this is FYI or a plea for helpJ  TL:DR,
> role-strategy-plugin evaluates user permissions by case-sensitively
> comparing the username as entered in Assign Roles with the way they typed
> their name when *logging in*.
>
>
>
>
>
> Running:
>
>
>
>Jenkins 2.150.2 on windows server 2016
>
> Active Directory plugin 2.10 (this may be incidental info)
>
> Role-based Authorization Strategy 2.9.0
>
>
>
>
>
> What’s happening:
>
>
>
> I’m configuring a set of users with access.  Adding the users to
> project roles in “Manage Jenkins”->”Manage and Assign Roles”->”Assign
> Roles” works wonderfully.  More importantly, it is **case insensitive**.
> User’s logons at this org have the initial letter of first and last name
> capitalized in active directory, but no matter what case they’re entered in
> here the lookup in AD succeeds.
>
>
>
> The issue occurred when those users attempt to build the projects
> they’re authorized for—they can’t.  I have a secondary account of my own,
> which I added in the same way as the other users.  It could build projects,
> so I know my project role regex is OK.  The one other user who did work I’d
> lazily entered in all lower case instead of in the local “official”
> mixed-case format.  We went through the AD config for that user to figure
> out which field had their username in all lower case, but none did.  After
> some talking in circles, most users are entering their username in all
> lower case when logging in.  It appears the role-strategy-plugin compares
> the username logged in with **as typed** against the username entered in
> the Assign Roles config screen **as typed**.
>
>
>
>
>
> I had expected either the Assign Roles screen and logging in to do a
> lookup against AD, and store the actual username.  The actual behavior is
> very finicky, and some users do enter their username in mixed case.  Does
> anyone have a fix or workaround for this?
>
>
>
>
>
> Benjamin Primrose
> Principal Developer
> • Fitchburg, MA 01420
>
> Ph:978-353-8054 • bprimr...@wcu.com
>
>
>
>
>
> *Confidentiality Notice:  The materials in this electronic mail
> transmission (including attachments) are private and confidential and are
> the property of the sender and Workers Credit Union.  Unless stated to the
> contrary, any opinions or comments are personal to the writer and do not
> represent the official view of Workers Credit Union.  If you are not the
> intended recipient, you are hereby notified that any use, dissemination,
> disclosure or copying of this communication is strictly prohibited.  If you
> have received this communication in error, please destroy all copies of
> this message and its attachments and notify us immediately.  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, 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/5c4200fc.1c69fb81.a63cb.3fdaSMTPIN_ADDED_MISSING%40gmr-mx.google.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwei9hQB1NqPuBg8XtJo%2BA_vbgsNxHeoYsOPvfHkk0mQng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I find the plugin name to use with install-plugins.sh?

2018-09-14 Thread Richard Bywater
Note that you can also find the ID of a plugin on the plugins.jenkins.io
page for that plugin (e.g. https://plugins.jenkins.io/docker-workflow) -
its ID is shown just below the plugin name header.

Richard.

On Fri, Sep 14, 2018 at 12:00 AM Thomas Sundberg  wrote:

> Hi!
>
> This is partly answering my own question:
>
> Install the plugin you want to try.
>
> Run the script
>
> Jenkins.instance.pluginManager.plugins.each{
>   plugin ->
> println ("${plugin.getDisplayName()} (${plugin.getShortName()}):
> ${plugin.getVersion()}")
> }
>
> Locate the short name of the plugin you want to deploy and add it to
> the Dockerfile.
>
> In this particular case, look for the line
>
> Docker Pipeline (docker-workflow): 1.17
>
> and add
>
> RUN /usr/local/bin/install-plugins.sh docker-workflow
>
> in your Dockerfile.
>
> Clumsy? Yes
> Did it work? Yes
>
> What would you like?
> A section at the page
> https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin stating
> that the command line name for this plugin is docker-workflow
>
> Cheers,
> Thomas
>
> On Thu, 13 Sep 2018 at 13:42, Thomas Sundberg  wrote:
> >
> > Hi!
> >
> > I am creating a Jenkins installation from a Dockerfile. I want to
> > specify all plugins so they are available when the image is built.
> >
> > This typically looks like many lines like this:
> >
> > RUN /usr/local/bin/install-plugins.sh greenballs
> >
> > Is there a way to find the proper name for each plugin? I am currently
> > looking for the proper name for the Docker Pipeline
> > Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin
> >
> > Cheers,
> > Thomas
> >
> > --
> > Thomas Sundberg
> > M. Sc. in Computer Science
> >
> > Mobile: +46 70 767 33 15
> > Blog: http://www.thinkcode.se/blog
> > Twitter: @thomassundberg
> >
> > Better software through faster feedback
>
>
>
> --
> Thomas Sundberg
> M. Sc. in Computer Science
>
> Mobile: +46 70 767 33 15
> Blog: http://www.thinkcode.se/blog
> Twitter: @thomassundberg
>
> Better software through faster feedback
>
> --
> 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/CACpkv-x3VCcC8sWiDqMT%2BDUpPej09cZL7aKXQYQ20zjzENMoxQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAy0hwek0EFfzzkZLzGtpLYd%2Bu1qk8h6KEwg_bTLvRjcP-Fc_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.89.3 “This Jenkins instance appears to be offline”

2018-02-11 Thread Richard Bywater
Are you behind a man-in-the-middle proxy? If so you'll need to load the
correct CA certificate into the .../jre/lib/security/cacerts file by the
look of that exception.

Richard.

On Mon, 12 Feb 2018, 1:52 AM David Tran,  wrote:

> I have this problem that I can't seem to solve. Using macOS High Sierra.
> I installed Jenkins on my macbook and I tried to run it on my system but I
> get this error:
> [Jenkins message window][1]
> 
>
> I have tried the following:
>
>  - Updated JDK to Update 161 (latest)
>  - Navigated to: /Users/Shared/Jenkins/Home/hudson.model.UpdateCenter.xml
> and changed *https* to *http*
>  - Uninstalled and reinstalled Jenkins, I have also tried other versions
> of Jenkins.
>  - Restart Jenkins service through terminal.
>
> Below is the error message when running *java -jar jenkins.war* in the
> terminal which I suspect is the source of the "Jenkins appears to be
> offline" and I do not know how to solve this.
> [Log file][2]
>   [1]: https://i.stack.imgur.com/OCpOK.png
>   [2]: https://i.stack.imgur.com/QrCxk.png
> 
>
> Any help is highly appreciated. Thank you!
>
> David
>
> --
> 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/32706b31-919c-4283-a602-81505a3008c6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944xRp_gbgYq3Lkqn62G6W82XpbKwek8WDvdmkjOXM%3D5VQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Linting Jenkinsfile

2018-01-16 Thread Richard Bywater
Configuration details are provided in the page I linked to in my previous
email.

Richard

On Tue, 16 Jan 2018, 10:23 PM Mayur Nagekar, <mayur.nage...@gmail.com>
wrote:

> Hi Richard,
>
> How do I configure the sshd port for jenkins ? Can you guide me ?
>
> Thanks,
> Mayur
>
>
> On Tuesday, January 16, 2018 at 2:08:22 PM UTC+5:30, Richard Bywater wrote:
>
>> Hi Mayur
>>
>> You need to connect to Jenkins' SSH port and not the system port number.
>> See https://wiki.jenkins.io/display/JENKINS/Jenkins+SSH for more info.
>>
>> Richard.
>>
>> On Tue, 16 Jan 2018 at 21:25 Mayur Nagekar <mayur@gmail.com> wrote:
>>
> ssh -i ~/.ssh/id_rsa_jenkins -p 22  declarative-linter <
>>> Jenkinsfile
>>>
>>> I have been trying to test a *declarative pipeline *style Jenkinfile.
>>>
>>> On Tuesday, January 16, 2018 at 1:10:17 PM UTC+5:30, ok999 wrote:
>>>
>>>> Somethings that you need to add in your help request:
>>>> 1. How are connecting to the server cli/curl?
>>>> 2. What kind of jenkinsfile your are attempting to lint? Declarative or
>>>> scripted pipeline?
>>>>
>>>> On Tue, Jan 16, 2018 at 1:34 AM Mayur Nagekar <mayur@gmail.com>
>>>> wrote:
>>>>
>>> Hello all,
>>>>>
>>>>> I have been trying to find a way to lint Jenkinsfile and came across
>>>>> https://jenkins.io/doc/book/pipeline/development/#linter but this
>>>>> hasn't helped unfortunately.
>>>>> Every time I try to run the command, I get
>>>>>
>>>>> bash: declarative-linter: command not found
>>>>>
>>>>> Looks like there are some additional installs (may be plugins) that
>>>>> need to happen on jenkins server? I'd appreciate if someone could 
>>>>> enlighten
>>>>> me on the same.
>>>>>
>>>>> Many thanks,
>>>>> Mayur
>>>>>
>>>>> --
>>>>> 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-use...@googlegroups.com.
>>>>
>>>>
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/jenkinsci-users/0c9846b3-3bc6-44a6-8de3-5a3ab6cc9d91%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/0c9846b3-3bc6-44a6-8de3-5a3ab6cc9d91%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>>> Sent from mobile device, excuse typos if any.
>>>>
>>> --
>>> 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-use...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/62a89a9f-9e1a-46e9-b536-8a64e8381471%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/62a89a9f-9e1a-46e9-b536-8a64e8381471%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/e89f5eba-3e12-4c4d-90ad-6038db9f651c%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/e89f5eba-3e12-4c4d-90ad-6038db9f651c%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946Gaab%2B8U39OiEDA568Yh7ir4cLQw59URL3JMG1Q-8Zww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Linting Jenkinsfile

2018-01-16 Thread Richard Bywater
Hi Mayur

You need to connect to Jenkins' SSH port and not the system port number.
See https://wiki.jenkins.io/display/JENKINS/Jenkins+SSH for more info.

Richard.

On Tue, 16 Jan 2018 at 21:25 Mayur Nagekar  wrote:

> ssh -i ~/.ssh/id_rsa_jenkins -p 22  declarative-linter <
> Jenkinsfile
>
> I have been trying to test a *declarative pipeline *style Jenkinfile.
>
> On Tuesday, January 16, 2018 at 1:10:17 PM UTC+5:30, ok999 wrote:
>
>> Somethings that you need to add in your help request:
>> 1. How are connecting to the server cli/curl?
>> 2. What kind of jenkinsfile your are attempting to lint? Declarative or
>> scripted pipeline?
>>
>> On Tue, Jan 16, 2018 at 1:34 AM Mayur Nagekar 
>> wrote:
>>
> Hello all,
>>>
>>> I have been trying to find a way to lint Jenkinsfile and came across
>>> https://jenkins.io/doc/book/pipeline/development/#linter but this
>>> hasn't helped unfortunately.
>>> Every time I try to run the command, I get
>>>
>>> bash: declarative-linter: command not found
>>>
>>> Looks like there are some additional installs (may be plugins) that need
>>> to happen on jenkins server? I'd appreciate if someone could enlighten me
>>> on the same.
>>>
>>> Many thanks,
>>> Mayur
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/0c9846b3-3bc6-44a6-8de3-5a3ab6cc9d91%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Sent from mobile device, excuse typos if any.
>>
> --
> 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/62a89a9f-9e1a-46e9-b536-8a64e8381471%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui9455%2B%2BPXuFofv367JUC0TQBuHbDMZnTfhVWDyjSuAx2CnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: installed jenkins in Linux but not able to connect through browser

2017-12-25 Thread Richard Bywater
Agree with Mark - further to his info you'll also want to check the
firewall settings to make sure the relevant port is open.

Richard.

On Tue, 26 Dec 2017, 3:28 AM Mark Waite,  wrote:

> You'll need to provide more detail about what you have discovered as
> you've investigated the failure.  For example:
>
> - Which Linux distrubution are you using?
> - Which Jenkins installation method did you use?
> - Which Jenkins version did you install?
> - Did the installation complete successfully as reported by the operating
> system?
> - What does the browser report when you attempt to connect?
> - Is the 'java -jar jenkins.war' command running?
> - Is something else listening on the port you were connecting from the
> browser?
> - Were there any messages which surprised you or seemed unexpected?
>
> Mark Waite
>
> On Mon, Dec 25, 2017 at 7:21 AM Srini Andae  wrote:
>
>> installed jenkins in Linux but not able to connect through browser
>>
>> --
>> 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/9d452fd6-8fc2-46c0-b3c2-453ea3cd6c0c%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAO49JtFv4qD1MnbFKgjTozTGukxBMEWbuqaFRTiYTKKS3z9t5Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944sPr-LRb5%3D3-Y3s6vqLzPc9385T%2B-rE-oPdcvXV_SeCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: github enterprise self signed certs

2017-11-04 Thread Richard Bywater
Just to throw my 2 cents in, I guess it depends on what is meant by
self-signed - is that self-signed as in I've created a cert on my machine
and that's what I'm using, or is it "self-signed" in that its signed by a
CA that is internal to the organisation.

The former seems a bit of a strange case but the latter is pretty common.

Having said that though this really isn't a Git plugin or even a Jenkins
issue - its purely CA Cert Handling 101 for whenever you are trying to use
Java with the two cases given above (where, of course in the second case,
this involves installing the CA cert from your internal CA setup)

Richard.

On Sat, 4 Nov 2017 at 01:37 Mark Waite  wrote:

> On Fri, Nov 3, 2017 at 1:58 AM Tobias Breuer 
> wrote:
>
>> Hi, for anyone else having similar issues. I've finally solved it for my
>> scenario.
>>
>> Originally I've added the PEM information about our self signed
>> certificate to the keystore of the java installation on my machine.
>> After having a second look at the jenkins config, it turned out, that
>> jenkins was using its own jre version which is located in the installation
>> dir of jenkins itself (I'm running on Windows).
>> So I had to adapt the keystore within this particular jre and not the one
>> installed in "Program Files". Now jenkins can successfully communicate with
>> our GitHub enterprise server using a self signed certificate.
>>
>> Now I only have to figure out why the git plugin cannot checkout even
>> though git itself can do it via command line.
>> Step by Step...
>>
>>
> Tobias,
>
> Can you help me understand the use case for self-signed certificates on a
> commercially purchased product?
>
> Your organization has paid to install, configure, and use GitHub
> Enterprise.  It seems like you would also choose to purchase a certificate
> from a certificate authority.  What are the barriers that prevent you from
> installing a certificate from a certificate authority, rather than
> generating one yourselves?
>
> Thanks,
> Mark Waite (I don't test the git plugin with self-signed certificates)
>
>
>> Am Donnerstag, 2. November 2017 17:24:24 UTC+1 schrieb Tobias Breuer:
>>>
>>> Hi,
>>>
>>> I'm currently running into the same issue. Did you find any answer to
>>> this yet?
>>>
>>> Am Freitag, 10. Februar 2017 20:26:21 UTC+1 schrieb Ryan Golhar:

 Hi all - I'm trying to set up Jenkins with our enterprise github
 install.  We're using https with self-signed certificates.   I've added the
 CA PEM to /etc/pki/tls/certs/ca-bundle.crt, and can verify this works by
 using 'curl https://our.enterprise.github.com/api/v3/'

 Now, in Jenkins -> Manage Jenkins, under 'GitHub Enterprise Servers', I
 enter the same API endpoint but get the message "The endpoint does not look
 like a GitHub Enterprise (verify network and/or try again later)".  My
 Jenkins log file shows:
 Feb 10, 2017 7:18:57 PM
 org.jenkinsci.plugins.github_branch_source.Endpoint$DesciptorImpl
 doCheckApiUri
 WARNING: Server returned HTTP response code: -1, message: 'null' for
 URL: https://our.enterprise.github.com/api/v3/

 I'm not really sure how to proceed as this point.   Has anyone run into
 this before?

 --
>> 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/679f7362-dfe7-4c8e-abad-c9da2f433abb%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAO49JtGZcZMk2-iq1U7%2BLJKAY5U67RGJZXNt%2BYj3CoBC%2BS2JMA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945Oc2J5%2Bh_zh4G%3DjRnYrfUfrMhm8vps3gT7i-Ovi8_Fbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: withAWS step complains about not being able to support closures in the script console

2017-10-13 Thread Richard Bywater
What does your pipeline look like? Are you sure you aren't calling publish
instead of publishToS3 (as the step name seems to be the only reference to
"publish" in the snippet you provided.

Richard

On Sat, 14 Oct 2017, 4:45 AM Kevin Milner, 
wrote:

> I'm having a TON of problems getting the pipeline system setup and
> working. One issue in particular is troubling me. I have a shared library
> that has a custom step in vars/publishToS3.groovy. It looks like this:
> #!/usr/bin/env groovy
> package com.seven10;
>
>
> def call(hashmap){
>  def src_file = hashmap['src_file']
>  def target_path = hashmap['target_path']
>  def bucket_name = hashmap.get('bucket_name', '...')
>  def region = hashmap.get('region', '...')
>  def credentials = hashmap.get('credentials', '...')
>
>  withAWS(credentials: credentials, region: region) {
>  s3Upload bucket: bucket_name, file: src_file, path: target_path
>  }
> }
>
> But I kept getting weird errors in my build job (like 
> 'groovy.lang.MissingPropertyException:
> No such property: publish for class: groovy.lang.Binding') So in order to
> attempt to debug it, I created the following script in the script console.
>
> def call(hashmap){
> def src_file = hashmap['src_file']
> def target_path = hashmap['target_path']
> def bucket_name = hashmap.get('bucket_name', '...')
> def region = hashmap.get('region', '...')
> def credentials = hashmap.get('credentials', '...')
> try {
>   withAWS(credentials: credentials, region: region) {
> try {
>   s3Upload(bucket: bucket_name, file: src_file, path: target_path)
> }
> catch(error){
>println('inner-try: ' + error)
>throw error
> }
>   }
> }
> catch(error){
>   println('outer-try: ' + error)
> }
> }
>
>
> call src_file: 'blah', target_path: 'blahblah'
>
> But when I execute this script I get the error:
>
> outer-try: groovy.lang.MissingMethodException: No signature of method: 
> Script1.withAWS() is applicable for argument types: (java.util.LinkedHashMap, 
> Script1$_call_closure1) values: [[credentials:..., region:...], 
> Script1$_call_closure1@47e8f461] Possible solutions: with(groovy.lang.Closure)
>
> The docs for the withAWS step show it being called with a closure block in 
> just this way (see here 
> ).
> The only other thing I can think of is that its not actually finding the 
> withAWS step (as demonstrated by the fact that it is called 
> "Script1.withAWS") if thats the case, how would I make sure its finding the 
> actual plugin step instead of trying to find a local variable?
>
>
> --
> 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/30eea0d8-10a5-4fce-b050-3064c2c475fb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946iOxCVwBmqVC%3DpK%3DAownO2OYTkYGxK1E3-wuHaGLFVvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: unable to post ssh credentials via API

2017-10-11 Thread Richard Bywater
Personally for that task I've used the CLI functionality to run a Groovy
script to setup credentials. Don't know if that's an option for you or not.

Richard.

On Wed, 11 Oct 2017, 8:51 PM 'Jurgen Weber' via Jenkins Users, <
jenkinsci-users@googlegroups.com> wrote:

> Hi Team
>
> I am trying without success to create and update global ssh keys via the
> API. Things to know:
>
> Jenkins version 2.8.3.
> Security is enabled.
> Google Auth is enabled.
> Prevent Cross Site Request Forgery exploits is on with the default Crumb
> issuer.
> Running on Kubernetes with the helm chart, plugins installed:
>   - build-token-root:1.4
>   - credentials-binding:1.13
>   - docker-commons:1.8
>   - docker-build-step:1.43
>   - Exclusion:0.12
>   - git:3.6.0
>   - git-client:2.5.0
>   - github:1.28.0
>   - google-login:1.3
>   - kubernetes:1.0
>   - promoted-builds:2.29.1
>   - s3:0.10.12
>   - ssh-credentials:1.13
>   - workflow-aggregator:2.5
>   - workflow-job:2.14.1
>
> name=myname
> user=myuser
> token=mytoken
> ssh_pri_key=$(cat ${PWD}/id_rsa | tr '\n' '&' | sed 's/&$//g' | sed
> 's/\&/\\n/g')
>
> CRUMB=$(curl -s "https://${user}:${token}@jenkins
> /crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\",//crumb)")
>
> curl -i -H "${CRUMB}" -X POST 
> "https://${user}:${token}@jenkins/credentials/store/system/domain/_/createCredentials;
> \
>  --data-urlencode "json={
>   \"credentials\": {
>
>  
> \"stapler-class\":\"com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey\",
>\"scope\":\"GLOBAL\",
>\"username\":\"git\",
>\"privateKeySource\":{
>   \"value\":\"0\",
>   \"privateKey\": \"${ssh_pri_key}\",
>
> \"stapler-class\":\"com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey$DirectEntryPrivateKeySource\"
>},
>\"id\":\"${name}-deploy-key\",
>\"description\":\"${name}-deploy-key\",
>\"Jenkins-Crumb\":\"$(echo ${CRUMB} | cut -d ':' -f2)\"
>   }
> }"
>
> No matter what I do, this is the error:
> Caused: java.lang.IllegalArgumentException: Failed to convert the
> privateKeySource parameter of the constructor public
> com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey(com.cloudbees.plugins.credentials.CredentialsScope,java.lang.String,java.lang.String,com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey$PrivateKeySource,java.lang.String,java.lang.String)
>
> --
> 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/aff88570-6692-4987-b9ff-bf65c1bedfda%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945zDxZc9k8X0O_TSi07u%2BQAPnDq%2B0Fb-6%3DiMcQ%3Ddftsxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bitbucket Branch Source Plugin & Endpoints

2017-10-05 Thread Richard Bywater
Thanks for the pointer - I'll see if I can fit in some time to whip
something up.

Richard.

On Thu, 5 Oct 2017 at 21:57 Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:

> If you want to take a stab at a PR, the relevant code you'd need to modify
> is:
>
>
> https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketGitSCMBuilder.java#L176-L187
>
> and
>
>
> https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketHgSCMBuilder.java#L170-L181
>
> You'll probably get a faster fix if you can provide a PR for the issue as
> my attention is assigned elsewhere at present
>
> On 5 October 2017 at 01:52, Richard Bywater <rich...@byh2o.com> wrote:
>
>> Will do!
>>
>> Thanks
>> Richard.
>>
>> On Thu, 5 Oct 2017 at 21:20 Stephen Connolly <
>> stephen.alan.conno...@gmail.com> wrote:
>>
>>> Oversight. Please file a ticket in JIRA
>>>
>>> On 4 October 2017 at 20:46, Richard Bywater <rich...@byh2o.com> wrote:
>>>
>>>> Hi
>>>>
>>>> One of my colleagues is trying to get Jenkins 2 up and running with the
>>>> Bitbucket Branch Source plugin using our Bitbucket Server infrastructure.
>>>>
>>>> We've run into an issue with the plugin as it appears it expects the
>>>> server URL defined in the Bitbucket endpoint configuration to be the same
>>>> as the one to be used for cloning purposes even for SSH.
>>>>
>>>> So for instance if you have defined
>>>> https://bitbucketserver.example.com/bitbucket as the server URL, when
>>>> cloning via SSH it attempts to use ssh://
>>>> bitbucketserver.example.com:7999 (where 7999 is correctly read out of
>>>> the clone link URLs returned by the Bitbucket API). In our case however,
>>>> the web URL is different to the SSH url. For instance, based on the
>>>> previous example, our SSH address is ssh://
>>>> actualservername.example.com:7999/
>>>>
>>>> My question is that, rather than reusing the server URL for cloning
>>>> operations, is there a reason why the clone URLs returned by the API for a
>>>> repository aren't used instead? This would seem to allow Bitbucket to tell
>>>> the plugin exactly where to look in case any other corner cases like this
>>>> come up.
>>>>
>>>> Cheers
>>>> Richard.
>>>>
>>>> --
>>>> 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/CAMui945Sck2UTwhw8n7Ny0hbzc6CC_Aon8tDsXTBGa8cHzRFsw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMui945Sck2UTwhw8n7Ny0hbzc6CC_Aon8tDsXTBGa8cHzRFsw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> 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/CA%2BnPnMx3CsdxOe%3D1O53c%2B25HfVe%3DvJSRq6272%2BXz4RVryFpXRw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMx3CsdxOe%3D1O53c%2B25HfVe%3DvJSRq6272%2BXz4RVryFpXRw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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/CAMui9440Rw18_vmatSgj_qA-72iRwxt_3BhQJgM4v3Wu7LTRDw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMui9440Rw18_vmatSgj_qA-72iRwxt_3BhQJgM4v3Wu7LTRDw%40mail.gmail.com?utm_medium=emai

Re: Bitbucket Branch Source Plugin & Endpoints

2017-10-05 Thread Richard Bywater
Will do!

Thanks
Richard.

On Thu, 5 Oct 2017 at 21:20 Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:

> Oversight. Please file a ticket in JIRA
>
> On 4 October 2017 at 20:46, Richard Bywater <rich...@byh2o.com> wrote:
>
>> Hi
>>
>> One of my colleagues is trying to get Jenkins 2 up and running with the
>> Bitbucket Branch Source plugin using our Bitbucket Server infrastructure.
>>
>> We've run into an issue with the plugin as it appears it expects the
>> server URL defined in the Bitbucket endpoint configuration to be the same
>> as the one to be used for cloning purposes even for SSH.
>>
>> So for instance if you have defined
>> https://bitbucketserver.example.com/bitbucket as the server URL, when
>> cloning via SSH it attempts to use ssh://bitbucketserver.example.com:7999
>> (where 7999 is correctly read out of the clone link URLs returned by the
>> Bitbucket API). In our case however, the web URL is different to the SSH
>> url. For instance, based on the previous example, our SSH address is ssh://
>> actualservername.example.com:7999/
>>
>> My question is that, rather than reusing the server URL for cloning
>> operations, is there a reason why the clone URLs returned by the API for a
>> repository aren't used instead? This would seem to allow Bitbucket to tell
>> the plugin exactly where to look in case any other corner cases like this
>> come up.
>>
>> Cheers
>> Richard.
>>
>> --
>> 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/CAMui945Sck2UTwhw8n7Ny0hbzc6CC_Aon8tDsXTBGa8cHzRFsw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMui945Sck2UTwhw8n7Ny0hbzc6CC_Aon8tDsXTBGa8cHzRFsw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CA%2BnPnMx3CsdxOe%3D1O53c%2B25HfVe%3DvJSRq6272%2BXz4RVryFpXRw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMx3CsdxOe%3D1O53c%2B25HfVe%3DvJSRq6272%2BXz4RVryFpXRw%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui9440Rw18_vmatSgj_qA-72iRwxt_3BhQJgM4v3Wu7LTRDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Bitbucket Branch Source Plugin & Endpoints

2017-10-04 Thread Richard Bywater
Hi

One of my colleagues is trying to get Jenkins 2 up and running with the
Bitbucket Branch Source plugin using our Bitbucket Server infrastructure.

We've run into an issue with the plugin as it appears it expects the server
URL defined in the Bitbucket endpoint configuration to be the same as the
one to be used for cloning purposes even for SSH.

So for instance if you have defined
https://bitbucketserver.example.com/bitbucket as the server URL, when
cloning via SSH it attempts to use ssh://bitbucketserver.example.com:7999
(where 7999 is correctly read out of the clone link URLs returned by the
Bitbucket API). In our case however, the web URL is different to the SSH
url. For instance, based on the previous example, our SSH address is ssh://
actualservername.example.com:7999/

My question is that, rather than reusing the server URL for cloning
operations, is there a reason why the clone URLs returned by the API for a
repository aren't used instead? This would seem to allow Bitbucket to tell
the plugin exactly where to look in case any other corner cases like this
come up.

Cheers
Richard.

-- 
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/CAMui945Sck2UTwhw8n7Ny0hbzc6CC_Aon8tDsXTBGa8cHzRFsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: One github repo, two pipelines, two distinct checks in github?

2017-09-15 Thread Richard Bywater
With regards to 1, the credentials and credential binding plugins would
probably help out there as you wouldn't have to embed the token in the
script.

Can't comment on the other issues though.

Richard

On Sat, 16 Sep 2017, 3:01 AM 'Ian Smith' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi Ann,
>
> Thank you for that information. Sadly this isn't a viable option due to
> two reasons
>
>1. Having to embed the Github user token in the curl command, which
>means adding that to the Jenkinsfile script
>2. The webhook still takes the value of the build state for the last
>pipeline. So although I can define separate values and I see three check
>marks in the PR in github, if the second pipeline marks the build as a
>failure then the pr-merge status is also set to failure.
>
> Kind regards, Ian
>
> On Saturday, September 9, 2017 at 6:18:36 AM UTC+1, Ann B wrote:
>>
>> Hi Ian-
>>
>> I'm sorry that I cannot answer your question directly, as we do not use a
>> web hook.
>>
>> Have you thought of posting to the github statuses api -
>> https://developer.github.com/v3/repos/statuses/#create-a-status with a
>> separate link for each of your pipelines?   We kick off all of our pipeline
>> jobs in parallel (static, functional, unit, etc).  Each job adds a Statuses
>> link to the PR with an initial value of 'Pending' with a link to the
>> running job in jenkins.  As each parallel job finishes, it updates the PR
>> Status with 'Failed' or 'Passes'.
>>
>> Ann
>>
> --
> 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/a662c5ae-5c92-40ac-9169-9446477d9f60%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui947Qw6jd5A61vbEWwQ5wTRUcXJ8sbVAQBv%2BZemrh_p73sQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to publishHTML via Shared Library global variable steps?

2017-09-09 Thread Richard Bywater
No worries. Glad you got it up and running. I too able sometimes guilty of
making things too difficult so I know the feeling :)

Richard

On Sun, 10 Sep 2017, 3:38 AM Ann B  wrote:

> Nice!!  That was it Richard!
>
> Sorry that did not occur to me.  I was making it way more difficult than I
> needed.
>
> Thanks!
>
> Ann
>
> --
> 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/bc2113f3-79ab-4370-ab30-992f7fbc2878%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui947ifDCEKGBRPCZuS6ZOCDun1HuUz4mGiBhM-wH-PU9-sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to publishHTML via Shared Library global variable steps?

2017-09-09 Thread Richard Bywater
Based on the links that you provided, I've now tried the following both of
which seem to work so hopefully you might be able to extract the relevant
bits out and apply to your codebase (note that I'm by far any expert on
pipelines - just learning them myself really!)

Attempt 1 - using a custom step
---
Pipeline
@Library('Test')
import Utilities
runFunctionalTests()

var/runFunctionalTests.groovy
def call() {
  node {
steps.publishHTML([allowMissing: false, alwaysLinkToLastBuild: false,
keepAll: false, reportDir: 'target/allure-reports', reportFiles:
'index.html', reportName: 'Allure Report', reportTitles: ''])
  }
}
---

Attempt 2 - using a Groovy method
---
Pipeline
@Library('Test')
import Utilities
def utils = new Utilities(steps)
node {
utils.doSomething()
}

src/Utilities.groovy
class Utilities implements Serializable {
  def steps
  Utilities(steps) {this.steps = steps}
  def doSomething() {
steps.publishHTML([allowMissing: false, alwaysLinkToLastBuild: false,
keepAll: false, reportDir: 'target/allure-reports', reportFiles:
'index.html', reportName: 'Allure Report', reportTitles: ''])
  }
}
---

Hopefully that is of some use to you!

Cheers
Richard.

On Sat, 9 Sep 2017 at 16:37 Ann B  wrote:

> Accessing steps section -
> https://jenkins.io/doc/book/pipeline/shared-libraries/#accessing-steps is
> actually a better section to look at to understand our use case.
>
> Specifically this section:
>
> "This approach has limitations; for example, it prevents the declaration
> of a superclass.
>
> Alternately, a set of steps can be passed explicitly to a library class,
> in a constructor, or just one method"
>
> I'm passing the steps instance to a method in a library class.
>
>
> On Friday, September 8, 2017 at 9:30:26 PM UTC-7, Ann B wrote:
>>
>> Hi Richard-
>>
>> Thank you for your work with this plugin!
>>
>> Yes, publishHTML([allowMissing: false, alwaysLinkToLastBuild: false,
>> keepAll: false, reportDir: 'results', reportFiles: 'report.html',
>> reportName: 'HTML Report', reportTitles: '']) works find within the
>> context of a shared library script in src directory.
>>
>> My issue is that I've created a custom step (global variable) within the
>> var directory of my shared library.  The way I understand it, you have to
>> access the DSL via the steps object.  This page has more information -
>> https://support.cloudbees.com/hc/en-us/articles/217736618-How-do-I-access-Pipeline-DSLs-from-inside-a-Groovy-class-
>> as well as this page -
>> https://jenkins.io/doc/book/pipeline/shared-libraries/#defining-global-variables
>>
>> If I code:
>> publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll:
>> false, reportDir: 'results', reportFiles: 'report.html', reportName: 'HTML
>> Report', reportTitles: '']) in my method in my class in my var
>> directory, then I get the following error:
>> *hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No
>> signature of method: org.magento.ci.tests.Functional.publishHTML() is
>> applicable for argument types: (java.util.LinkedHashMap) values:
>> [[allowMissing:false, alwaysLinkToLastBuild:false, keepAll:false, ...]]*
>>
>> Thanks again,
>>
>> Ann
>>
> --
> 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/261699f8-b0c8-4926-8de7-5db65461df55%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946XBQ8iE%3DEKhWL%3DMsZ4TthZ0ocPYMT-Rp2-UtwttZJgvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to publishHTML via Shared Library global variable steps?

2017-09-08 Thread Richard Bywater
Hi Ann

I'm the current maintainer of the HTML Publisher plugin but unfortunately
I'm not 100% up-to-speed with its use with pipeline etc. I couldn't
replicate the syntax error you had so I'm wondering if that is actually
being caused by a syntax error somewhere else and its reporting it
incorrectly?

I have had luck following the Accessing Steps section at
https://jenkins.io/doc/book/pipeline/shared-libraries/#accessing-steps -
that is, I just used publishHTML inside a shared library src file so, in
theory, your "publishHTML([allowMissing: false, alwaysLinkToLastBuild: false,
keepAll: false, reportDir: 'results', reportFiles: 'report.html', reportName:
'HTML Report', reportTitles: ''])" in the execute function *should* have
worked I think as far as I can tell. If you can let me know what happens
with just that there (i.e. what error/behaviour you see) then that might
help track things down.

Richard.

On Sat, 9 Sep 2017 at 06:57 Ann B  wrote:

> Hi Richard-
>
> When I try:
>
> steps.step([$class: 'PublishHTMLStep', allowMissing: false, 
> alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'results', 
> reportFiles: 'report.html', reportName: 'HTML Report', reportTitles: ''])
>
> I get this error:
> *syntax error near unexpected token `)'*
>
> Also tried without steps.step and got
> *hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No
> signature of method: org.magento.ci.tests.Functional.publishHTML() is
> applicable for argument types: (java.util.LinkedHashMap) values:
> [[allowMissing:false, alwaysLinkToLastBuild:false, keepAll:false, ...]]*
> Referencing ArtifactArchiver and JUnitResultArchiver classes works fine.
>
> Could just be the implementation of PublishHTMLStep.  I'm just trying to
> figure out how to publish HMTL pages.  Perhaps there is another way.
> I added a comment to this PR as it seemed related to my question -
> https://github.com/jenkinsci/htmlpublisher-plugin/pull/15
>
> Thanks,
>
> Ann
>
> --
> 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/a843956e-e4df-45e0-9a4e-59343c539a25%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945A1UXUXMVcyis1r-%3DpWM__KswORCHYmSfJdsnZat7UaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to publishHTML via Shared Library global variable steps?

2017-09-08 Thread Richard Bywater
Are there any errors displayed or does it just ignore the line? Would be
good to get a sense roughly where the issue might be originating.

Richard.

On Fri, 8 Sep 2017 at 03:40 Ann B  wrote:

> Hi Steffen-
>
> publishHTML step also works fine for me from a pipeline script.  The issue
> is accessing it from a shared library.  From a shared library, you have to
> reference the DSL steps (
> https://support.cloudbees.com/hc/en-us/articles/217736618-How-do-I-access-Pipeline-DSLs-from-inside-a-Groovy-class-
> ).
>
> steps.step(publishHTML...) also does not work.
>
> Ann
>
>
> On Thursday, September 7, 2017 at 12:10:57 AM UTC-7, Steffen Elste wrote:
>>
>> Hello Ann,
>>>
>> we're using the publishHTML step in conjunction with Allure reports - not
>> via a shared library but directly in a pipeline script.
>> Basically identical to your first attempt:
>>
>> publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll:
>> false, reportDir: 'target/allure-reports', reportFiles: 'index.html',
>> reportName: 'Allure Report'])
>>
>> Do You get any sort of error messages?
>> You might want to try and move the call to the pipeline script, if
>> possible.
>> Cheers,
>>
>> Steffen
>>
> --
> 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/0625eb92-a198-4677-97b9-525139fa601c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946hbKiWCG3yiD%3DAUXYd7_QVfa0xYZJMCeKZum_Wo0h%2BGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: curl upload with filename in variable

2017-08-10 Thread Richard Bywater
Taking a look at the error, it appears like you have a line feed or
carriage return at the end of the env.filename variable (note the quote is
on the next line and not next to apk like I'd expect).

Richard.

On Thu, 10 Aug 2017 at 09:40 Curtis Kline  wrote:

> The file exists in the current working directory. This is a three-stage
> project with the agent declared at the global level. It's not running in a
> Docker container, simply on a Linux node. As a test, I included a step
> right before the one I mentioned:
>
> ls -l ${env.filename}
>
> The results seem conclusive:
>
> [Pipeline] sh[JenkinsAndroidTest] Running shell script
> + ls -l Project-debug-v2.1.0-b999.apk
> -rwxrwxrwx 1 jenkins jenkins 33014841 Aug  9 21:01 
> Project-debug-v2.1.0-b999.apk
>
>
>
>
> On Wed, Aug 9, 2017 at 4:26 PM, Slide  wrote:
>
>> Does the file exist in what would be considered the current working
>> directory? Perhaps an ls before the curl to verify?
>>
>> On Wed, Aug 9, 2017 at 2:13 PM Curtis Kline 
>> wrote:
>>
>>> In my declarative pipeline Jenkinsfile, I have the following shell
>>> script line:
>>>
>>> sh """
>>> curl -F "status=2" -F "notify=1" -F "notes=${params.ReleaseNotes}" -F
>>> "ipa=@${env.filename}" -H "X-HockeyAppToken: 1234"
>>> https://rink.hockeyapp.net/api/2/apps/upload
>>> """
>>>
>>> This does not work, because curl is apparently unable to open the file.
>>> The file clearly exists, and the env.filename variable contains the correct
>>> filename (you can see this in the console log below, as the variable has
>>> been expanded to a file name).
>>>
>>> A snippet of my console log is below. I’ve been working on this for a
>>> number of hours, and I could use any help or advice you might have.
>>>
>>> [Pipeline] sh[JenkinsAndroidTest] Running shell script
>>> + curl -F status=2 -F notify=1 -F notes= -F
>>> ipa=@Project-debug-v2.1.0-b999.apk
>>> -H X-HockeyAppToken: 1234 https://rink.hockeyapp.net/api/2/apps/upload
>>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>>> Current
>>>  Dload  Upload   Total   SpentLeft
>>> Speed
>>>
>>>   0 00 00 0  0  0 --:--:-- --:--:--
>>> --:--:-- 0
>>>   0 00 00 0  0  0 --:--:-- --:--:--
>>> --:--:-- 0
>>> curl: (26) couldn't open file “Project-debug-v2.1.0-b999.apk
>>> "
>>> [Pipeline] }
>>>
>>> --
>>> 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/CAGkg-enyw40%3DHNoD85ai%2BFemMjafkJwH9jsswGhJX-KmAr8Qig%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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/CAPiUgVfa%2BX14jd_4LvX1CYS_vuWRSYmvvHSh3dHjM9_ApMo5-g%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/CAGkg-enQf5Wd00PPtkNnatYKNcmFjPDxHAoj94JakZe18U88Yg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945v4%3DR_nEFBQ4PyZHN_7vVXsRqFsqEDNgp1Gi2rCd0n-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline Docker Permissions

2017-07-10 Thread Richard Bywater
Took me a while to come back but just wanted to point out the group
approach is what is "recommended" by Docker in the docs @
https://docs.docker.com/engine/installation/linux/linux-postinstall/ So
definitely the least hacky of all the solutions :)

Richard.

On Sun, 9 Jul 2017 at 06:55 Dan Kinon <dan.ki...@agent.ai> wrote:

> I'm running centos7 and installing pre-packaged docker 1.12.6 from epel7.
> I did see the suggestion out in the wild to add the jenkins user to the
> "docker" (specifically "dockerroot" on my installation) group.  I tried
> this early on and it had no effect.  I noticed that the unix socket
> (/var/run/docker.sock) was owned user root and group root with 660
> permissions so that is why adding the jenkins user to the dockerroot group
> had no effect.  To solve this issue, I had to change the group ownership on
> the socket by modifying /etc/sysconfig/docker and adding
> `--group=dockerroot` to the OPTIONS variable:
>
>> OPTIONS='--selinux-enabled --log-driver=journald
>> --signature-verification=false --group=dockerroot'
>>
>
> Once I did this (in combination with adding the jenkins user to the
> dockerroot group) and restarted docker everything worked.  This still feels
> a little hacky but at least it doesn't carry the negative security
> implications of some of the other solutions I mentioned.
>
> It would still be nice to have some semblance of control over how jenkins
> pipeline accesses/calls docker but this will do for now.  Thanks for
> pointing me back in the docker group direction.
>
> On Friday, July 7, 2017 at 3:10:12 PM UTC-7, Richard Bywater wrote:
>
>> I haven't checked for a while but it used to be that if you add a user to
>> the "docker" group they'll be able to access docker commands.
>>
>> Richard
>>
>> On Sat, 8 Jul 2017, 9:27 AM Dan Kinon <dan@agent.ai> wrote:
>>
> Hello,
>>>I'm running jenkins as a non-root user and am attempting to use a
>>> docker agent in my jenkinsfile.  When I run the job, I get the following
>>> error:
>>> 
>>> [VA_Build_containers_develop-NJECFMY5Y6Z5OKTQVWTCSYEZEVQKAXGGRGECV2LSFA2YZ2ALBWQQ]
>>> Running shell script
>>> + docker inspect -f . docker:1.12.6
>>> .
>>> Failed to run image 'docker:1.12.6'. Error: /usr/bin/docker-current:
>>> Cannot connect to the Docker daemon. Is the docker daemon running on this
>>> host?.
>>> See '/usr/bin/docker-current run --help'.
>>> ~~~
>>>
>>>The root cause of course is that docker is running as root and
>>> jenkins is not.  The "solution" I've found on the internet is to open up
>>> permissions to the world on the docker.sock or to add a tcp connecter to
>>> docker.  While that may functionally get me what I want that is a hack not
>>> a best practice solution IMHO.
>>>
>>>I want to tell Jenkins docker agent to execute docker via sudo (as
>>> I've given the jenkins user all required permissions via sudoers) but I
>>> can't figure out how.  Is there any way to currently do this or is this a
>>> feature request.
>>>
>>> Thanks in advance,
>>> -Dan
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/CAErRXL-EUOsLn9OAZ3xq8zQgmAZcXSpZWRSqzEBScecgwkoEDA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAErRXL-EUOsLn9OAZ3xq8zQgmAZcXSpZWRSqzEBScecgwkoEDA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/c3035dda-a79c-4dde-8bdf-d21908cd9866%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/c3035dda-a79c-4dde-8bdf-d21908cd9866%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946m8LmmM%2B8scNYywpgjarB5JbxQJY9v81%3Dsj0RTrSNiVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline Docker Permissions

2017-07-07 Thread Richard Bywater
I haven't checked for a while but it used to be that if you add a user to
the "docker" group they'll be able to access docker commands.

Richard

On Sat, 8 Jul 2017, 9:27 AM Dan Kinon  wrote:

> Hello,
>I'm running jenkins as a non-root user and am attempting to use a
> docker agent in my jenkinsfile.  When I run the job, I get the following
> error:
> 
> [VA_Build_containers_develop-NJECFMY5Y6Z5OKTQVWTCSYEZEVQKAXGGRGECV2LSFA2YZ2ALBWQQ]
> Running shell script
> + docker inspect -f . docker:1.12.6
> .
> Failed to run image 'docker:1.12.6'. Error: /usr/bin/docker-current:
> Cannot connect to the Docker daemon. Is the docker daemon running on this
> host?.
> See '/usr/bin/docker-current run --help'.
> ~~~
>
>The root cause of course is that docker is running as root and jenkins
> is not.  The "solution" I've found on the internet is to open up
> permissions to the world on the docker.sock or to add a tcp connecter to
> docker.  While that may functionally get me what I want that is a hack not
> a best practice solution IMHO.
>
>I want to tell Jenkins docker agent to execute docker via sudo (as I've
> given the jenkins user all required permissions via sudoers) but I can't
> figure out how.  Is there any way to currently do this or is this a feature
> request.
>
> Thanks in advance,
> -Dan
>
> --
> 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/CAErRXL-EUOsLn9OAZ3xq8zQgmAZcXSpZWRSqzEBScecgwkoEDA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944_88%3Da0m%2BcXf0t5PRSY-73TS-Nsk-oxV2SiQb6rsnCYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: run jar in jenkins job

2017-07-04 Thread Richard Bywater
What does 'demo.jar' actually do? It looks like you've got a build timeout
plugin installed which times the build out after 5 minutes which seems to
imply that the execution of the JAR hasn't returned in that time period.

Richard.

On Tue, 4 Jul 2017 at 23:04 Sumitha Arjunan  wrote:

> I am new to jenkins.
>
> I have created a jar after the build process in jenkins job. If I run the
> jar through command line, the application is up and running fine.  When I
> try to run the jar in jenkins job, using below windows batch command
>
> java -jar demo.jar
>
> Getting error;
>
> 05:29:36 2017-07-04 05:29:36.101  INFO 10932 --- [   main]
> c.i.t.DemoeApplication : Started DemoApplication in 9.796 seconds (JVM
> running for 10.576)
> 05:34:22 Build timed out (after 5 minutes). Marking the build as aborted.
> 05:34:22 Build was aborted
> 05:34:22 Finished: ABORTED
>
> How to run the jar in jenkins job? Please advice.
>
> --
> 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/d3c1b905-c9d7-4176-a0db-d718118e7923%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945QAcuqtrABVUDz4EmGkTO9azhorevL%2BaLwK8%3DDQFRNTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Use of Execute Windows batch command step to trigger google chrome(or in general any app that can be triggered from command prompt)

2017-06-29 Thread Richard Bywater
Running Chrome will return control to the batch script straight away and,
without anything else to run, the script will exit. You'll need to look at
a way of waiting for Chrome to finish (although its not clear what it is
trying to do from the example).

Richard.

On Thu, 29 Jun 2017 at 00:32 Zed Kay  wrote:

> Hi,
>
> I have been trying to use the Execute Windows Batch Command  step (as I
> use Windows) in order to trigger a new chrome window from Jenkins. From
> what I knew, if a something could be triggered from the command line, it
> would work the same way from Jenkins. The command that I put in the command
> window (which works at the command prompt) is the following:
> Enter code here..."c:\program files
> (x86)\google\chrome\application\chrome.exe" --new-window
> "http://localhost:8080:/debug?port=5858;
>
> When i build the job, it builds successfully, but the result on the
> control output is the following:
>
>
> 
>
>
>
>
>
> Chrome is not triggered and I get this result. I have no idea what the
> message regarding the Elasticsearch service means. Any ideas on how this
> issue can be resolved? Thank you in advance for your time!
>
>
>
> --
> 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/44cb8c31-eaf2-4afb-9332-409c23a1e6c8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944v7sXpWHq_2yE6R_YYCCf2nnRfNu7tor94thD-r0RH%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is the difference between my shell and Jenkins regarding batch command

2017-06-28 Thread Richard Bywater
To be able to provide assistance about possible causes you really need to
provide more info - for instance, what the Java exception is that you are
getting. Otherwise any help would be merely guessing to possible causes.

Richard.

On Wed, 28 Jun 2017 at 20:34 Nicolas Lignée 
wrote:

> Hello,
>
> I'm currently trying to configure a Jenkins project to build a MCUXpresso
> project. MCUXpresso is a Eclipse-based IDE.
> To do so, I am Executing Windows batch command as follows :
>
> C:\NXP\MCUXpressoIDE_10.0.0_344\ide\mcuxpressoidec.exe -nosplash
> -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data
> "my_workspace" -cleanBuild "my_project" --launcher.suppressErrors
>
> By looking at the console output, with a few differences the build is quit
> similar to the one in MCUXpresso. Yet, I still have a Java exception at the
> end and the build fails.
> What make me think the problem comes from my Jenkins configuration is that
> when I use exactly the same command in my shell, the build is correct.
>
> I made a lot of research (even on this
> https://wiki.jenkins.io/display/JENKINS/My+software+builds+on+my+computer+but+not+on+Jenkins)
> but I still don't find the answer to this question :
>
> What is the difference between the command prompt (where the batch command
> works) and Jenkins ?
>
> 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, 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/3c021678-daa7-4d8c-b120-b2e890351a73%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946ZKnyixpN5i8992EKhm9aQTM7qoNQUr3Mcs8irz98Hmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Integration of sonar qube with jenkins

2017-06-11 Thread Richard Bywater
See the documentation at
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins

Richard

On Sun, 11 Jun 2017 at 04:01 Sivakrishna Yarra <
sivakrishna.ya...@ramyamlab.com> wrote:

> Hi Guys,
> I am using Jenkins as CI and CD.  I just want to integrate sonar-qube with
> Jenkins. Can you please help on this.
>
>
>- Sonar Qube plug-in is already installed in Jenkins.
>- Sonar Qube and Jenkins services are running in same RHEL server.
>
> --
> 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/1966cf6a-a82e-4b01-ae0d-bb52f40972d9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945gBROyvEWmwhQouZt4gqKmg2WZO6yoepMO6QYVtjh1pg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugins supported by jenkins 2.0

2017-05-10 Thread Richard Bywater
Just to check, are you asking about which are supported by Jenkins 2.0 or
which are supported by Pipelines? Stephen has already answered about the
former but in terms of the latter, this page (
https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md )
tracks the status.

Richard.

On Thu, 11 May 2017 at 07:40 Ankita Nema  wrote:

> Hi
>
> Is there any list i can refer to which talks about plugins supported by
> Jenkins 2.0.?
>
> Thanks,
> Ankita
>
> --
> 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/077802b1-0d40-4e73-be86-65376445b639%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946gH0WDpX6eoj8icE5pr1nAonnHQ4Fet%2BHNrnDgbSm58Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Regarding the recent waves of mailing list spam

2017-05-03 Thread Richard Bywater
I'm assuming that not all of us have been added in to help the effort as I
can't personally see any management functions...

Richard.

On Tue, 2 May 2017 at 08:50 Arnaud Héritier  wrote:

> Did you add all of us as moderators Tyler ?
>
> On Sun, Apr 30, 2017 at 1:44 PM, Mark Waite 
> wrote:
>
>> I agree with Baptiste.  When I've checked on the moderator queue after a
>> flurry of spam, more often than not I've found that someone else had
>> already handled the messages which google groups had detected as spam.
>> Enabling first-poster moderation will block the spam which google groups
>> fails to detect as spam.
>>
>> Mark Waite
>>
>> On Sun, Apr 30, 2017 at 4:42 AM Baptiste Mathus 
>> wrote:
>>
>>> IMO, we should really enable, at least temporarily, first-poster
>>> moderation. I don't know what is the average subscription for people here,
>>> but I suspect it's ML, hence receiving spams before they possibly get
>>> deleted eventually from the GGroup archive. Hence no use. I'm in that case.
>>>
>>> Aren't we now enough who answered to this thread or previously to enable
>>> this option? I don't expect an email would stay in the queue for more than
>>> a few hours with that amount of people? And this seems like a reasonable
>>> compromise for stopping spams here?
>>>
>>> Thanks
>>>
>>> -- Baptiste
>>>
>>> 2017-04-24 20:13 GMT+02:00 Michael Hunter :
>>>
 I am willing to help as well. Timezone: GMT, BST.

 On 19 April 2017 at 21:33, Arnaud Héritier  wrote:

> Let's go
> CEST/CET
> Do we know how many new subscribers we have per day/week to see how
> many we should be to moderate new members ?
>
> On Tue, Apr 18, 2017 at 5:10 PM, Joseph P  wrote:
>
>> I would also be willing. Timezone CEST/CET :)
>>
>>
>> Den mandag den 17. april 2017 kl. 17.53.45 UTC+2 skrev R Tyler Croy:
>>
>>>
>>> As you may have noticed, there has been an uptick in spam getting
>>> through to
>>> the Google Groups run by the Jenkins project. On some lists, these
>>> have
>>> resulted in Google flagging the group and bouncing emails from those
>>> groups.
>>>
>>> This was discussed during our last project meeting
>>> (
>>> http://meetings.jenkins-ci.org/jenkins-meeting/2017/jenkins-meeting.2017-04-12-18.00.html),
>>>
>>> and as promised I wanted to let everybody know where things stand
>>> and why.
>>>
>>>
>>> If you receive emails as they're posted (non-digest mode) from
>>> Google Groups,
>>> if a spamemr gets through, there's nothing we can do for you. While
>>> I have
>>> added a couple more "Manager" roles to the jenkinsci-users@ list,
>>> who can ban
>>> authors and delete posts, once something is delivered to your inbox,
>>> there's
>>> nothing we can do.
>>>
>>> Some people have suggested first-poster moderation, which is one
>>> option, but
>>> not one I'm personally willing to turn on until more people are
>>> active
>>> moderators. Unfortunately I took a weekend off from my
>>> morning-routine of
>>> banning spammers two weekends ago, which seems to have led to the
>>> recent surge
>>> and flagging of the group.
>>>
>>>
>>> What we are evaluating between last project meeting and the upcoming
>>> one (April
>>> 26) is whether Google Groups is still a viable option for the
>>> Jenkins project.
>>> A number of other projects have moved to groups.io, which would be
>>> a likely
>>> destination if Google continues to flag our groups.
>>>
>>>
>>>
>>> Consider yourselves updated, feel free to ping me on IRC (rtyler)
>>> with
>>> questions.
>>>
>>>
>>> Cheers
>>> - R. Tyler Croy
>>>
>>> --
>>>  Code: 
>>>   Chatter: 
>>>  xmpp: rty...@jabber.org
>>>
>>>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
>>> --
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to jenkinsci-dev+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-dev/67550b76-a94f-4a36-b085-7ab424c690dc%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> -
> Arnaud 

Re: Jenkins 2.7 vs 2.4

2017-04-18 Thread Richard Bywater
Not quite sure where you are seeing that date against 2.4. The results from
my view of that list is:
jenkins-2.4-1.1.noarch.rpm 2016/05/15 65.4M
jenkins-2.7-1.1.noarch.rpm 2016/05/29 65.4M

So 2.7 is newer than 2.4. I believe you'll find that Blue Ocean is 2.7+ so
you should probably grab the latest version that you feel comfortable with
(2.55 is the latest available there)

Richard.


On Tue, 18 Apr 2017 at 22:52 Filippo  wrote:

> Hello,
> I've installed Jenkins 2.4 on a CentOS server via yum. I would like to try
> Blue Ocean, that runs only with Jenkins v 2.7.
> So I opened the RedHat repository (https://pkg.jenkins.io/redhat/) and
> noticed that the 2.7 rpm is dated 2016/05/29, while the 2.4 is dated
> 2017/02/13.
> The question is: why is the 2.7 so older than 2.4?
> And are the other packages (2.8 and 2.9) also compatible with blue ocean?
>
> Thanks.
>
> --
> 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/2d4e92fb-a2b6-46fd-8157-41ea58ffeebe%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945DKCSw4FYiEfSH7nky_1_xVCusmmEMjYaDmjo2tyEGYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Mirror is down

2017-04-18 Thread Richard Bywater
Are you sure it's the mirror? That looks like a virus scan error which
would usually be more placed on the consumer side than the mirror - that
is, does your current internet connection virus check?

Cheers
Richard

On Tue, 18 Apr 2017, 6:59 PM Devon  wrote:

> Hi there
>
> I am trying to update my Jenkins instance but it fails due to the mirror
> it is being redirected to being unable to process the request.
>
> URL I get: http://ftp.icm.edu.pl/packages/jenkins/war/2.55/jenkins.war
>
> Message being displayed:
>
>
>
> ICAP Error (icap_error)
>
> An error occurred while performing an ICAP operation: Maximum total files
> in archive exceeded; File: jenkins.war; Sub File: ; Vendor: Sophos, Plc.;
> Engine version: 3.68.1; Pattern version: 5.38.13086169.0; Pattern date:
> 2017/04/18 04:33:40
>
> There could be a network problem, the ICAP service may be misconfigured,
> or the ICAP server may have reported an error.
>
>
> For assistance, contact your network support team.
>
>
>
> Currently I am unable to update my Jenkins instance (plugin updating does
> work fine). Is there a way to have Jenkins use another mirror?
>
> FYI: I'm located in Belgium/Netherlands
>
> Best regards
> Devon
>
> --
> 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/c0a48fd5-0f54-4f57-8bc6-059a1f72857a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944S2gSWZHR4%3DyADkqh0f%3DWP2tsk%3DQPQr7yXiu1a_eo3CA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Confluence Source Editor

2017-04-04 Thread Richard Bywater
I believe Daniel suggested you post this on the Infra mailing list? This
isn't that list :)  See
https://jenkins.io/mailing-lists/#a-href-mailto-infra-lists-jenkins-ci-org-infra-lists-jenkins-ci-org-a

Richard.

On Wed, 5 Apr 2017 at 07:49 JordanGS  wrote:

> Is there any plans on enabling the source editor in the future for the
> wiki, see here
> 
> .
>
> Thanks
>
> --
> 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/5fe4a13e-7eca-4105-9408-77ac3d38c271%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945eJ%3DZ5EYhjBNnd_09ekKLWRKn53Wbh%2BN5L2Wi2jNDdTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error in build Grails

2017-03-29 Thread Richard Bywater
Does this work locally as it kind of looks like not a Jenkins issue but a
Grails one.

Looks like a problem when processing the style.css file - I'm assuming if
you run with --stacktrace like it says you'll find out more.

Richard.

On Thu, 30 Mar 2017 at 12:53 Роман Ловаков  wrote:

> what am I doing wrong? In the Global Tool Configuration, I installed the
> local Grails 3.4.8, Gradle 3.4, JDK 8, Groovy 2.4.10. In the Grails project
> settings in the Build section, I chose Build with Grails, the target field
> I wrote war. i have next settings and next structure of project on
> bitbucet
> But I have error
> [EnvInject] - Loading node environment variables.
> Building in workspace /var/lib/jenkins/jobs/xxx/workspace
>  > git rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
>  > git config remote.origin.url https://x...@bitbucket.org/xxx/xxx.git #
> timeout=10
> Fetching upstream changes from https://x...@bitbucket.org/xxx/xxx.git
>  > git --version # timeout=10
> using GIT_ASKPASS to set credentials
>  > git fetch --tags --progress https://x...@bitbucket.org/xxx/xxx.git
> +refs/heads/*:refs/remotes/origin/*
>  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
>  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
> Checking out Revision 311cc87e3bda4c55dbd044edbace1f66bdc56a7b
> (refs/remotes/origin/master)
>  > git config core.sparsecheckout # timeout=10
>  > git checkout -f 311cc87e3bda4c55dbd044edbace1f66bdc56a7b
>  > git rev-list 311cc87e3bda4c55dbd044edbace1f66bdc56a7b # timeout=10
> [workspace] $ /usr/lib/grails/3.2.8/bin/grails
> -Dgrails.work.dir=/var/lib/jenkins/jobs/xxx/workspace//target war
> --non-interactive --plain-output
> :compileJava NO-SOURCE
> :compileGroovy UP-TO-DATE
> :findMainClass
> :assetCompile
> Processing File 1 of 30 - jstree/default-dark/32px.png
> - Writing File
> Processing File 2 of 30 - jstree/default-dark/40px.png
> - Writing File
> Processing File 3 of 30 - jstree/default-dark/throbber.gif
> - Writing File
> Processing File 4 of 30 - jstree/default/32px.png
> - Writing File
> Processing File 5 of 30 - jstree/default/40px.png
> - Writing File
> Processing File 6 of 30 - jstree/default/throbber.gif
> - Writing File
> Processing File 7 of 30 - glyphicons-halflings-regular.ttf
> - Writing File
> Processing File 8 of 30 - glyphicons-halflings-regular.svg
> - Writing File
> Processing File 9 of 30 - glyphicons-halflings-regular.woff2
> - Writing File
> Processing File 10 of 30 - glyphicons-halflings-regular.woff
> - Writing File
> Processing File 11 of 30 - glyphicons-halflings-regular.eot
> - Writing File
> Processing File 12 of 30 - css/bootstrap/bootstrap.min.css
> - Writing File
> Processing File 13 of 30 - css/bootstrap/bootstrap.css
> - Minifying File
> - Writing File
> Processing File 14 of 30 - css/jstree/default-dark/style.min.css
> - Writing File
> Processing File 15 of 30 - css/jstree/default-dark/style.css
> Error |
> Command [war] error: Could not execute build using Gradle distribution '
> https://services.gradle.org/distributions/gradle-3.4-all.zip'. (Use
> --stacktrace to see the full trace)
> Build step 'Build With Grails' marked build as failure
> Collecting metadata...
> Metadata collection done.
> Finished: FAILURE
>
> What i doing wrong?
>
> --
> 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/e73423f2-9b84-45f0-907e-416f4e21e15b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui9445R4Nhwp48-T8-UTefHmr2yVPjCx%3D%2B5W58bughVUU7Yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: The option to “Launch slave agents via Java Web Start” is missing from new node configuration

2016-08-14 Thread Richard Bywater
Perhaps it would be an idea to show the item but as disabled and state what
actions are required to get it enabled?

Richard.

On Mon, 15 Aug 2016 at 12:15 Stephen Connolly <
stephen.alan.conno...@gmail.com> wrote:

> So the logic here is to reflect that the TCP agent port has been disabled
> and thus the launcher is not available to you.
>
> On 4 August 2016 at 11:47, Kumar Dp  wrote:
>
>> I'm trying to configure a salve using "Launch slave agents via Java Web
>> Start", but I see that option is not listed in the launch method. I'm using
>> Jenkins 2.14 version.OS: Linux 3.8.13-68.3.4.el6uek.x86_64
>> Please help me to solve the 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/21bef93a-67f6-4eb4-887b-ea1bc7d5f6cd%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/CA%2BnPnMzbwTVUYGXuuZ1vx52rcj_G26LjWJkt24KVE%3DC1bJ2t0Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945xtpCZ-SjuuuUrGvmOcHjxDmZVGaBGws9vXkcE9D0Z2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Configure Publish Over SSH server if password changed overtime

2016-06-12 Thread Richard Bywater
Are you not able to move to key based Auth?

Richard

On Mon, 13 Jun 2016, 2:05 PM Reinaldo Chandra 
wrote:

> Hi,
> Currently I'm using password authentication for connecting to the server.
> However, my company policy forces the password to be newly generated upon
> new access.
> I don't want to change the configuration every time. How can I configure
> this with the Publish Over SSH plugin?
> 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, 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/dd14d0c7-9d64-4174-8b38-0d04005d1cfb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946aWMMZ_dGnf5bNScXgzuMXwre%3Deyde%3DbSEfsEy5%3DmobQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Multi-branch different options based on branch

2016-05-12 Thread Richard Bywater
Haven't done it myself but there is the different Property Strategy in the
multibranch config of "Named branches get different properties" - so
presumably you could set (or unset) a property for certain branches and
drive the decision to deploy off of that?

Richard.

On Fri, 13 May 2016 at 11:24 Mike Caspar  wrote:

>
> I am working on a pipeline that does Test/Deploy after a commit.
>
> That's all cool!
>
> HoweverWhen I create a branch (for a new feature), and it gets
> auto-launched as a new build pipeline, how do I prevent the same
> Jenkinsfile from initiating the Deploy step, since it's the same
> Jeniinsfile ?
>
> Is there a standard way to do this ?
>
> If not, I imagine I could only do Deploy if I'm on branch Master ?
>
> Thoughts on how to do either of these two options ?
>
> Mike
>
>
>
>
>
> --
> 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/31a3041d-f943-4906-aa2c-ebcf9d54025d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946-iCDfT7v%2BJ3KYCTVSpMerbM14xbxEf%3DCMQmdXKeE5eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0 and the game of life

2016-05-01 Thread Richard Bywater
What error is received when NOT using the -o flag?

Richard.

On Mon, 2 May 2016 at 12:02 Sarah Baker  wrote:

> Yes, I've tried both with and without the -o exactly as it indicates in
> the book.
> Entered with javadoc:javadoc -o  the error is
> ...
>
> [INFO] *--- maven-install-plugin:2.4:install (default-install) @ gameoflife 
> ---
> *[WARNING] The POM for org.codehaus.plexus:plexus-utils:jar:3.0.5 is missing, 
> no dependency information available[WARNING] The POM for 
> org.codehaus.plexus:plexus-digest:jar:1.0 is missing, no dependency 
> information available[INFO] 
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] gameoflife . FAILURE [ 12.519 
> s]
> [INFO] gameoflife-build ... SKIPPED
> [INFO] gameoflife-core  SKIPPED
> [INFO] gameoflife-web . SKIPPED
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 13.514 s
> [INFO] Finished at: 2016-05-01T16:55:16-07:00
> [INFO] Final Memory: 17M/170M
> [INFO] 
> [ERROR]
>  Failed to execute goal 
> org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) 
> on project gameoflife: Execution default-install of goal 
> org.apache.maven.plugins:maven-install-plugin:2.4:install failed: Plugin 
> org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies 
> could not be resolved: The following artifacts could not be resolved: 
> org.codehaus.plexus:plexus-utils:jar:3.0.5, 
> org.codehaus.plexus:plexus-digest:jar:1.0: Cannot access central 
> (https://repo.maven.apache.org/maven2) in offline mode and the artifact 
> org.codehaus.plexus:plexus-utils:jar:3.0.5 has not been downloaded from it 
> before. -> [Help 1]
>
> [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with 
> the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug 
> logging.[ERROR] [ERROR] For more information about the errors and possible 
> solutions, please read the following articles:
>
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionExceptionBuild
>  step 'Invoke top-level Maven targets' marked build as failure
> Archiving artifacts
> Recording test results
> ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were 
> found but none of them are new. Did tests run?
> For example, 
> C:\Users\Sarah\.jenkins\jobs\gameoflife-default\workspace\gameoflife-acceptance-tests\pom.xml
>  is 7 days 1 hr old
> Finished : FAILURE
>
>
>
> On Friday, April 29, 2016 at 1:32:45 AM UTC-7, Daniel Beck wrote:
>
>>
>> > On 29.04.2016, at 05:37, Sarah Baker  wrote:
>> >
>> > It's not something I'm introducing in the build line that I enter into
>> jenkins for maven.
>> > I don't know how it's getting introduced.
>>
>> To clarify, you did not enter the values as shown on figure 2-24 on page
>> 34, where the 'Goals' text field contains the text below?
>>
>> > javadoc:javadoc -o
>>
>>
>> Because that's what makes Maven work offline.
>>
>> --
> 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/bd606c62-4876-4a36-988d-15b4fa98364e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui947eXW6qOeJjkbg%2BJhdDviVRDKP-1n8rAqaNXB%3DzAZ0MLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: StashNotifier Plugin - version info

2016-04-18 Thread Richard Bywater
Working for me on Chrome Mac.

Richard.

On Tue, 19 Apr 2016 at 08:57 Ashish Yadav  wrote:

> This page is coming up ‘blank' for me.
> https://wiki.jenkins-ci.org/display/JENKINS/StashNotifier+Plugin
>
> I am not able to view any version history. Did the page get moved?
>
> --
> 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/D33AB402.1EEE3%25ashish.yadav%40firemon.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui9476LyTYD1gZh-ou9N%3DXWBPZMq3usJ8W5uPSzHjWSJUrAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I retrieve the exit code of a 'bat' command?

2016-04-14 Thread Richard Bywater
You should just be able to use simple checks for the ERRORLEVEL variable to
do some basic if blocks. See
http://stackoverflow.com/questions/4451013/check-if-process-returns-0-with-batch-file
for
a basic example and also I think it has a link to more info.

Richard.

On Fri, 15 Apr 2016 at 09:40 Scott Richmond <s.t.richm...@gmail.com> wrote:

> So I've done some testing - One can catch a bad exit from bat with a
> trycatch function. HOWEVER! It does not seem to catch exit code 1. It'll
> catch other higher numbered exit codes, but not 1. Not sure what to do here.
>
> On Thu, Apr 14, 2016 at 10:25 PM, Richard Bywater <rich...@byh2o.com>
> wrote:
>
>> Someone may have a more elegant answer but one way that comes to mind is
>> to call another cmd/bat file from Jenkins which then calls the external
>> tools and also has logic to interpret the exit codes coming back from the
>> those tools and acting appropriately.
>>
>> Richard.
>>
>> On Fri, 15 Apr 2016 at 09:07 Scott Richmond <s.t.richm...@gmail.com>
>> wrote:
>>
>>> I need to run a few external build tools and I do so with the bat
>>> command on Windows agents. I need to be able to determine the success or
>>> failure of that command based on the exit code of the script that was run.
>>> Is it possible to get this?
>>>
>>> --
>>> 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/b1f502b2-e559-49d9-a9b3-7d33f4fa89ae%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/b1f502b2-e559-49d9-a9b3-7d33f4fa89ae%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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/Dr1u9PVUvVw/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/CAMui947b10_P7J_-GiEXAVUwNZGPSYGvsGGeHpZ2%2BdXWOOUZJw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMui947b10_P7J_-GiEXAVUwNZGPSYGvsGGeHpZ2%2BdXWOOUZJw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>
>
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAEwxhEtcUz%2BHLvuakQuvrDnSNT9sAG182Z%2B_ccXJrjWR6RFj2Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAEwxhEtcUz%2BHLvuakQuvrDnSNT9sAG182Z%2B_ccXJrjWR6RFj2Q%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945BTxcz9aBjGWAuHh5kHMZxV0W6SxiZoJq6n6b%2BA5%2BzNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I retrieve the exit code of a 'bat' command?

2016-04-14 Thread Richard Bywater
Someone may have a more elegant answer but one way that comes to mind is to
call another cmd/bat file from Jenkins which then calls the external tools
and also has logic to interpret the exit codes coming back from the those
tools and acting appropriately.

Richard.

On Fri, 15 Apr 2016 at 09:07 Scott Richmond  wrote:

> I need to run a few external build tools and I do so with the bat command
> on Windows agents. I need to be able to determine the success or failure of
> that command based on the exit code of the script that was run. Is it
> possible to get this?
>
> --
> 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/b1f502b2-e559-49d9-a9b3-7d33f4fa89ae%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui947b10_P7J_-GiEXAVUwNZGPSYGvsGGeHpZ2%2BdXWOOUZJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I write job script and load it to jenkins to work ?

2016-04-13 Thread Richard Bywater
There's also Jenkins Job Builder -
http://docs.openstack.org/infra/jenkins-job-builder/ - which isn't a plugin
to Jenkins but creates and uploads Jenkins config.xml based off of YAML.

Richard.

On Thu, 14 Apr 2016 at 13:59 Slide  wrote:

> There are two options that you might be interested in:
>
> 1) Job DSL plugin -
> https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin
> 2) Pipeline Plugin -
> https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin
>
> Both use a groovy DSL to either generate jobs or run pipelined tasks.
>
> On Wed, Apr 13, 2016 at 6:55 PM Andy Billy  wrote:
>
>> hi:)
>>
>>For the more and more jobs needed to be configured ,Is there a better
>> way to configure them other than operating the ui workflow ?
>>if I can write job config script and load it to jenkins ,that is
>> pretty light work。
>> thanks.
>>
>> --
>> 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/2e60b9ae-ba5c-4feb-86e0-242e48ace19a%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAPiUgVco8VrTjhAvscf0z5jp5QWq6B9Vv4J5%2Bjp20COk0YDY2A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946Zmnos_R_4NcKTAPtDVZGXBSywf-gYXRthp2OP8T24kQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0: Turn off Setup wizard

2016-03-31 Thread Richard Bywater
It sounds to me like there's a good use-case for being able to skip the
setup wizard even in "prod" mode? Is the jenkins.install.runSetupWizard
ignored if development = false? If so would it make sense just to skip that
check?

Richard.

On Fri, 1 Apr 2016 at 10:10 Baptiste Mathus  wrote:

> There's a sysprop for that, but normally only for development mode.
> But, NOT FOR KIDS, you can confuse things by forcing it to dev mode.
>
> Probably reasonable for continuously starting from scratch from the docker
> container only, not for prod use obviously (beware that you may trigger
> weird behaviours w/ plugins that would use this property to change things
> for dev).
>
> $ docker run -p 8080:8080 --env JAVA_OPTS="-Dhudson.Main.development=true
> -Djenkins.install.runSetupWizard=false" jenkinsci/jenkins:2.0-beta-1
>
> 2016-03-31 22:44 GMT+02:00 Curt Bushko :
>
>> Hello,
>>
>> I am building a Docker container based on jenkinsci/jenkins:2.0-beta-1. I
>> am autofilling it in with jobs/pipelines but the annoying thing is that
>> every time I run the image I have to go through the setup wizard.
>>
>> How do disable this wizard so that my container will just be up and
>> running?
>>
>> Thanks!
>>
>> --
>> 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/149f107d-59d6-4f74-95bc-1b07742f8239%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/CANWgJS53SUUKuoT4qem%3Dj6sgNJ_X3XjXnOmFrE5-JZzyCjAU-Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui947kKui-ATTvXoNh7oaAAv0arvKiMxJ8ENL2xSiqbk6SoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: textbox in jellyscript

2016-03-14 Thread Richard Bywater
You might have more luck on the dev list

Richard.

On Tue, 15 Mar 2016 6:37 pm Irfan Sayed  wrote:

> please suggest
>
> On Mon, Mar 14, 2016 at 11:10 PM, Irfan Sayed 
> wrote:
>
>> Hello All,
>>
>> is there any way in jelly script to have a textbox and contents of the
>> same can drag and drop as per need.
>> for example, the list of IP addresses are there in text box and user
>> should be able to drag and drop the IP addresses as per need. user should
>> be able to change the order of IP addresses listed in the textbox.
>>
>> if we can not achieve this in jelly, what all other options we have ?
>> please suggest
>>
>> 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/CACGLCJb6Ur5FTzWHDGj2NTxJV4SkewVBc1GAMGTnn1o-K%2BWm8Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui945R_YW%2BpONCASRRLaq%2B3gTQynCuzL%2BNByXo3-dwy846yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any tutorials to setup Jenkins Pipeline CI/CD

2016-03-07 Thread Richard Bywater
https://github.com/jenkinsci/workflow-plugin/blob/master/TUTORIAL.md ?

Richard.

On Tue, 8 Mar 2016 at 19:38 Kaushal Shriyan 
wrote:

> Hi,
>
> Are there any tutorials to setup Jenkins Pipeline CI/CD on Linux? For
> example git scm -> jenkins -> maven build tool -> deploy to the environment
> Any help will be highly appreciable?
>
> Regards,
>
> Kaushal
>
> --
> 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/d71c4ffc-8799-4e9a-bbbf-8bcc213153db%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946Ru%3D%3DpEPsAOq0Rvm1JCwnSs_DH8O8NaCR7bVqxV15EhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: restart a nodejs app

2015-12-16 Thread Richard Bywater
I'm interested in why you would use Jenkins when cron would seem to be a
better fit?

Aside from that, you haven't said what OS/distro you are dealing with but
assuming that ovrc-dashboard-api follows the standard pattern then using
cron to run a shell script something like "service ovrc-dashboard-api stop
&& service ovrc-dashboard-api start" would probably do the trick.

Richard.

On Thu, 17 Dec 2015 at 15:11 GBANE FETIGUE  wrote:

> Hey Folks,
>
> I am trying to create a jenkins job to restart a nodeJs API that I am
> having on my server( /etc/init/ovrc-dashoard-api). that's job need to be
> running the job every hour(@hourly).
> again the app is a nodejs app and is located on a server.
> all i need is an idea how to restart the API (nodejs app) hourly by
> running a script .
>
> Thanks
>
> --
> 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/a567c634-213c-4739-9363-479d77a16414%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946-pxL1GWTN38KXbfRsjGPaNkHwZHSw0UU%3DHoXmGmpmoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: which logo do you like best?

2015-12-14 Thread Richard Bywater
Personally I like #6 the best.

On Tue, 15 Dec 2015 at 08:17 Alyssa Tong  wrote:

> Hello,
>
> Planning is underway for Jenkins World 2016 in Santa Clara, CA. This will
> be a three days Jenkins conference for 2016.  I wanted to solicit feedback
> for the new Jenkins World logo.  Attached are some options to choose from,
> let us know which logo you like best and if you have better pls do share.
>
> thnx
> alyssa
>
> --
> 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/CAC9wNaym__pi01BbBdr%3D6tWk0X7tdj7n2upUom%3D_WwpdJ692uA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui947XxrDyNCP2t7%3D-2%2BL%3DdmZFWsK5SVsK0S1HvbN5UPHBMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: GMail SMTP (aws: Re: How to Run Selenium Script With Jenkins through Git)

2015-12-03 Thread Richard Bywater
No problem. It would be nice for the SMTP message to be a bit clearer!

Richard.

On Fri, 4 Dec 2015 6:42 pm dhrumil shah <dhrumil.s...@attuneww.com> wrote:

> Yes Richard I have turn on authentication and now its working.
> So thank you very much for your suggestion.
>
>
> On Friday, December 4, 2015 at 1:49:06 AM UTC+5:30, Richard Bywater wrote:
>
>> Do you have 2-step authentication turned on? If so, as per the linked
>> support page, you'll need to create an app password specific to Jenkins.
>>
>> Richard.
>>
>> On Fri, 4 Dec 2015 at 02:24 dhrumil shah <dhrumi...@attuneww.com> wrote:
>>
> Hello Dirk,
>>>
>>> I have already done with that. but still got error like below
>>>
>>> Total time: 0 seconds
>>> Sending e-mails to: dhrumi...@attuneww.com
>>>
>>> ERROR: 534-5.7.14 
>>> <https://accounts.google.com/ContinueSignIn?sarp=1=1=AKgnsbvNu
>>> 534-5.7.14 
>>> I6hJ1YxeHWnRBhXXm7SKcIPRSjrd076wguNWiitc3gjR7zXONVMn_s0vAQlQOHhtRiPZfJ
>>> 534-5.7.14 
>>> d99B_1RyUzDX_N76DWban2v107flWnHV5HfrhxlTfl9TWUb1DkewOYzKNNkgei5I1vNaMj
>>> 534-5.7.14 
>>> M5KpJACjz2ZdWewlqP3KzGjLF83kCanBfS18tkbzXAzsNHb2q_5S723Jw3vQPhfO4WjvZo
>>> 534-5.7.14 Off0hglMFM6jNPcyus7Qa15sKMEA> Please log in via your web browser 
>>> and
>>> 534-5.7.14 then try again.
>>> 534-5.7.14  Learn more at
>>> 534 5.7.14  https://support.google.com/mail/answer/78754 
>>> w23sm10848158pfi.96 - gsmtp
>>> javax.mail.AuthenticationFailedException 
>>> <http://stacktrace.jenkins-ci.org/search?query=javax.mail.AuthenticationFailedException>:
>>>  534-5.7.14 
>>> <https://accounts.google.com/ContinueSignIn?sarp=1=1=AKgnsbvNu
>>> 534-5.7.14 
>>> I6hJ1YxeHWnRBhXXm7SKcIPRSjrd076wguNWiitc3gjR7zXONVMn_s0vAQlQOHhtRiPZfJ
>>> 534-5.7.14 
>>> d99B_1RyUzDX_N76DWban2v107flWnHV5HfrhxlTfl9TWUb1DkewOYzKNNkgei5I1vNaMj
>>> 534-5.7.14 
>>> M5KpJACjz2ZdWewlqP3KzGjLF83kCanBfS18tkbzXAzsNHb2q_5S723Jw3vQPhfO4WjvZo
>>> 534-5.7.14 Off0hglMFM6jNPcyus7Qa15sKMEA> Please log in via your web browser 
>>> and
>>> 534-5.7.14 then try again.
>>> 534-5.7.14  Learn more at
>>> 534 5.7.14  https://support.google.com/mail/answer/78754 
>>> w23sm10848158pfi.96 - gsmtp
>>>
>>> at 
>>> com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
>>> at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
>>> at 
>>> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
>>> at javax.mail.Service.connect(Service.java:317)
>>> at javax.mail.Service.connect(Service.java:176)
>>> at javax.mail.Service.connect(Service.java:125)
>>> at javax.mail.Transport.send0(Transport.java:194)
>>> at javax.mail.Transport.send(Transport.java:124)
>>> at hudson.tasks.MailSender.execute(MailSender.java:121)
>>> at 
>>> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1055)
>>> at hudson.model.Run.execute(Run.java:1788)
>>> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
>>> at hudson.model.ResourceController.execute(ResourceController.java:98)
>>> at hudson.model.Executor.run(Executor.java:381)
>>> Finished: FAILURE
>>>
>>>
>>>
>>> On Thursday, December 3, 2015 at 6:49:36 PM UTC+5:30, Dirk Heinrichs
>>> wrote:
>>>
>>>> Am 03.12.2015 um 14:04 schrieb dhrumil shah:
>>>>
>>>> I have tried with number of ways but it gives error. Here I have attached 
>>>> screenshot of my configuration. So can you please check
>>>> and update me what was the issue here.
>>>>
>>>>
>>>> Guess you need to check "Use SSL".
>>>>
>>>> HTH...
>>>>
>>>> Dirk
>>>>
>>>> PS: Please start new threads for new topics.
>>>>
>>> --
>>>>
>>>> *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
>>>> *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
>>>> *Tel*: +49 2226 159 (Ansage) 1149
>>>>
>>> *Email*: d...@recommind.com
>>>> *Skype*: dirk.heinrichs.recommind
>>>> www.recommind.com
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users"

Re: GMail SMTP (aws: Re: How to Run Selenium Script With Jenkins through Git)

2015-12-03 Thread Richard Bywater
Do you have 2-step authentication turned on? If so, as per the linked
support page, you'll need to create an app password specific to Jenkins.

Richard.

On Fri, 4 Dec 2015 at 02:24 dhrumil shah  wrote:

> Hello Dirk,
>
> I have already done with that. but still got error like below
>
> Total time: 0 seconds
> Sending e-mails to: dhrumil.s...@attuneww.com
>
> ERROR: 534-5.7.14 
>  534-5.7.14 
> I6hJ1YxeHWnRBhXXm7SKcIPRSjrd076wguNWiitc3gjR7zXONVMn_s0vAQlQOHhtRiPZfJ
> 534-5.7.14 
> d99B_1RyUzDX_N76DWban2v107flWnHV5HfrhxlTfl9TWUb1DkewOYzKNNkgei5I1vNaMj
> 534-5.7.14 
> M5KpJACjz2ZdWewlqP3KzGjLF83kCanBfS18tkbzXAzsNHb2q_5S723Jw3vQPhfO4WjvZo
> 534-5.7.14 Off0hglMFM6jNPcyus7Qa15sKMEA> Please log in via your web browser 
> and
> 534-5.7.14 then try again.
> 534-5.7.14  Learn more at
> 534 5.7.14  https://support.google.com/mail/answer/78754 w23sm10848158pfi.96 
> - gsmtp
> javax.mail.AuthenticationFailedException 
> :
>  534-5.7.14 
>  534-5.7.14 
> I6hJ1YxeHWnRBhXXm7SKcIPRSjrd076wguNWiitc3gjR7zXONVMn_s0vAQlQOHhtRiPZfJ
> 534-5.7.14 
> d99B_1RyUzDX_N76DWban2v107flWnHV5HfrhxlTfl9TWUb1DkewOYzKNNkgei5I1vNaMj
> 534-5.7.14 
> M5KpJACjz2ZdWewlqP3KzGjLF83kCanBfS18tkbzXAzsNHb2q_5S723Jw3vQPhfO4WjvZo
> 534-5.7.14 Off0hglMFM6jNPcyus7Qa15sKMEA> Please log in via your web browser 
> and
> 534-5.7.14 then try again.
> 534-5.7.14  Learn more at
> 534 5.7.14  https://support.google.com/mail/answer/78754 w23sm10848158pfi.96 
> - gsmtp
>
>   at 
> com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
>   at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
>   at 
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
>   at javax.mail.Service.connect(Service.java:317)
>   at javax.mail.Service.connect(Service.java:176)
>   at javax.mail.Service.connect(Service.java:125)
>   at javax.mail.Transport.send0(Transport.java:194)
>   at javax.mail.Transport.send(Transport.java:124)
>   at hudson.tasks.MailSender.execute(MailSender.java:121)
>   at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1055)
>   at hudson.model.Run.execute(Run.java:1788)
>   at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
>   at hudson.model.ResourceController.execute(ResourceController.java:98)
>   at hudson.model.Executor.run(Executor.java:381)
> Finished: FAILURE
>
>
>
> On Thursday, December 3, 2015 at 6:49:36 PM UTC+5:30, Dirk Heinrichs wrote:
>
>> Am 03.12.2015 um 14:04 schrieb dhrumil shah:
>>
>> I have tried with number of ways but it gives error. Here I have attached 
>> screenshot of my configuration. So can you please check
>> and update me what was the issue here.
>>
>>
>> Guess you need to check "Use SSL".
>>
>> HTH...
>>
>> Dirk
>>
>> PS: Please start new threads for new topics.
>>
> --
>>
>> *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
>> *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
>> *Tel*: +49 2226 159 (Ansage) 1149
>>
> *Email*: d...@recommind.com
>> *Skype*: dirk.heinrichs.recommind
>> www.recommind.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/fa006555-8dee-40c5-acfb-e2881cd257b2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946fhoq%2B0ghs9vOcv2NdWF0p9SLNVmpZ3utjDQkmcaVhoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins ignoring No Host proxy setting

2015-11-16 Thread Richard Bywater
What style of values do you have? Do you have hostnames or wildcards? Bear
in mind that the format for wildcards is *.mydomain.com rather than .
mydomain.com like you'd find in a *nix style no_proxy variable.

Richard.

On Tue, 17 Nov 2015 at 10:41 Yout Me <aki...@gmail.com> wrote:

> Do I need to configure anything else if so please let me know
>
> thanks
>
>
>
> On Monday, November 16, 2015 at 1:28:35 PM UTC-6, Richard Bywater wrote:
>
>> To confirm, how & where did you specify the no host proxy setting?
>>
>> Richard
>>
>> On Tue, 17 Nov 2015 7:48 am Yout Me <aki...@gmail.com> wrote:
>>
> Hi,
>>> Issue:  Jenkins is going through the proxy even though I setup the No
>>> Host proxy.
>>> Jenkins version 1.554.3 ,
>>> JDk 6
>>> To integrage Jenkins with Sonatype Nexus CLM
>>> Sonatype CLM for CI Plugin 2.14.2-01
>>>
>>> Please help
>>>
>>> Thanks in advance
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/b588be1b-d1f8-4607-9e9c-79a25951ad0f%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/b588be1b-d1f8-4607-9e9c-79a25951ad0f%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/f262a9e5-167a-4705-a606-ed45fd5681d7%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/f262a9e5-167a-4705-a606-ed45fd5681d7%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui946aKox5gx3nBWXc1WuJ58%3DtJfTDp04O1%3D1Z0eg-k68ugw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins ignoring No Host proxy setting

2015-11-16 Thread Richard Bywater
To confirm, how & where did you specify the no host proxy setting?

Richard

On Tue, 17 Nov 2015 7:48 am Yout Me  wrote:

> Hi,
> Issue:  Jenkins is going through the proxy even though I setup the No Host
> proxy.
> Jenkins version 1.554.3 ,
> JDk 6
> To integrage Jenkins with Sonatype Nexus CLM
> Sonatype CLM for CI Plugin 2.14.2-01
>
> Please help
>
> Thanks in advance
>
> --
> 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/b588be1b-d1f8-4607-9e9c-79a25951ad0f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944zhURfSdLykVowQdugePAsMgUih-g_xCXby9%2BEDMvmCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can we install SonarQube and Jenkins on same machine(VM) ?

2015-10-19 Thread Richard Bywater
You can install as much as you want on the same machine but the main issue
is going to be if you have enough memory and cpu to serve both apps
properly.

Richard.

On Tue, 20 Oct 2015 12:03 am Ramesh Udari 
wrote:

> Hi,
>
> We have SonarQube server which running on linux VM and we are planning to
> use Jenkins for CI integration purpose with SonarQube. So, here question is
> that, can we install both SonarQube and Jenkins on same Linux Server (VM)
> ?. If yes, do we have pros and cons with this approach?. Kindly do suggest
> on it.
>
> Regards,
> Ramesh
>
> --
> 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/0067c010-146a-42ce-83d6-0fb045b74484%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944JpL3LRbO__aqDcGEZ4tvmUveQResTtJgXwXozwWW5yQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: docker connectivity issue

2015-10-18 Thread Richard Bywater
You shouldn't be pointing it at Port 22 as that's the SSH port. You'll need
to check which tcp port you've got your Docker daemon listening on for
Docker API calls.

Richard.

On Mon, 19 Oct 2015 5:38 pm Irfan Sayed <irfu.sa...@gmail.com> wrote:

> update:
> on the build slave configuration , i have set the following variable:
>
> variable : DOCKER_HOST
> value : tcp://192.168.102.28:22
> does it suffice ?
>
> Do i need to set DOCKER_TLS_VERIFY variable ?
>
> Regards
>
>
>
> On Mon, Oct 19, 2015 at 7:36 AM, Irfan Sayed <irfu.sa...@gmail.com> wrote:
>
>>
>> thanks.
>> when i ssh to slave box (docker host), i can run following comamnd
>>
>> [root@localhost ~]# docker images
>> REPOSITORY  TAG IMAGE ID
>> CREATED  VIRTUAL SIZE
>> centos7try10latest  482d7f9db0fcLess than a
>> second ago   999.4 MB
>> 086ff303fac0Less than a
>> second ago   453.3 MB
>> centos7try1 latest  5632e539e10fLess than a
>> second ago   998.9 MB
>> docker.io/centoscentos7 ce20c473cd8aLess than a
>> second ago   172.3 MB
>> jenkins_slave   latest  a8ec8904386f7 hours
>> ago  172.8 MB
>> 2249793a098a7 hours
>> ago  277.4 MB
>>
>> just want to re-iterate , slave box and docker host are same box and i am
>> just connecting to slave from jenkins master using ssh 22 port
>> and using docker plugin to build image form Dockerfile
>>
>> please suggest
>>
>> Regards
>>
>>
>>
>> On Mon, Oct 19, 2015 at 3:07 AM, nicolas de loof <
>> nicolas.del...@gmail.com> wrote:
>>
>>> Can you run docker commands without setting -H ?
>>> In this case docker will use /var/run/docker.sock unix socket and not
>>> rely on TLS for security, which is the default behavior for access to local
>>> daemon.
>>> docker plugins will work the same in such a setup, and you don't have to
>>> set a docker host in your jenkins configuration but just let plugin access
>>> local daemon.
>>>
>>> 2015-10-18 20:30 GMT+02:00 Irfan Sayed <irfu.sa...@gmail.com>:
>>>
>>>> further update :
>>>>
>>>> here is the docker process and running and it's PID
>>>>
>>>> [root@localhost docker]# ps -ef | grep docker
>>>> root  1623 1  0 12:11 ?00:00:28 /usr/bin/docker -d
>>>> --selinux-enabled
>>>> root  3480  3415  0 12:54 ?00:00:00 bash -c cd
>>>> "/tmp/workspace/docker" && java  -jar slave.jar
>>>> root 12299 11158  0 23:00 pts/200:00:00 grep --color=auto docker
>>>>
>>>> further, if i run following command:
>>>>
>>>> [root@localhost docker]# docker -H=tcp://192.168.102.28:22 images
>>>> Get http://192.168.102.28:22/v1.19/images/json: malformed HTTP
>>>> response "SSH-2.0-OpenSSH_6.4". Are you trying to connect to a TLS-enabled
>>>> daemon without TLS?
>>>>
>>>> regards
>>>>
>>>>
>>>>
>>>>
>>>> On Sun, Oct 18, 2015 at 11:39 PM, Irfan Sayed <irfu.sa...@gmail.com>
>>>> wrote:
>>>>
>>>>> i have just ssh (using port 22) to connect to docker host which is
>>>>> nothing but slave box
>>>>> this is what i have done.
>>>>>
>>>>> i haven't specified any docker URL. In job configuration, i have just
>>>>> given the path of Dockerfile and trying to build the image from that
>>>>> Dockerfile
>>>>>
>>>>> please suggest
>>>>>
>>>>> Regards
>>>>>
>>>>>
>>>>> On Sun, Oct 18, 2015 at 11:31 PM, Richard Bywater <rich...@byh2o.com>
>>>>> wrote:
>>>>>
>>>>>> Have you specified the port 22 from that Docker URL or are the
>>>>>> plug-ins doing that as port 22 isn't  right for Docker.
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>> On Sun, 18 Oct 2015 11:22 pm Irfan Sayed <irfu.sa...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>> hi all,
>>>>>>>
>>>>>>> I am trying to provision the build containers

Re: docker connectivity issue

2015-10-18 Thread Richard Bywater
Have you specified the port 22 from that Docker URL or are the plug-ins
doing that as port 22 isn't  right for Docker.

Richard

On Sun, 18 Oct 2015 11:22 pm Irfan Sayed  wrote:

>
> hi all,
>
> I am trying to provision the build containers dynamically using docker . i
> have installed jenkins master along with docker plugins . build slave is
> docker host and all are running on unix setup : centos : 6.5
>
> here is my setup:
>
> Jenkins master : 1.633
> cloudbees docker build and publish plugin : 1.0.1
> cloudbees docker custom build env plugin : 1.6.1
> docker commons plugin : 1.2
> docker build step : 1.31
> kubernetes plugin : 0.4.1
>
> I have deployed the docker host and created Dockerfile. i am able to build
> docker image using Dockerfile on the docker host and run in the container
> however, from jenkins master , whenever i am trying to connect to docker
> host and build docker image using docker plugin , i am getting following
> error
>
> Started by user anonymous 
> Building remotely on 192.168.102.28 
>  in workspace 
> /tmp/workspace/docker
> $ docker inspect 43728998fde0187a1f0b526fef5e2db9b02796a3
> []
> Build Docker image from /tmp/workspace/docker/Dockerfile ...
> $ docker build --tag 43728998fde0187a1f0b526fef5e2db9b02796a3 --file 
> Dockerfile /tmp/workspace/docker
> Sending build context to Docker daemon 497.2 kB
>
> Sending build context to Docker daemon
> Post 
> http://192.168.102.28:22/v1.19/build?cgroupparent==0=0===0=Dockerfile=0=0=1=43728998fde0187a1f0b526fef5e2db9b02796a3:
>  malformed HTTP response "SSH-2.0-OpenSSH_6.4". Are you trying to connect to 
> a TLS-enabled daemon without TLS?
> FATAL: Failed to build docker image from project 
> Dockerfilejava.lang.RuntimeException 
> : 
> Failed to build docker image from project Dockerfile
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.Docker.buildImage(Docker.java:121)
>  
> 
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.DockerfileImageSelector.prepareDockerImage(DockerfileImageSelector.java:41)
>  
> 
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:152)
>  
> 
>   at hudson.model.Build$BuildExecution.doRun(Build.java:156) 
> 
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) 
> 
>   at hudson.model.Run.execute(Run.java:1741) 
> 
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
> 
>   at hudson.model.ResourceController.execute(ResourceController.java:98) 
> 
>   at hudson.model.Executor.run(Executor.java:408) 
> 
> Finished: FAILURE
>
> i am not getting what is the triggering point for :
>
>
> *Are you trying to connect to a TLS-enabled daemon without TLS?*
>
> can someone please suggest
>
> Regards
>
> Irfan
>
> --
> 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/CACGLCJZxveD-sjASD5-oFtE8B%2BXY3xavbz9C0SLur0_dT3xaOQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui9447zbD3yn9ZEqSOti5%2Bz_yENjn%2BRNTL%2Brv6SXSe85_sbw%40mail.gmail.com.
For more options, visit 

Re: Distribution Groups from Outlook

2015-10-12 Thread Richard Bywater
The plugin just sends emails via normal SMTP based mail protocols so if the
distribution group has an "internet" email address (e.g.
yourgr...@yourcompany.com) then there's no reason for it not to work as
long as the distribution group is allowed to receive emails from the
"outside".

Richard.

On Tue, 13 Oct 2015 at 11:11 rqui  wrote:

> Hello,
>
> Does Jenkins (newer than v1.580) support the ability to use distribution
> groups from Outlook in the email-ext plugin?
>
> Thanks.
>
> --
> 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/f3d729d8-bd52-48d2-8669-8ac612adc306%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui947-BjWg-TBQrNQFM9CmnPRJaTn-B4-zC2%3D8i-tYQ9YP%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins HTTP frontend not acceccable, jenkins/java service needs most CPU/RAM capacity on jenkins service

2015-09-28 Thread Richard Bywater
Argh - sorry folks. Looks like Inbox decided to requote the entire blob of
stuff again :/

Richard.

-- 
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/CAMui947iX6-MipLP3PSpzS7e-pOrHU1jTu6HVN777QLgZx2poQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Connecting to irc freenode from jenkins

2015-09-10 Thread Richard Bywater
Seems to me you are trying to connect to the server that hosts the web
version of the Freenode IRC. You should be using one of the servers listed
on https://freenode.net/irc_servers.shtml

But I must ask, why are you trying to get your Jenkins to talk to the
Jenkins channel on IRC??

Richard.

On Thu, 10 Sep 2015 at 22:03 Ajnish Kumar  wrote:

> i M getting this error after build of job
>
> IRC notifier plugin: [ERROR] not connected. Cannot send message to '#jenkins'
>
>
> On Thursday, September 10, 2015 at 3:29:01 PM UTC+5:30, Ajnish Kumar wrote:
>>
>> Hi Guys,
>>
>> I am trying to connect to  http://webchat.freenode.net/?channels=jenkins
>>  form the jenkins on windows.
>>
>> For that i am doing the configuration
>>
>> Host : webchat.freenode.net
>> port : 6667
>> channel : #jenkins
>>
>> But  Jenkins is not get connected. Please tell me the path what i need to
>> do extra or i am doing some Mistake.
>>
>> Thanks and Regards
>>   Ajnish kumar
>>
>>
> --
> 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/5b985439-d79c-470e-99e5-eb046bc4adf6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944dskEvNYVGzu66v_VHmB1%2Bo8AzLQtc1M1jBr_r8v4RBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: 3rd party packages version control

2015-08-31 Thread Richard Bywater
You might want to provide more details like what language and build system
you are using otherwise it's quite hard to help.

Richard

On Tue, 1 Sep 2015 12:39 am Amit Bhardwaj  wrote:

> Hello Group !!
>
> I am in process of evaluation and implementing Jenkins and so far
> successful in almost everything I intended. Here is an important task on
> which I need your expert opinions.
>
> Is there any way I can take care of 3rd party packages and list them with
> each build? Something like a list or file that has the 3rd party packages
> list with its version respectively so that in future if I want to get code
> base for some build #, I also know what version of 3rd party packages I
> used at that time.
>
> I agree requirement seems to be a bit unclear as I am unsure if Jenkins is
> the right tool that can help me in this. Please let me know if you need any
> further inputs from my side.
>
> Simply put, I want list of 3rd party tools we have at the time of build
> with version of all 3rd party packages.
>
> --
> ​Thanks and ​
> R
> ​​
> egards,
> AB
>
> --
> 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/CAKs7jXLWv0L6quui9jto7Uz%3DsgD52OT8a0fHb4xqMUHjTRdO3w%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMui944g%2BE4bUnSOg5Vc1d3QTucA0KBUBBsQM9bDUDgXqACseg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: move jenkins enterprise license to another VM

2015-08-26 Thread Richard Bywater
Hi

This question is best put directly to CloudBees support.  This list is for
discussion about the Open Source representation of Jenkins.

Richard.

On Thu, 27 Aug 2015 5:15 pm Binoj MN binoj...@gmail.com wrote:

 What is the procedure to move the enterprise license from one VM to
 another VM?

 The idea is to Decommission to old Jenkins server and configure it in new
 VM.

 Please let me know.

 --
 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/e1b5a86e-5d53-4ab7-9266-ff75444c8649%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/e1b5a86e-5d53-4ab7-9266-ff75444c8649%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui945BtgxZSXmT1oo0%2BAPSnYtMk2bfi1EOTtoZ%3Di13OMkvuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Remote Build Using Curl

2015-08-21 Thread Richard Bywater
Or given that assuming you really want to use curl, presumably you could
reference the code base of those projects to try and see how to do it :)

Richard.

On Sat, 22 Aug 2015 6:33 am Khai Do zaro0...@gmail.com wrote:

 If you don't mind using Python, both the python-jenkins and jenkinsapi
 packages can do this for you pretty easily.  Both are wrappers around the
 Jenkins REST api so basically exactly what you are trying to do with curl.


 On Thursday, August 20, 2015 at 9:28:57 AM UTC-7, Greg Nifor wrote:

 Caused by: java.lang.NullPointerException
 at
 hudson.model.FileParameterValue.lt;init(FileParameterValue.java:78)


 On Thursday, August 20, 2015 at 9:23:53 AM UTC-7, Greg Nifor wrote:

 Update: Still doesn't work

 json='{parameter: [{name: text, value: AA}, {name: file,
 value: file0}]}'
 url=url
 curl $url -F file0=@file_path -F json=$json -u user:pass


 On Monday, August 17, 2015 at 2:42:58 PM UTC-7, Daniel Beck wrote:

 How to trigger a build with parameters is explained on the
 /job/JOBNAME/api URL in Jenkins -- the wiki page on the topic is a bit
 weird.

 On 17.08.2015, at 22:39, Walter Kelt wak...@comcast.net wrote:

  Just looked at the Jenkins remote access api. Looks like file and
 parameters need to be passed into curl in a json format. Not sure what
 Jenkins version you are using, but you may want to check it out.
 
  If you are doing a parametrized build it looks to be a little more
 complicated and I don't see an example using -F
 
  Sent from my iPad
 
  On Aug 17, 2015, at 4:11 PM, Greg Nifor whiteho...@gmail.com
 wrote:
 
  The job I'm triggering has two parameters, git and root. The curl
 sets those and I'm able to use those in my execute shell step.
 
  On Monday, August 17, 2015 at 12:57:38 PM UTC-7, walter.kelt wrote:
  Hmmm..when issuing a multipart form submission,  i wouldn't expect
 the multipart parameters to become Linux shell variables unless the code
 receiving the http request took the parameters and made them so. Does your
 http endpoint do so ? Seems I am missing something.
 
  Sent from my iPad
 
  On Aug 17, 2015, at 3:45 PM, Greg Nifor whiteho...@gmail.com
 wrote:
 
  Linux, there's no errors. The command goes through, but Jenkins
 doesn't pick up on the variables when I echo them out this is the output:
 
  12:31:06
  + echo
 
  12:31:06
  12:31:06
  + echo root
 
  12:31:06 root
 
  Top one echos git and the second one echoes root (it's default
 value is root)
  echo $git
  echo $root
 
  On Monday, August 17, 2015 at 12:32:48 PM UTC-7, walter.kelt wrote:
  What was the error message ?  paste the most current command. Also,
 windows or Linux ?
 
  Sent from my iPad
 
  On Aug 17, 2015, at 3:27 PM, Greg Nifor whiteho...@gmail.com
 wrote:
 
  That didn't work.
 
  On Monday, August 17, 2015 at 12:19:24 PM UTC-7, walter.kelt
 wrote:
  I think you need quote signs around each of the  -F itemssuch
 as -F git=test
 
  Sent from my iPad
 
  On Aug 17, 2015, at 3:15 PM, Greg Nifor whiteho...@gmail.com
 wrote:
 
  curl -X POST localhost/job/Test/buildWithParameters -u user:pass
 -F git=test -F root=root1
 
 
 
 
  On Monday, August 17, 2015 at 12:11:08 PM UTC-7, walter.kelt
 wrote:
  Please paste your full curl command
 
  Sent from my iPad
 
  On Aug 17, 2015, at 3:06 PM, Greg Nifor whiteho...@gmail.com
 wrote:
 
  When I try that the variables are empty.
 
  On Monday, August 17, 2015 at 11:49:09 AM UTC-7, walter.kelt
 wrote:
  You need to use -F for file and -F for data.
 
  Sent from my iPad
 
  On Aug 17, 2015, at 2:41 PM, Greg Nifor whiteho...@gmail.com
 wrote:
 
  Is there a way to use curl to send both a file and string
 parameter. I can do each individually, but not together.
 
  Works:
 
  curl -X POST jenkins_url/job/job/buildWithParameters -u
 user:password -F file=@/path/to
 
  curl -X POST jenkins_url/job/job/buildWithParameters -u
 user:password --data string0=foo --data string1=bar
 
  Doesn't Work:
 
  curl -X POST jenkins_url/job/job/buildWithParameters -u
 user:password -F file=@/path/to --data string0=foo --data string1=bar
 
  The result I get is: Warning: You can only select one HTTP
 request!
 
 
  Any ideas?
 
 
  --
  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-use...@googlegroups.com.
  To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/65067202-61bf-40b8-8509-376d5ae79589%40googlegroups.com.

  For more options, visit https://groups.google.com/d/optout.
 
  --
  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-use...@googlegroups.com.
  To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/f0a472a1-78f1-4a96-a15c-cf116565cdf8%40googlegroups.com.

  For more options, 

Re: Automated installers testing

2015-08-19 Thread Richard Bywater
Basically if you can code / script it then Jenkins can do it. I'd start by
getting a scripted thing up and running and then you can have Jenkins call
that script when things change etc.

Richard.

On Wed, 19 Aug 2015 8:43 pm 'Pulkit Lall' via Jenkins Users 
jenkinsci-users@googlegroups.com wrote:

 Hi All,
 I have a scenario where I think Jenkins could help me a lot if its
 possible I did my best to explain the scenario but if there are still
 any questions, I will be glad to answer them.

 I have multiple jobs in Jenkins which are compiling code, creating
 installers (Windows and Linux), creating artifacts for both Windows and
 Linux platforms.

 Now, after the builds are complete, I have to manually install them to
 verify if the installer is proper and that the options like Complete,
 Custom installations are working properly, all files are present or not.

 This takes a lot of time to do for all the installers for both OS.

 Is there a way in Jenkins where I could run a job which will copy the
 installers, install in the appropriate slave, check for the number of files
 or something like that which will verify from sort of benchmark, try out
 different types of installations like Complete, Custom, Repair and
 also check for Uninstallation part.

 Any help on this would be appreciated.

 --
 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/03fd35e6-e230-46a6-9590-9a9333ae37fc%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/03fd35e6-e230-46a6-9590-9a9333ae37fc%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui945K6hvb30crCGVswoyFZ5G0cf5uYV5W3RmwVZcqBf0YWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Grails Jenkins CI not working

2015-08-19 Thread Richard Bywater
The other alternative is to use the legacy version of the directory (e.g.
C:\Progra~1\...)  I think you'll find it by doing a dir /x c:\ on the
commant prompt.

Richard.

On Thu, 20 Aug 2015 at 15:35 Sanjay Lama sanjay.lama2...@gmail.com wrote:

 Hello there!!

  I put quotes in work dir. But, now I am getting following error:

 ERROR: Build step failed with 
 exceptionorg.codehaus.groovy.control.MultipleCompilationErrorsException 
 http://stacktrace.jenkins-ci.org/search?query=org.codehaus.groovy.control.MultipleCompilationErrorsException:
  startup failed:
 Script1.groovy: 1: expecting EOF, found 'C' @ line 1, column 10.
return C:/Program Files (x86)/Jenkins/jobs/test1/workspace/target
 ^

 1 error

   at 
 org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
   at 
 org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149)
   at 
 org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119)
   at 
 org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131)
   at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359)
   at 
 org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:142)
   at 
 org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:108)
   at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236)
   at 
 org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:161)
   at 
 org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:846)
   at 
 org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:550)
   at 
 org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:526)
   at 
 org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:503)
   at 
 groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302)
   at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281)
   at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731)
   at groovy.lang.GroovyShell.parse(GroovyShell.java:743)
   at groovy.lang.GroovyShell.evaluate(GroovyShell.java:578)
   at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
   at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
   at com.g2one.hudson.grails.GrailsBuilder.eval(GrailsBuilder.java:337)
   at com.g2one.hudson.grails.GrailsBuilder.perform(GrailsBuilder.java:237)
   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
   at 
 hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
   at hudson.model.Build$BuildExecution.build(Build.java:205)
   at hudson.model.Build$BuildExecution.doRun(Build.java:162)
   at 
 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
   at hudson.model.Run.execute(Run.java:1741)
   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
   at hudson.model.ResourceController.execute(ResourceController.java:98)
   at hudson.model.Executor.run(Executor.java:381)
 Build step 'Build With Grails' marked build as failure
 Finished: FAILURE


 *Could you please help me out? :)*

 --
 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/687d663d-6cc5-49a1-928b-71b80fc8d5f9%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/687d663d-6cc5-49a1-928b-71b80fc8d5f9%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui947ktzP%2BFj1BWMxijUT%3DDXvLp4hcfJwxRPY8YSG0qtY-XQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins On Virtual Machine problem

2015-08-17 Thread Richard Bywater
So the tests run slow when you don't run with Jenkins too? If they do you
might be best asking on a webdriver related forum.

Richard.

On Mon, 17 Aug 2015 6:25 pm Lilach Arviv lilach...@gmail.com wrote:

 Hello,


 we have 3 physical machines in our company and Server machine.
 when we run 50 tests in the physical machines (Web tests + Java + Selenium
 Webdriver) the scenario end in chrome after 1.5 H, in FF after 2 H.
 the physical machines have ssd drive and 8 GB Ram


 When we use new server we bought with Feature:

 *The host's configuration:*

 · *OS*: Windows Server 2012 R2 Standard

 · *Model*: Dell PowerEdge R320

 · *Memory*: 96GB (6x 16GB Dual Rank RDIMMs 1600)

 · *Disks*: 2x 2TB Constellation ES.3 SATA 7200RPM disks, RAID 1
 (Mirror)

 · *Processor*: Intel Xeon CPU E5-2407 v2 @ 2.40GHz 2.40 GHz

 · *Hypervisor*: Hyper-V 2012 R2

 · *Networking*: 2x Broadcom NetXtreme Gigabit Ethernet (Microsoft
 Hyper-V Teaming)



 *The VMs' configuration:*

 · *OS*: Windows 7 Professional x64 SP1

 · *Memory*: 8GB

 · *CPU*: 4 vCPU


 the 50 tests in chrome end after 2.5 H

 in FF after 5-6 H.


 all the machines are very slow.

 Did someone Encountered this problem?



 Thanks Lilach

 --
 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/163a29c6-ed56-4758-9d0b-3a2bb2353381%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/163a29c6-ed56-4758-9d0b-3a2bb2353381%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui946A8M%2B2%3DaMj%3DfqWUX1oPCqDB-_VTuxjhYGfY5uU%3DXnpzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrade Jenkins

2015-07-23 Thread Richard Bywater
You'll need to provide a bit more detail about your Jenkins setup for
someone to help. (For instance are you running via a WAR install or via a
OS package install)

Richard.

On Thu, 23 Jul 2015 at 22:16 Sara Walawage saraa...@gmail.com wrote:

 How to upgrade the existing jenkins to latest jenkins?

 --
 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/276916fc-1139-4e97-a885-3a452f5b2a14%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/276916fc-1139-4e97-a885-3a452f5b2a14%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui944E7ziyCKjQ38CftK_0Amk1NNrXLxA6jpcer4E%2BYmZ_2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running build does not provision docker salve

2015-07-19 Thread Richard Bywater
Great - glad I could help.

Would be interested in your experiences of using the Docker plugin as I've
had issues with it not sparking off more than one instance of a particular
label at a time (e.g. if there's a build already running with a mylabel
build a second build would just sit there and wait for the first one to
complete). Interested to hear if this happens with you as well or if its
just my setup at fault (as I've been unable to reliably diagnose the issue).

Richard.

On Sun, 19 Jul 2015 at 21:43 Markus Fischer markus.priv...@gmail.com
wrote:

 Hello Richard,


 On Sunday, July 19, 2015 at 12:40:52 AM UTC+2, Richard Bywater wrote:

 You'll need to restrict the job to the label you gave in the Image
 configuration section (mylabel in your case)

 I haven't used the Docker Container option but I think that is for when
 you want to save the container for future use after the job run is complete.


 thank you so much, that's it!

 Within the General Jenkins configuraiton In the Docker Template
 configuration for the Labels it says in the help: Labels (AKA tags) are
 used for grouping multiple slaves into one logical group...

 In the specific job configuration, as part of the Docker container
 option it also has a Additional tags to add field, which I thought was
 supposed to be this field.

 But you're right, it's actually another field: Restrict where this
 project can run which also features an autocomplete, showing my label/tag.
 I guess my unfamiliarity with this functionality led to my confusion. This
 now works, thanks!

 - Markus


  --
 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/01ba4619-4b12-4b15-9aea-437464bea88e%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/01ba4619-4b12-4b15-9aea-437464bea88e%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui944wNYRutgqkRWLLwzgG%3DTD6y4s1ewDus%3DZ2a_sj8Z2nLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to make jenkins job wait until schedule task completes

2015-07-18 Thread Richard Bywater
Can you not just execute the job that is run via the scheduler directly
from Jenkins?

Richard.

On Wed, 8 Jul 2015 at 05:41 latha@gmail.com wrote:

 Hello all,

 I am launching a schedule task in windows server 2008 through* schtask*
 command in Jenkins job.

 What is happening is , the job launches the schedule task and then says
 build successful. . I am looking for a way for the job to wait until the
 schedule task completes.

 Any inputs on this?

 Thanks in advance,
 latha.

 --
 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/8c1b6543-85c5-48db-99f5-18bcef364094%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/8c1b6543-85c5-48db-99f5-18bcef364094%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui944y%3DUT%3D0sY72abfR9nDnRh4s4_P1V_YF%3DtbecocQm4a0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running build does not provision docker salve

2015-07-18 Thread Richard Bywater
You'll need to restrict the job to the label you gave in the Image
configuration section (mylabel in your case)

I haven't used the Docker Container option but I think that is for when
you want to save the container for future use after the job run is complete.

Richard.

On Sun, 19 Jul 2015 at 06:58 Markus Fischer markus.priv...@gmail.com
wrote:

 I'm running Jenkins 1.609.1 with docker-plugin 0.10.0 to provision jenkins
 docker slave. Docker is 1.0.1 running on Ubuntu 14.04.

 I've created a customized docker images based on evarga/jenkins-slave per
 instruction on https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin
 (Shortcut : Pulling a Docker image).

 In my Jenkins configuration I've:

- added Docker to the Cloud area
- pointed to the local docker URL http://localhost:4243/ and also
configured docker appropriately (I can run Test connection and it reports
back 1.0.1)
- created a custom docker (my/jenkins:0.1) image using supervisord to
run SSH, MySQL, Postgres, ElasticSearch, PHP and NodeJS inside
- manually running the container, I can SSH inside with user
jenkins/jenkins
- I've also given the jenkins user inside the container password-less
sudo rights
- I've added a docker image to the Docker Template (as above:
my/jenkins:0.1) and provided the launch method via Docker SSH
launcher

 http://i.stack.imgur.com/Fxb4s.png

 In the job configuration:

- I've checked Docker container
- added my tag
- source code is connected via git checkout

 http://i.stack.imgur.com/3AFod.png

 When I run the job, only the git checkout is performed, but not on the
 slave but directly on the host:


 Started by user MyUser
 Building in workspace /var/lib/jenkins/workspace/Project-Core
   git rev-parse --is-inside-work-tree # timeout=10
 Fetching changes from the remote Git repository
   git config remote.origin.url g...@github.com:MyUser/Project-Core.git # 
 timeout=10
 Fetching upstream changes from g...@github.com:MyUser/Project-Core.git
   git --version # timeout=10
 using GIT_SSH to set credentials
   git -c core.askpass=true fetch --tags --progress 
 g...@github.com:MyUser/Project-Core.git +refs/heads/*:refs/remotes/origin/*
   git rev-parse refs/remotes/origin/master^{commit} # timeout=10
   git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
 Checking out Revision 96dcbc7aa615451448184493c499c14eeb7050cc 
 (refs/remotes/origin/master)
   git config core.sparsecheckout # timeout=10
   git checkout -f 96dcbc7aa615451448184493c499c14eeb7050cc
   git rev-list 1405ab6d96a395e53c80f6d7353e11bea93675bc # timeout=10
 Finished: SUCCESS


 There's no sign of even trying to provision the docker slave.


 What am I missing?


 thanks in advance,

 - Markus

 --
 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/22326685-942f-49ea-b513-0a14cd98d9bf%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/22326685-942f-49ea-b513-0a14cd98d9bf%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui947zECSz7-69uax8Uo-6_XFPi66ri%3DnK1qGxFSb%3DfvJ52w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publish to FTP not uploading

2015-07-11 Thread Richard Bywater
Are you using an absolute or relative directory?  Absolute directories
aren't allowed so if you are using one try changing to relative.

Richard.

On Sun, 12 Jul 2015 3:36 am Ditto Slash dittosl...@gmail.com wrote:

 I'm using the Publish to FTP plugin.
 I'm trying to upload /home/ditto/www/mods.zip to remote directory
 /subdomains/bdn/packs/.

 FTP: Connecting from host [ditto-debian-pc]
 FTP: Connecting with configuration [remote-server] ...
 FTP: Disconnecting configuration [remote-server] ...
 FTP: Transferred 0 file(s)
 Finished: SUCCESS

 And for some reason it's not uploading.

 I have all the settings in place, everything is working, the file exists, and 
 all that.

 WHY ISN'T IT UPLOADING?

  --
 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/15fe422c-b58e-48ae-a062-ae4ecc535fa7%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/15fe422c-b58e-48ae-a062-ae4ecc535fa7%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui944k1iJFJkEKdkRDhi0eutX%3D41x5dkLK-3Pme-JAGy046w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Upgrade/Install in OSx/Mac Yoshomite

2015-07-07 Thread Richard Bywater
Not sure where you've seen 2.2.0 as that isn't a Jenkins version number.

IMHO easiest way to manage Jenkins on MacOS is to install via homebrew but
others might have other better ways.

Richard.

On Wed, 8 Jul 2015 at 11:31 jairaj kamal jairaj.ka...@gmail.com wrote:

 Hi,

 I have current Jenkins in my Mac running on Yosemite with version 1.569
 and now see the latest version in market as 2.2.0, what is the way to
 upgrade Jenkins and move jobs from one to another ? I come to know that in
 some version there is automatic update (via Manage Jenkins link) but in
 some reviews saw that after upgrade the setup breaks hence want to setup
 things separate and then slowly move jobs from older to the latest. We are
 using GIT and this is to build iOS App binaries via Xcode with binaries
 taking care of swift files during the build. Also with older version we are
 facing issue where during the build, certificates get wiped out from
 Keychain store and we need to logout/login again to Jenkins server
 machine as the temp fix.

 Can somebody help !



  --
 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/41462563-a8c5-4b6a-9f3d-20e1bd98b9e5%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/41462563-a8c5-4b6a-9f3d-20e1bd98b9e5%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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/CAMui9463VpS3UHeK7ah3cviEu9cdjzdMTKSsKFvQPAQzy1jNaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   >