Jenkins Setup Wizard Fail with 'An error occurred during installation: No such plugin: cloudbees-folder'

2018-05-04 Thread masaru tsuchiyama
Hi,

Jenkins Setup Wizard failed with
 'An error occurred during installation: No such plugin: cloudbees-folder'
for Jeknkins 2.119 on Fedora 28.

I tried to install and setup Jenkins in the following procedures.
--
sudo wget -O /etc/yum.repos.d/jenkins.repo
https://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
sudo dnf install -y jenkins
sudo chkconfig jenkins on
sudo /etc/init.d/jenkins start
sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --reload

access http://locallhost:8080
paste the result of 'sudo cat
/var/lib/jenkins/secrets/initialAdminPassword' to the browser.

select 'Install Suggested Plugins'.

I got the following error.
An error occurred
An error occurred during installation: No such plugin: cloudbees-folder

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


Re: Exception when changing to directory, Finished: UNSTABLE

2018-05-04 Thread Saatviga Sudhahar
Hi,

Thank you Bjorn. After fixing the permissions to 755 i don't get the change 
directory error anymore.

But i get,

ERROR: Exception when publishing, exception message [java.io.IOException: 
inputstream is closed]
Build step 'Send files or execute commands over SSH' changed build result to 
UNSTABLE
Finished: UNSTABLE


I'm not sure why the inputstream is closed. i don't have any other open 
connections to the server.

Any thoughts on this?




Thanks



On Friday, 4 May 2018 13:07:49 UTC+1, Björn Pedersen wrote:
>
> Hi, 
> Did you carefully check ownership and access rights on this folder (on the 
> web server side)? Maybe it is not accessible by the user you use?
>
> Björn
>
> Am Freitag, 4. Mai 2018 13:41:47 UTC+2 schrieb Saatviga Sudhahar:
>>
>> I have specified the remote directory in the global settings already 
>> where I configure the connection to the SSH server.
>> Anyway thanks, I will look in to that. 
>>
>>
>>
>>
>> On Friday, 4 May 2018 11:04:01 UTC+1, Victor Martinez wrote:
>>>
>>> I'm not sure whether it will be related to  but it seems the remote 
>>> directory is required in the global settings:
>>>
>>>
>>> 
>>> Besides of that, I have not used that plugin for a while but you could 
>>> add some loggers (see 
>>> https://support.cloudbees.com/hc/en-us/articles/115002626172-Configure-Loggers-for-Jenkins
>>>  
>>> ) and see the logs of the class class 
>>> https://github.com/jenkinsci/publish-over-ftp-plugin/blob/4df38656ca19a60f94bc8c531fddf416fc06322b/src/main/java/jenkins/plugins/publish_over_ftp/BapFtpClient.java#L73
>>>  
>>>
>>> Cheers
>>>
>>>

-- 
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/1caa4aa5-90e5-4128-9331-aa8fec4ee5b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Groovy post build script trigger another project by name

2018-05-04 Thread Wender Oliveira
I would to like to create a logical Groovy script which in accord with some 
conditions trigger build  another project found by job name

def build = manager.build;

if(manager.build.getResult() == Result.SUCCESS){
   nivel = build.getBuildVariables().get("nivel");

   if(matcher != null && nivel == "completo"){
  //Here I would to get a Job by name
  //And build the job name
   }  
}


-- 
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/cce51146-d59e-49bd-b23c-7b769d50f99d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: kubernets plugin jnlp4

2018-05-04 Thread Edward Bond
Carlos,

After upgrading to the 1.9 of k8s for the host / ingress etc of the 
Jenkins backend. I haven’t seen a disconnection since. Maybe it was just the 
way 1.6 k8s was working. 


I will keep an eye on it.

- Ed


> On Apr 27, 2018, at 7:15 AM, Carlos Sanchez  wrote:
> 
> The exceptions may be irrelevant, what errors do you get in the build log?
> 
> On Fri, Apr 27, 2018, 04:25 Edward Bond  > wrote:
> Carlos, 
> 
>   Jenkins: Jenkins ver. 2.107.2 
>   kubernetes plugin: 1.6.0
>   Master log file: https://pastebin.com/SBs1iTpy 
> 
>   Using jnlp-slave:3.10-1
>   
> Kube svc
> >
> NAME  CLUSTER-IP   EXTERNAL-IPPORT(S) 
>  AGE
> jenkins-discovery 5/TCP195d
> jenkins-ui 80/TCP   195d
> 
> > Top part of docker file 
> FROM jenkins/jnlp-slave:3.10-1
> USER root
> 
> > 
> def runDefault(closure){
>   podTemplate(label: 'default-pod',
>   containers:
>   [
> containerTemplate(name: 'jnlp', image: 'build-agent:jnlp4',
>   command: "jenkins-slave",
>   resourceRequestCpu: '450m',
>   resourceLimitCpu: '850m',
>   resourceRequestMemory: '3400Mi',
>   resourceLimitMemory: '5608Mi',
>   args: '${computer.jnlpmac} 
> ${computer.name }'),
> containerTemplate(name: 'postgres', image: 'postgres:9.6.2'),
>   containerTemplate(name: 'elastic', image: 
> 'docker.elastic.co/elasticsearch/elasticsearch:6.2.3 
> '),
> containerTemplate(name: 'redis', image: 'redis:3.2.10')
>   ],
>   volumes: [
>   hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: 
> '/var/run/docker.sock'),
>   hostPathVolume(hostPath: '/usr/bin/docker', mountPath: 
> '/usr/bin/docker')
>   ]
>   ) {
> closure()
>   }
> }
> 
> I don’t know the fullness of what all the connection issues mean so I don’t 
> know what to do to fix it.
> 
> The k8s nodes are v1.6.7 running on kops in aws. 
> 
> 
> Any ideas why I am getting:
> java.nio.channels.ClosedChannelException
> at 
> org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:208)
> WARNING: IOHub#1: Worker[channel:java.nio.channels.SocketChannel[connected 
> local=/100.96.3.136:5  
> remote=100.96.2.194/100.96.2.194:49506 
> ]] / Computer.threadPoolForRemoting 
> [#248] for jenkins-slave-z19q3-vpgcb terminated
> java.nio.channels.ClosedChannelException
> at 
> org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
> at 
> org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179)
> at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:789)
> at 
> jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> 
> 
> Thanks again,
> 
> - Ed
> 
> 
> 
>> On Apr 24, 2018, at 10:44 AM, Edward Bond > > wrote:
>> 
>> Carlos,
>> 
>> Was this a known issue before? I will snapshot the drive and try the upgrade 
>> to the latest of everything next week. 
>> 
>> Maybe it is a kops / aws issue.
>> 
>> Thanks!
>> 
>> - Ed
>> 
>>> On Apr 24, 2018, at 4:54 AM, Carlos Sanchez >> > wrote:
>>> 
>>> All the plugin builds are running in GKE and I haven't experienced any 
>>> failed jobs for a while. Jenkins weekly and k8s latest release with default 
>>> jnlp image
>>> 
>>> On Mon, Apr 23, 2018 at 9:58 PM, Edward Bond >> > wrote:
>>> Hello All,
>>> 
>>> I am using Jenkins LTS, 2.107.2. with kubernetes plugin: 1.1.3, jnlp-2, 
>>> using kops inside aws. 
>>> 
>>> I have to have jnlp2-connect enabled because using jnlp4 has a higher 
>>> failure rate.
>>> 
>>> Currently I am getting abount a 80% success rate with my current setup. 
>>> When I upgraded ( 2 months ago ) to latest master and latest k8s plugin I 
>>> was having about a 15% success rate of builds.
>>> 
>>> WARNING: Failed to send back a reply to the request 
>>> hudson.remoting.Request$2@725700df
>>> hudson.remoting.ChannelClosedException: Channel 
>>> "hudson.remoting.Channel@7083e923:Channel to /100.96.3.149 
>>> ": channel is already closed
>>> at hudson.remoting.Channel.send(Channel.java:715)
>>> at hudson.remoting.Request$2.run(Request.java:377)
>>>   

Re: Jenkins groovy init script for sonarqube configuration

2018-05-04 Thread Victor Martinez
what version of the sonar plugin is installed? 

It looks like the current constructor is not just 5 parameters based but a 
lot of more:
- 
https://github.com/SonarSource/sonar-scanner-jenkins/blob/master/src/main/java/hudson/plugins/sonar/SonarInstallation.java#L59

Cheers

-- 
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/27d82b76-a87b-4b77-8710-a1dbe11eabb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins groovy init script for sonarqube configuration

2018-05-04 Thread ajaysingh29011986
I am trying to set sonarqube settings in Jenkins system property using 
groovy init script but I am getting below error. Can somebody help me to 
resolve this?

Error+

groovy.lang.GroovyRuntimeException: Could not find matching constructor for: 
hudson.plugins.sonar.SonarInstallation(java.lang.String, java.lang.String, 
java.lang.String, hudson.plugins.sonar.model.TriggersConfig, 
java.lang.String)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1732)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1532)


This is the script that I am using


import hudson.model.*import jenkins.model.*import 
hudson.plugins.sonar.SonarGlobalConfigurationimport 
hudson.plugins.sonar.*import hudson.plugins.sonar.model.TriggersConfigimport 
hudson.tools.*

def inst = Jenkins.getInstance()

println "--> Configuring SonarQube"
SonarGlobalConfiguration global = 
Hudson.instance.getDescriptorByType(SonarGlobalConfiguration.class)

def sonar_inst = new SonarInstallation(
"SonarQ",
"http://localhost:9000";,
"yy", // Token
new TriggersConfig(),
"")
// Only add ADOP Sonar if it does not exist - do not overwrite existing config
def sonar_installations = sonar_conf.getInstallations()
def sonar_inst_exists = false
sonar_installations.each {
installation = (SonarInstallation) it
if (sonar_inst.getName() == installation.getName()) {
sonar_inst_exists = true
println("Found existing installation: " + installation.getName())
}}
if (!sonar_inst_exists) {
sonar_installations += sonar_inst
sonar_conf.setInstallations((SonarInstallation[]) sonar_installations)
sonar_conf.save()}

-- 
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/dfc75f70-b6ae-4ed3-9a69-251f2e708c65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Antwort: Parallel Build issue

2018-05-04 Thread Christian . Beushausen
Hi Somshekar,

We had the same issue with our build environment and I saw that we had 2 
possible solutions.
1. 
https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties
 
amongst others gives you hudson.slaves.WorkspaceList which you can change 
to set a different token. 
2. use a ws(){} block in your pipeline to change to a different workspace. 
(for declarative Pipeline this is the customWorkspace option of the agent 
keyword (see. https://jenkins.io/doc/book/pipeline/syntax/#agent)

Since I don't control the Jenkins master in our project I used the second 
approach. Especially since I am building in parallel on the same node I am 
reusing the original workspace and all checked out sources and build in a 
new subdirectory of the workspace.

Hope this helps.
Christian

jenkinsci-users@googlegroups.com schrieb am 04.05.2018 07:53:42:

> Von: Somshekar C Kadam 
> An: jenkinsci-users@googlegroups.com
> Datum: 04.05.2018 07:54
> Betreff: Parallel Build issue
> Gesendet von: jenkinsci-users@googlegroups.com
> 
> Hi All, 
> 
> I have setup a parallel build using data pipeline. This build 
> machine is on VM. 
> 
> 
> pipeline {
>  
>  stages {
>  
> stage('ParallelBuild') {
> 
>parallel {
> 
>   stage(‘BuildIntel’) {
>   agent {
>..
>;;;
> 
>stage(‘BuildArm’) {
>agent {
> 
> 
> Workspace for Intel 
> 
> [‘BuildIntel’] 
> [CYELP_feature-3WJHZSTZRAESMPGCATYIL555HUF7XSCPTK2GXMGWNX7W5MCBMX4A]
> 
> Workspace for Arm
> [‘BuildARM’] 
> [CYELP_feature-3WJHZSTZRAESMPGCATYIL555HUF7XSCPTK2GXMGWNX7W5MCBMX4A@2
> 
> Build for Arm is failing 
> [‘BuildARM’] Error, you have an invalid character (@) in your 
> COREBASE directory path. Please move the installation to a directory
> which doesn't include any @ characters.
> 
> as it is same workspace dir wit @2 extra
> 
> to make it build I can create a separate dir in workspace and proceed. 
> Is it the right solution or any other fix is better please suggest 
> 
> thanks in advance
> 
> Regards
> Somshekar C Kadam
> 
> -- 
> 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/CALbGK-pAedn1a8aeFaMYq%3DPWsG44JvjRsqaOe_f-
> zUkYLHitWQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Mit freundlichen Gruessen/Best regards,

Christian Beushausen
I S&T PD SW SWF
Interior Systems & Technology

Besucheradresse / Visitor address: 
Continental Automotive GmbH
Philipsstrasse 1, 35576 Wetzlar, Germany

Rechnungsadresse / Invoice address: 
Continental Automotive GmbH
Philipsstrasse 1, 35576 Wetzlar, Germany

Telefon/Phone: +49 6441 370-9031
Mobile: +49 151 74660227
Telefax: +49 6441 37013-9031
E-Mail: christian.beushau...@continental-corporation.com

http://www.continental-automotive.com


Continental Automotive GmbH, Vahrenwalder Str. 9, D-30165 Hannover 
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Helmut 
Matschi 
Geschaeftsfuehrer/Managing Director: Georg Sistermanns, Harald Stuhlmann 
Sitz der Gesellschaft/Registered Office: Hannover 
Registergericht/Registered Court: Amtsgericht Hannover, HRB 59424
USt.-ID-Nr./VAT-ID-No. DE814950663 


Proprietary and confidential. Distribution only by express authority of
Continental AG or its subsidiaries.

-- 
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/OF2CDE8E6F.F579456E-ONC1258283.0050379E-C1258283.00514802%40continental-corporation.com.
For more options, visit https://groups.google.com/d/optout.


how edit copy of environment variable - job-dsl groovy

2018-05-04 Thread Josh Olson
hello,

I have the slack  & job-dsl 
 plugins installed & configured in my 
jenkins instance.

I run the seed job for the following my-slack.groovy file:

job("myfolder/myjob") {
  steps {
  shell("""#!/bin/bash
  echo "hello"
  """)
  }

  publishers {
// See 
https://issues.jenkins-ci.org/browse/JENKINS-34124?focusedCommentId=253825 
for an e.g. of how to call 'slackNotifier'. And the
// source code is at: 
https://github.com/jenkinsci/slack-plugin/blob/slack-2.3/src/main/java/jenkins/plugins/slack/SlackNotifier.java
slackNotifier {
  room('#jenkins')

  notifySuccess(true)

  includeCustomMessage(true)
  String buildURL = System.getenv("BUILD_URL")
  String otherBuildURL = "\$BUILD_URL"
  customMessage("BUILD_URL=\$BUILD_URL buildURL={$buildURL} 
otherBuildURL=${otherBuildURL}")
}
  } // publishers
} // job


(Note that BUILD_URL is listed on the jenkins Available Environment 
Variables  page.)

When I run the job, the notification I receive in my Slack channel has the 
following text: 

BUILD_URL=http://jenkins-ui:8080/job/myfolder/job/myjob/12/ buildURL=*null*
 otherBuildURL=*http://jenkins-ui:8080/job/myfolder/job/myjob/12/*


But what I would like to do is (when myjob is run - not when the seed job 
is run) be able to get a copy of BUILD_URL and edit the copy and include 
that in customMessage. Is there any way to do that? (e.g. perhaps with the 
Scriptler 
Plugin ?)

e.g. when I add the following code to my-slack.groovy (right after the line 
where otherBuildURL is initially declared):

otherBuildURL += "console"

then I get this in the Slack notification:

otherBuildURL=*$BUILD_URLconsole*


To sum this up: what I'm going for is whenever myjob is run, I would like 
the Slack notification text to include a link to the console output - e.g.: 

http://jenkins-ui:8080/job/myfolder/job/myjob/12/*console*


(Please let me know if I should instead direct this post somewhere else - 
e.g. the job-dsl-plugin 
 group.)

Any suggestions would be greatly appreciated. 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/9d6c3b7a-bce9-4b5d-a19f-54fbdcd2ab5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how get copy of environment variable - groovy job-dsl

2018-05-04 Thread joshua . olson
hello,

I have the slack  & job-dsl 
 plugins installed & configured in my 
jenkins instance.

I run the seed job for the following my-slack.groovy file:

job("myfolder/myjob") {
  steps {
  shell("""#!/bin/bash
  echo "hello"
  """)
  }

  publishers {
// See 
https://issues.jenkins-ci.org/browse/JENKINS-34124?focusedCommentId=253825 
for an e.g. of how to call 'slackNotifier'. And the
// source code is at: 
https://github.com/jenkinsci/slack-plugin/blob/slack-2.3/src/main/java/jenkins/plugins/slack/SlackNotifier.java
slackNotifier {
  room('#jenkins')

  notifySuccess(true)

  includeCustomMessage(true)
  String buildURL = System.getenv("BUILD_URL")
  String otherBuildURL = "\$BUILD_URL"
  customMessage("BUILD_URL=\$BUILD_URL buildURL={$buildURL} 
otherBuildURL=${otherBuildURL}")
}
  } // publishers
} // job


(Note that BUILD_URL is listed on the jenkins Available Environment 
Variables  page.)

When I run the job, the notification I receive in my Slack channel has the 
following text: 

BUILD_URL=http://jenkins-ui:8080/job/myfolder/job/myjob/12/ buildURL=*null*
 otherBuildURL=*http://jenkins-ui:8080/job/myfolder/job/myjob/12/*


But what I would like to do is (when myjob is run - not when the seed job 
is run) be able to get a copy of BUILD_URL and edit the copy and include 
that in customMessage. Is there any way to do that? (e.g. perhaps with the 
Scriptler 
Plugin ?)

e.g. when I add the following code to my-slack.groovy (right after the line 
where otherBuildURL is initially declared):

otherBuildURL += "console"

then I get this in the Slack notification:

otherBuildURL=*$BUILD_URLconsole*


To sum this up: what I'm going for is whenever myjob is run, I would like 
the Slack notification text to include a link to the console output - e.g.: 

http://jenkins-ui:8080/job/myfolder/job/myjob/12/*console*


(Please let me know if I should instead direct this post somewhere else - 
e.g. the job-dsl-plugin 
 group.)

Any suggestions would be greatly appreciated. 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/36fec760-d673-4b70-876b-c9b9ceb744f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: E/launcher - unknown error: cannot find Chrome binary

2018-05-04 Thread Liong Hung Wong

Hi Victor,

After changing the agent's docker, it works.

Thank you very much. 


On Friday, 4 May 2018 22:09:41 UTC+8, Victor Martinez wrote:
>
> It looks like you are using an agent based on the dockerhub maven 3.3.3 
> docker image, if so, are you sure that particular binary exists? you can 
> also run which google-chrome to identify where that particular binary is 
> allocated.
>
> Cheers
>
>

-- 
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/93451dca-91d5-4144-95ed-d7c49b2752af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how do I list all the pull request for the repo?

2018-05-04 Thread swordfish
Thanks!
Is there any sample example I can refer?

On Friday, May 4, 2018 at 12:20:46 AM UTC-7, Victor Martinez wrote:
>
> Yes, you can use groovy script, look at: 
> https://jenkins.io/doc/book/pipeline/shared-libraries/#using-third-party-libraries
>
> Cheers
>

-- 
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/af43f333-b5f9-4dec-b046-1b1702022774%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to trigger nightly build via blue ocean?

2018-05-04 Thread Zack Snyder
Hi,

 

I want to trigger a nightly build (every mitnight) via blue ocean.

However, it seems to be not possible in the configuration view (only viewable).

How can I add the necessary information to the "Jenkinsfile"?

 

Regards,

Zack



-- 
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/trinity-268a6810-0e6a-4d48-8ca7-19f8d0bbfed7-1525451964982%403c-app-gmx-bs61.
For more options, visit https://groups.google.com/d/optout.


Re: Maven auto-installation doesn't work when shared between executions

2018-05-04 Thread Johnathan Law
I've just spent the day trying to get automatic tool installation to work. 
and it looks like this problem is still there. Did you manage to find any 
solution to this? It's incredibly frustrating, due to being in a corporate 
environment I'm seeing the JDK try to get installed nearly five times in a 
single job execution.

On Monday, 7 August 2017 12:18:51 UTC+1, Vitalii Ishchenko wrote:
>
> Hi Mark
>
> I found possible issue, we are installing maven from internal url and I've 
> created test job that installs from apache
> 2nd option is different in fact that it creates .installedFrom file that 
> is later used to verify if we are installing different version
>
>
> https://github.com/jenkinsci/jenkins/blob/d5d6eb037b51a69f86cbf105fd3b78178ad83611/core/src/main/java/hudson/tools/DownloadFromUrlInstaller.java#L45
>
> https://github.com/jenkinsci/jenkins/blob/d5d6eb037b51a69f86cbf105fd3b78178ad83611/core/src/main/java/hudson/tools/DownloadFromUrlInstaller.java#L83
>
> But seems that for our type of installation, different class is used which 
> doesn't have such check 
> https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tools/ZipExtractionInstaller.java
>
> On Thursday, June 29, 2017 at 5:17:09 PM UTC+3, Mark Waite wrote:
>>
>> If the tool is being installed on every run of the job, then I think 
>> there is something else amiss with your installation.  I have several 
>> different automated installers (2 maven, 2 ant, cmake, etc.) which deploy 
>> to many different platforms successfully (including Windows).
>>
>> I have a job that uses the elastic axis plugin to run a sample maven job 
>> on each of the agents using the specific maven version.  It works reliably, 
>> and once that job has run, other jobs do not unpack the maven installer for 
>> that maven version again.
>>
>> Are there any unique or special settings you're using to configure your 
>> agents?
>>
>> Mark Waite
>>
>> On Thu, Jun 29, 2017 at 8:08 AM Виталий Ищенко  wrote:
>>
>>> I have a windows slave node with 2 executors. And job that is bound to 
>>> windows slave that allows to perform parallel builds. Jenkins automatically 
>>> installs maven configured in Global Tools configuration by unpacking tar.gz 
>>> archive.
>>>
>>> The problem is that looks like every run re-fetches maven and tries to 
>>> overwrite existing one. This approach fails almost every time because maven 
>>> may be used at that time and Windows doesn't allow to overwrite running 
>>> executable.
>>>
>>> Is there a way to install maven into WORKSPACE instead of shared 
>>> location or control where archive is unpacked, in this case we can use 
>>> JOB_NAME and EXECUTOR_NUMBER to scope tool
>>>
>>> -- 
>>> 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/CANYoZJ%3De6q4e0CDdZjvOQ%3D-HyLwcRtPX%2B5e9RiHT4OjnMSgeVA%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/c29dd5c4-8c47-427d-91a6-b87caad8e4e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mac Jenkins Can't Clone/fetch from GitHub

2018-05-04 Thread Mitch Stoner
Denis, I had the same problem so I needed to do this and now it is working 
fine:

1. Stop the current Jenkins on your mac.
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

2. Copy org.jenkins-ci.plist file:
sudo cp /Library/LaunchDaemons/org.jenkins-ci.plist ~/Desktop
sudo chown "youruser" ~/Desktop/org.jenkins-ci.plist
sudo open ~/Desktop/org.jenkins-ci.plist

3. Replace /Users/Shared/Jenkins/Home by /Users/"YourUser"/.jenkins
sudo cp ~/Desktop/org.jenkins-ci.plist /Library/LaunchDaemons/
sudo chown root /Library/LaunchDaemons/org.jenkins-ci.plist

5. Start Jenkins
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

Hope it helps.

El jueves, 1 de marzo de 2018, 18:43:04 (UTC+1), Denis Kazantsev escribió:
>
> This helped with my problem. But after macOS reboot (OS update was 
> installed) Jenkins roll backed to previous version. And also now I have 
> different problem with Ant but I'm not sure that it's related to this issue.
>
> On Wednesday, May 24, 2017 at 6:00:20 AM UTC+3, Shuguo Yang wrote:
>>
>> Hey, this is because Jenkins is running as the user jenkins, which is not 
>> the current user on your mac. 
>>
>> The default path is "/User/Share/Jenkins", install it under 
>> "$HOME/.jenkins" to make it work. 
>> So:
>>
>>
>> 1. Stop the current Jenkin on your mac.
>>
>> *sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist*
>> The, double check you can't access "localhost:8080" 
>>
>> 2.  Double click the "jenkins.war" file under "Application/jenkins". You 
>> will found jenkins
>> was reinstalled to "$HOME/.jenkins" again. 
>>
>> 3. Then re-config the job, git should works well
>>
>> I also encounter this issue, and above steps works well for me.
>>
>> On Monday, September 19, 2016 at 3:35:05 PM UTC+8, Ankit Arora wrote:
>>>
>>> Hi,
>>>
>>> I am also getting Error while Connecting Jenkins from Github.
>>>
>>> *Error : Failed to connect to repository : Error performing command: 
>>> git.exe ls-remote -h*
>>>
>>> Please suggest the solution
>>>
>>> *//BR*
>>>
>>>
>>> *Ankit AroraTest Engineer  *
>>> *✉ : **ankitarora...@gmail.com || ankitarora...@gmail.com*
>>> *☎ :* 
>>> *+91-9654293205 ,+91-8285678798 *
>>>
>>>
>>> *P please consider the environment before printing any emailPlease 
>>> say "No" to Plastics *
>>>
>>>
>>>  
>>>
>>>
>>> On Sat, Sep 17, 2016 at 4:06 AM, Hung  wrote:
>>>
 HI,  I am new to setting up Jenkins.  I am trying to setup a Jenkins 
 server
 on a Mac Mini.  I am having trouble with the Jenkins setup because I 
 made a
 simple project that is to sync to a github repo and then run a script.
 Unfortunately I can't get this simple project to run correctly.  I keep
 getting a timeout error.  Here is a Console output.

  15:16:57 Building in workspace
 /Users/Shared/Jenkins/Home/workspace/MacWitchesServers
 15:16:57  > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
 15:16:57 Fetching changes from the remote Git repository
 15:16:57  > /usr/bin/git config remote.origin.url
 https://github.com/MyAccount/sample # timeout=10
 15:16:57 Fetching upstream changes from 
 https://github.com/MyAccount/sample
 15:16:57  > /usr/bin/git --version # timeout=10
 15:16:57 using GIT_ASKPASS to set credentials
 15:16:57  > /usr/bin/git fetch --tags --progress
 https://github.com/MyAccount/sample +refs/heads/*:refs/remotes/origin/*
 15:26:57 ERROR: Timeout after 10 minutes
 15:26:57 ERROR: Error fetching remote repo 'origin'
 15:26:57 hudson.plugins.git.GitException: Failed to fetch from
 https://github.com/MyAccount/sample
 15:26:57at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
 15:26:57at 
 hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
 15:26:57at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
 15:26:57at hudson.scm.SCM.checkout(SCM.java:495)
 15:26:57at
 hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
 15:26:57at

 hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
 15:26:57at
 jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
 15:26:57at

 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
 15:26:57at hudson.model.Run.execute(Run.java:1741)
 15:26:57at 
 hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 15:26:57at
 hudson.model.ResourceController.execute(ResourceController.java:98)
 15:26:57at hudson.model.Executor.run(Executor.java:410)
 15:26:57 Caused by: hudson.plugins.git.GitException: Command 
 "/usr/bin/git
 fetch --tags --progress https://github.com/MyAccount/sample
 +refs/heads/*:refs/remotes/origin/*" returned status code 143:
 15:26:57 stdout:
 15:26:57 stderr:
 15:26:57at

 org.jen

Re: E/launcher - unknown error: cannot find Chrome binary

2018-05-04 Thread Victor Martinez
It looks like you are using an agent based on the dockerhub maven 3.3.3 
docker image, if so, are you sure that particular binary exists? you can 
also run which google-chrome to identify where that particular binary is 
allocated.

Cheers

-- 
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/c6616a6b-f560-49f4-b8b2-d970c5c35b06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: E/launcher - unknown error: cannot find Chrome binary

2018-05-04 Thread Liong Hung Wong


PATH environment printed out as below 

[e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA] Running shell 
script

+ echo /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


google-chrome is available at /usr/bin/google-chrome


My Jenkinsfile

pipeline {
agent { docker { image 'maven:3.3.3' } }
stages {
stage('build') {
steps {
sh 'mvn clean install'
}
}
stage('test') {
steps {
sh 'echo $PATH'
sh './ng e2e'
}
}
}
}


My protractor.config.js


const { SpecReporter } = require('jasmine-spec-reporter');

exports.config = {
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],

capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': ['--no-sandbox', '--headless', '--disable-gpu', 
'--window-size=800,600']
}
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 3,
print: function() {}
},
onPrepare() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: 
true } }));
}
};

Regards


On Friday, 4 May 2018 18:09:47 UTC+8, Victor Martinez wrote:
>
> Can you confirm whether the PATH and environment is correctly configured 
> when running the pipeline in the agent? If you run at the very beginning 
> something like the below snippet:
>
> ...
> sh 'echo $PATH'
> ...
>
> If /usr/bin is not part of the path, then you need to figure out how to 
> configure it in the agent itself or explicitly override it with some 
> withEnv step for instance.
>
> Cheers
>

-- 
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/188e7a45-fdaf-4f04-8790-a7930b572e4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Exception when changing to directory, Finished: UNSTABLE

2018-05-04 Thread 'Björn Pedersen' via Jenkins Users
Hi, 
Did you carefully check ownership and access rights on this folder (on the 
web server side)? Maybe it is not accessible by the user you use?

Björn

Am Freitag, 4. Mai 2018 13:41:47 UTC+2 schrieb Saatviga Sudhahar:
>
> I have specified the remote directory in the global settings already where 
> I configure the connection to the SSH server.
> Anyway thanks, I will look in to that. 
>
>
>
>
> On Friday, 4 May 2018 11:04:01 UTC+1, Victor Martinez wrote:
>>
>> I'm not sure whether it will be related to  but it seems the remote 
>> directory is required in the global settings:
>>
>>
>> 
>> Besides of that, I have not used that plugin for a while but you could 
>> add some loggers (see 
>> https://support.cloudbees.com/hc/en-us/articles/115002626172-Configure-Loggers-for-Jenkins
>>  
>> ) and see the logs of the class class 
>> https://github.com/jenkinsci/publish-over-ftp-plugin/blob/4df38656ca19a60f94bc8c531fddf416fc06322b/src/main/java/jenkins/plugins/publish_over_ftp/BapFtpClient.java#L73
>>  
>>
>> Cheers
>>
>>

-- 
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/3d00809c-7fca-40d6-8150-cc7b852c019b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Exception when changing to directory, Finished: UNSTABLE

2018-05-04 Thread Saatviga Sudhahar
I have specified the remote directory in the global settings already where 
I configure the connection to the SSH server.
Anyway thanks, I will look in to that. 




On Friday, 4 May 2018 11:04:01 UTC+1, Victor Martinez wrote:
>
> I'm not sure whether it will be related to  but it seems the remote 
> directory is required in the global settings:
>
>
> 
> Besides of that, I have not used that plugin for a while but you could add 
> some loggers (see 
> https://support.cloudbees.com/hc/en-us/articles/115002626172-Configure-Loggers-for-Jenkins
>  
> ) and see the logs of the class class 
> https://github.com/jenkinsci/publish-over-ftp-plugin/blob/4df38656ca19a60f94bc8c531fddf416fc06322b/src/main/java/jenkins/plugins/publish_over_ftp/BapFtpClient.java#L73
>  
>
> Cheers
>
>

-- 
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/21a1c807-6a6d-482d-b0e7-c7ce0da034c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bitbucket Branch Source Plugin: I/O error when accessing URL

2018-05-04 Thread Torsten Reinhard
Hi,

no Bitbucket is working fine, it´s responding when manually calling the URL.
After searching a while, I found 
https://issues.jenkins-ci.org/browse/JENKINS-40515 and the related 
https://issues.jenkins-ci.org/browse/JENKINS-39267 

I was missing the right exclusion Pattern for my BitBucket server at the 
Plugin configuration / Advanced settings.After adding *.mycompany.com all 
worked like expected.

Regards, Torsten

Am Donnerstag, 3. Mai 2018 10:04:32 UTC+2 schrieb Antonio Muñiz:
>
> > HTTP request error. Status: 503: Service Unavailable.
>
> Your Bitbucket Server is returning HTTP 503. Something is wrong there.
>
> On 2 May 2018 at 22:40, Victor Martinez  > wrote:
>
>> Although my answer is quite generic it might be helpful:
>>
>> You might be able to debug those issues if you add some loggers in the 
>> jenkins instance:
>> - see https://wiki.jenkins.io/display/JENKINS/Logging and 
>> https://wiki.jenkins.io/display/JENKINS/Logger+Configuration
>>
>> and you can add this logger:
>> - 
>> https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/server/client/BitbucketServerAPIClient.java#L113
>>
>> To debug:
>> - 
>> https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/server/client/BitbucketServerAPIClient.java#L624-L625
>>
>>
>> Cheers
>>
>>
>> -- 
>> 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/8d2257ca-783d-44f0-8387-3656cafc3fa5%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Antonio Muñiz
> Software Engineer
> CloudBees, Inc.
>

-- 
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/66d0a32c-340b-40d1-a8c0-8aee55d79ca0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: E/launcher - unknown error: cannot find Chrome binary

2018-05-04 Thread Victor Martinez
Can you confirm whether the PATH and environment is correctly configured 
when running the pipeline in the agent? If you run at the very beginning 
something like the below snippet:

...
sh 'echo $PATH'
...

If /usr/bin is not part of the path, then you need to figure out how to 
configure it in the agent itself or explicitly override it with some 
withEnv step for instance.

Cheers

-- 
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/43636bbc-a6b3-491c-9e33-b540f10d8180%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Exception when changing to directory, Finished: UNSTABLE

2018-05-04 Thread Victor Martinez
I'm not sure whether it will be related to  but it seems the remote 
directory is required in the global settings:


Besides of that, I have not used that plugin for a while but you could add 
some loggers 
(see 
https://support.cloudbees.com/hc/en-us/articles/115002626172-Configure-Loggers-for-Jenkins
 
) and see the logs of the class 
class 
https://github.com/jenkinsci/publish-over-ftp-plugin/blob/4df38656ca19a60f94bc8c531fddf416fc06322b/src/main/java/jenkins/plugins/publish_over_ftp/BapFtpClient.java#L73
 

Cheers

-- 
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/f830704d-debc-4fe7-b8d5-a963536abfea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Exception when changing to directory, Finished: UNSTABLE

2018-05-04 Thread Saatviga Sudhahar
Hi Victor,

The wp-content folder is in my project folder web_build. This is what i 
specify in the source files section.
I want to copy all directories and files under web_build to the remote 
server location /home/online/public_html 
The error is thrown while its copying the files from this location. Most of 
the files are copied. 
This happens only in the end. I don't specify any other paths. 


Thanks


On Friday, 4 May 2018 08:22:03 UTC+1, Victor Martinez wrote:
>
> is wp-content/plugins/mailchimp-for-wp/integrations a relative path to 
> where? Can you confirm if it works by using the absolute path instead?
>
> Cheers
>

-- 
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/e6a5c4f0-86f1-4c77-8964-2e8362af7288%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


E/launcher - unknown error: cannot find Chrome binary

2018-05-04 Thread Liong Hung Wong

Hi,

I am getting "cannot find Chrome binary" when running step of a pipeline 
which runs protractor e2e test. Below is the full error log.

When running the same command at command prompt under the jenkins workspace 
folder, it works fine. 

I have google-chrome installed at /usr/bin/. Any idea how to resolve this 
problem?

[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (test)[Pipeline] sh

[e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA] Running shell 
script
+ ./ng e2e

** NG Live Development Server is listening on localhost:49152, open your 
browser on http://localhost:49152/ **

 [0mDate:  [1m [37m2018-05-04T03:25:34.067Z [39m [22m [0m
 [0mHash:  [1m [37m07a7011210f50a1406eb [39m [22m [0m
 [0mTime:  [1m [37m12224 [39m [22mms [0m
 [0mchunk { [1m [33minline [39m [22m}  [1m [32minline.bundle.js, 
inline.bundle.js.map [39m [22m (inline) 3.89 kB  [1m [33m[entry] [39m [22m [1m 
[32m [rendered] [39m [22m [0m
 [0mchunk { [1m [33mmain [39m [22m}  [1m [32mmain.bundle.js, main.bundle.js.map 
[39m [22m (main) 8.15 kB  [1m [33m[initial] [39m [22m [1m [32m [rendered] [39m 
[22m [0m
 [0mchunk { [1m [33mpolyfills [39m [22m}  [1m [32mpolyfills.bundle.js, 
polyfills.bundle.js.map [39m [22m (polyfills) 204 kB  [1m [33m[initial] [39m 
[22m [1m [32m [rendered] [39m [22m [0m
 [0mchunk { [1m [33mstyles [39m [22m}  [1m [32mstyles.bundle.js, 
styles.bundle.js.map [39m [22m (styles) 14.5 kB  [1m [33m[initial] [39m [22m 
[1m [32m [rendered] [39m [22m [0m
 [0mchunk { [1m [33mvendor [39m [22m}  [1m [32mvendor.bundle.js, 
vendor.bundle.js.map [39m [22m (vendor) 2.76 MB  [1m [33m[initial] [39m [22m 
[1m [32m [rendered] [39m [22m [0m
(node:482) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use 
os.tmpdir() instead.

webpack: Compiled successfully.
[03:25:34] I/file_manager - creating folder 
/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/node_modules/webdriver-manager/selenium
[03:25:34] I/update - chromedriver: unzipping chromedriver_2.38.zip
[03:25:35] I/update - chromedriver: setting permissions to 0755 for 
/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.38
[03:25:35] I/launcher - Running 1 instances of WebDriver
[03:25:35] I/direct - Using ChromeDriver directly...
[03:25:36] E/launcher - unknown error: cannot find Chrome binary
  (Driver info: chromedriver=2.38.552522 
(437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Linux 4.10.0-42-generic 
x86_64)
[03:25:36] E/launcher - WebDriverError: unknown error: cannot find Chrome binary
  (Driver info: chromedriver=2.38.552522 
(437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Linux 4.10.0-42-generic 
x86_64)
at Object.checkLegacyResponse 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:441:30)
at 
at process._tickCallback (internal/process/next_tick.js:188:7)
From: Task: WebDriver.createSession()
at Function.createSession 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
at Function.createSession 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/node_modules/selenium-webdriver/chrome.js:761:15)
at Direct.getNewDriver 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/built/driverProviders/direct.js:77:33)
at Runner.createBrowser 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/built/runner.js:195:43)
at q.then.then 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/protractor/built/runner.js:339:29)
at _fulfilled 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/q/q.js:834:54)
at self.promiseDispatch.done 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch 
(/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVRA/node_modules/q/q.js:796:13)
at 
/var/jenkins_home/workspace/e2e_master-3KI5EHQHBLITI5WIC2ZWJEWJP35AENTM5ILI6HE62TNWQ7BRRVR

org.eclipse.jetty.server.session.Session beginInvalidate

2018-05-04 Thread Björn Rohlén
Hello. I have a slight problem with my logs.

The Jenkins-master is SPEWING out the same stuff, over and over -- and 
over... Check this out:

u...@not.actual.host ~ $ sudo journalctl --since today -u 
jenkins-master.service | head -8
-- Logs begin at Tue 2018-05-01 00:31:27 CEST, end at Fri 2018-05-04 
11:07:13 CEST. --
May 04 00:00:00 not.actual.host jenkins-master[16954]: May 04, 2018 
12:00:00 AM org.eclipse.jetty.server.session.Session beginInvalidate
May 04 00:00:00 not.actual.host jenkins-master[16954]: INFO: Session 
node011ningthrpjck1l892zvtmn99j216653 already being invalidated
May 04 00:00:01 not.actual.host jenkins-master[16954]: May 04, 2018 
12:00:01 AM org.eclipse.jetty.server.session.Session beginInvalidate
May 04 00:00:01 not.actual.host jenkins-master[16954]: INFO: Session 
node01m78derxx2rlg16vw8wg9kgts4216662 already being invalidated
May 04 00:00:01 not.actual.host jenkins-master[16954]: May 04, 2018 
12:00:01 AM org.eclipse.jetty.server.session.Session beginInvalidate
May 04 00:00:01 not.actual.host jenkins-master[16954]: INFO: Session 
node01s3iqqsx3s7umz6kd5shmxjza216656 already being invalidated
May 04 00:00:01 not.actual.host jenkins-master[16954]: May 04, 2018 
12:00:01 AM org.eclipse.jetty.server.session.Session beginInvalidate
u...@not.actual.host ~ $

It starts right off the bat! Now, the master is restarted every night at 
02:00 and nobody is actually doing any work, since we're open office-hours, 
but check this out -- this is the amount it has produced TODAY and it's not 
even lunch yet!

(we need to multiply this by 2, since its actually two lines worth of log 
for each hit)

u...@not.actual.host ~ $ sudo journalctl --since today -u 
jenkins-master.service | grep "already being invalidated" | wc -l
244984
u...@not.actual.host ~ $ echo "244984 * 2" | bc
489968
u...@not.actual.host ~ $

WOOHOO! Almost half a million lines worth of log and we're not even halfway 
the workday! Let's PREDICT it will produce ~1M lines before rotating logs 
at 00:00... 

I have been googling and can see this can AT TIMES be some Ajax-stuff, but 
that doesnt really feel like the case, since we do not have THAT many 
developers spamming the gui. What on EARTH is going on and how can I make 
my logs more sane?

Thanks in advance and have a great weekend!

/B

-- 
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/c90e5b64-7c18-4ae2-bde0-ebce81b15844%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How does jenkins deal with builds?

2018-05-04 Thread Sébastien Hinderer
Dear all,

Currently our builds are triggered by polling the SCM system for changes
and we do the polling every 15 minutes.

As I understandi it, this means that if, say, 1 commit is pushed every
minute between two checks, only two builds will be done, one before and
one after these 15 commits.

Now I am wondering what would happen if we switch to a hook-based
trigger. Then Jenkins would be notified of each commit while the
previous build may not have been completed yet. Would that mean that
every notification would put a build in Jenkin's build queue?

Any response appreeciated, including pointers to relevant documentation.

Best wishes,

Sébastien.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20180504084521.GA24703%40prajna.paris.inria.fr.
For more options, visit https://groups.google.com/d/optout.


Re: Exception when changing to directory, Finished: UNSTABLE

2018-05-04 Thread Victor Martinez
is wp-content/plugins/mailchimp-for-wp/integrations a relative path to 
where? Can you confirm if it works by using the absolute path instead?

Cheers

-- 
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/8ea95fe9-6c4d-4fd8-95fd-cd7d664afd3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how do I list all the pull request for the repo?

2018-05-04 Thread Victor Martinez
Yes, you can use groovy script, look 
at: 
https://jenkins.io/doc/book/pipeline/shared-libraries/#using-third-party-libraries

Cheers

-- 
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/a6d2e69a-adb7-44d3-a292-3dc89876f41b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.