Re: Another way to uninstall a plugin?

2023-01-10 Thread Peter Kunst
Getting rid of the WMI plugin warning implies updating to 2.386 for
me. See https://issues.jenkins.io/browse/JENKINS-70301

Thanks Mark

On Mon, Jan 9, 2023 at 7:28 AM 'Dirk Heinrichs' via Jenkins Users
 wrote:
>
> Am Sonntag, dem 08.01.2023 um 16:31 -0800 schrieb zil...@gmail.com:
>
> No it's not the WMI Windows Agents plugin since we're totally a Linux shop.
>
>
> That plugin is installed regardless of OS.
>
> Bye...
>
> Dirk
>
> --
>
> Dirk Heinrichs
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> Phone: +49 2226 15966 18
> Email: dhein...@opentext.com
> Website: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) please 
> notify the sender immediately and destroy this e-mail. Any unauthorized 
> copying, disclosure or distribution of the material in this e-mail is 
> strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>
> --
> 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/eb9cb9a1ff18920f6188d5a79d5dda46afa0781b.camel%40opentext.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/CA%2BEtt0C%2B3aGp4wzd1dOy3%3D-5U%3Db_K1OPeV1LikNoW%3Dy5_24U9Q%40mail.gmail.com.


Re: is there a way to get all the enabled jobs on a jenkins CI System

2022-10-15 Thread Peter Kunst
A little off topic, because it doesn't use jenkins-cli.jar (-:
When your jenkins ssh port is accessible, you could use something like this:

#!/bin/sh
# check which jenkins jobs are enabled/disabled, using ssh
JENKINS_CONTROLLER=jenkins.my.org
JENKINS_SSH_PORT=
JENKINS_USER=jenkins
JOBS=$(ssh -l $JENKINS_USER -p $JENKINS_SSH_PORT $JENKINS_CONTROLLER list-jobs)
for J in $JOBS; do
  STATUS=$(ssh -l $JENKINS_USER -p $JENKINS_SSH_PORT
$JENKINS_CONTROLLER get-job $J|grep disabled)
  if [[ $STATUS = *false* ]]; then
echo "$J is enabled"
  else
echo "$J is disabled"
  fi
done

 Cheers, Peter

On Sat, Oct 15, 2022 at 9:47 AM Prakash T  wrote:
>
> Hi , did you find the solution , even i m looking for the same.
>
> On Wednesday, 22 March 2017 at 01:09:41 UTC+5:30 Raj wrote:
>>
>> I would like to know if there is a way to use jenkins cli jar file and find 
>> out if a given job is enabled or currently disabled.
>> i have about 700 jobs on the server and would like to know the list of 
>> enabled and disabled jobs
>>
>> Thank you very much for your time.
>> regards,
>> Raj
>
> --
> 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/05d52545-aa84-415f-a121-f1dbd87c7854n%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/CA%2BEtt0DK9XsOv81QstpTbXtit5MV_%2Bkkxm6T7oDKU%3DGnRwsyMA%40mail.gmail.com.


LLVM scan-build jenkins plugin throws NullpointerExceptions

2022-07-26 Thread Peter
Hi,
upgrading to jenkins weekly every now and then, i do get this in my logs 
since 14th of July 2022. Anyone else?

Publishing Clang scan-build results 
ERROR: Build step failed with exception
java.lang.NullPointerException at 
jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher.perform(ClangScanBuildPublisher.java:169)
 
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
 
athudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:765)
at hudson.model.Build$BuildExecution.post2(Build.java:179)
...
Build step 'Publish Clang Scan-Build Results' marked build as failure.

https://plugins.jenkins.io/clang-scanbuild/ is at version 1.8 (released 6 
years ago)
LLVM scan-build used here is version 12.0.1. Any hints how to solve this 
issue?

 Cheers, Peter

-- 
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/982adc0d-e80a-4c51-b036-94e0942129e3n%40googlegroups.com.


Re: Jenkins Terminology Poll for ‘master’

2020-07-21 Thread Peter L. Berghold
On Tue, 2020-07-21 at 12:18 -0700, Mark Waite wrote:
> The Jenkins terminology poll for the “master” term replacement is
> open at 
> 

Great...  more virtue signalling.   I suppose "master key" is right out
too. 

-- 
Peter L. Berghold 
Blog:  http://cowdawgkitchens.com
Passions include: Dogs, Beer, Beer Making, Food and Cooking

-- 
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/d106882fbbbc289202ca79177c23e8d3b1b44dff.camel%40gmail.com.


Re: Parallel pipeline and Stage View

2020-02-22 Thread Peter Kunst
BTW, blue ocean still does not support subversion and will never do. Is
this correct?

On Sun, Feb 23, 2020 at 4:41 AM Jan Monterrubio 
wrote:

> The blue ocean plugin might be able to give you the view that you want. In
> my experience, the vanilla pipelines just append Columns to a table.
>
> On Sat, Feb 22, 2020 at 10:09 Simon Richter 
> wrote:
>
>> Hi,
>>
>> I have a rather simple meta-pipeline:
>>
>> pipeline {
>> parameters {
>> string(name: 'PATCH_URL', defaultValue: '', description:
>> 'URL of a patch file to download and apply')
>> }
>> agent none
>> stages {
>> stage('Build Configurations') {
>> parallel {
>> stage('Linux') {
>> agent none
>> steps {
>> build job: 'linux-kicad-patch', \
>> parameters: [ \
>> string(name: 'PATCH_URL', \
>> value: "${PATCH_URL}") ], \
>> propagate: true, \
>> wait: true
>> }
>> }
>> stage('Windows MSYS2') {
>> agent none
>> steps {
>> build job: 'windows-kicad-msys2-patch', \
>> parameters: [ \
>> string(name: 'PATCH_URL', \
>> value: "${PATCH_URL}") ], \
>> propagate: true, \
>> wait: true
>> }
>> }
>> stage('Windows MSVC') {
>> agent none
>> steps {
>> build job: 'windows-kicad-msvc-patch', \
>> parameters: [ \
>> string(name: 'PATCH_URL', \
>> value: "${PATCH_URL}") ], \
>> propagate: true, \
>> wait: true
>> }
>> }
>> }
>> }
>> }
>> }
>>
>> This should build the three downstream projects with the same
>> parameters, in parallel.
>>
>> The stage view shows four stages after starting a build shows four stages:
>>
>>  - "Build Configurations" (done after 295ms)
>>  - "Windows MSVC" (done after 0ms, paused for 0ms)
>>  - "Windows MSYS2" (done after 0ms, paused for 0ms)
>>  - "Linux" (in progress, with increasing stage time)
>>
>> Ideally, it wouldn't show the "outer" stage at all, and display the
>> three "inner" stages as "in progress" at the same time. Is that possible?
>>
>>Simon
>>
>> --
>> 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/87b628c5-e98c-bae8-182f-7790ceb2e19c%40hogyros.de
>> .
>>
> --
> 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/CADgiF9%2BGNqdoa%2BgvCQb4_dBEowBpQqtfnVqWxaSifPnBQmnPYQ%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/CA%2BEtt0CZDX3mQZ-5wMJXLj%2B0V%3DV64GBef97KzZZ7J5vmTsFd4g%40mail.gmail.com.


Re: Blue Ocean Status Update

2019-11-27 Thread Peter
Followed the blue ocean attempt for some time, but missing support for 
subversion makes it impossible to integrate in our environment (until we'll 
switch to git). Cool stuff, anyways.

-- 
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/680942af-157a-4dba-9483-e68b2fdbef2b%40googlegroups.com.


Re: several issues

2019-11-27 Thread Peter
Thanks a lot to all who've replied, this mailing list rocks! I'll try to 
summarize:

I've asked here, because the wiki page "How to report an issue" tells me 
"The Jenkins JIRA is not a support site. If you need assistance or have 
general questions, visit us in chat <https://jenkins.io/chat/>, or email 
one of the mailing lists <http://jenkins-ci.org/content/mailing-lists>." on 
the very first lines. See 
https://wiki.jenkins.io/display/JENKINS/How+to+report+an+issue

Still using subversion, so the hint about a too old git version on stock 
CentOS7 doesn't matter here.

My apologies, Mark Waite. I didn't know that the maintainer of the 
changelog url changed, and i guess all of us jenkins users respect your 
effort to make it happen as good and fast as possible. Since you've asked 
for help to get an automatic changelog page, i would like to give it a try 
when you give me more infos about how it should go, and which kind of 
environment is available. Shell and/or Tcl scripting would be no problem, 
but don't ask me about groovy.

About personal opinions about M$ file systems: agreed. scp or sshfs would 
help, but isn't much better. The key point here is, regression test 
machines in the local environment report results and logfiles to a network 
file system. Not a real performance issue. Other regression tests do some 
ftp transfers, and scripts need to check what and how much does get there 
(via CIFS share). So, instead of starting a JNLP session on each Windows 
agent manually (with access to a network share), it would be nice to see a 
solution which runs "jenkins as a service" (currently without error-less 
solution that has access to a network share). Thanks Simon for your hints, 
tried again, but still without success. Gives something like 'no access to 
Windows Event log' and exited. Thanks Simon Richter for your tips. Need to 
investigate and will report when having success.

About the "Check job prerequisites" jenkins plugin (aka "Slave 
Prerequisites plugin"... shouldn't this be named "Agent Prerequisites 
plugin" soon?): I have checked this with a fresh jenkins LTS and latest 
weekly distribution, and issue2 is reproducible: Select "windows batch 
command" at "Check job prerequisites" in any job, it is saved ok, reading 
the job's xml file. When loading job configuration again, it is displayed 
as "shell script" and saved as such (not as "windows batch command"). Ok, i 
guess i have to create an JIRA account

Thanks a lot, Ivan Fernandez Calvo, for opening JENKINS-60289 
<https://issues.jenkins-ci.org/browse/JENKINS-33287>. It's not a real 
showstopper, but it is time consuming to manually login to each (of many) 
ssh clients witthout detecting any issues, just (not) to get rid of a 
jenkins warning (which possibly sits in some kind of not-updated cache?). 
BTW, a 'grep sshHostKeyVerificationStrategy nodes/*/config.xml' in 
CWD=~jenkins reports the expected 
class="hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy"
 
for all nodes.

About Remoting disconnects: 
https://issues.jenkins-ci.org/browse/JENKINS-33287 is still reproducible on 
Windows with disabled IPv4 stack (which is a requirement for local 
regresssion tests).

 Thaaanks & Cheers, Peter

-- 
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/8280d59d-6314-4b49-8caa-040373377b9f%40googlegroups.com.


several issues

2019-11-25 Thread Peter
Hi there,

just for .*, this is my 1st post here in this group. And yes, i know i 
should open some tickets @cloudbees, but i want to check first if anyone 
here got's stuck on the same issues. For the records: jenkins server 2.204 
runs on latest CentOS7.

Issue1: Anyone noticed that when logged in as admin user, you'll get the 
info that a new version of jenkins is out, but the link to the changelog 
gives you infos about the previous version ? Takes 2-3 days until the 
correct link comes up... updates to the changelog did happen earlier some 
weeks ago.

Issue2: Using the "Check job prerequisites" plugin. When selecting "windows 
batch command" in any job, it is saved ok, reading the job's xml file. When 
loading job configuration again, it is displayed as "shell script" and 
saved as such (not as "windows batch command"). Looks like a bug.

Issue3: Never succeeded in installing a jenkins Agent as a Windows service. 
The qa environment here needs a CIFS mount to be accessible. Using windows 
agents through SSH works in general, but... no access to a CIFS share, too. 
Any ideas? Somewhat related to 
https://cygwin.com/ml/cygwin/2004-09/msg00087.html

Issue4: Any hints to detect which agent is meant when the message "SSH Host 
Key Verifiers are not configured for all SSH agents on this Jenkins 
instance. This could leave these agents open to man-in-the-middle attacks. 
Update 
your agent configuration <https://xgtj.dionglobal.de/jenkins/computer/> to 
resolve this." is shown? We have 50+ agents running, but neither logs, nor 
logging in to any of our machines gives me any hint who the culprit is? 
Would it be possible to make this message say WHICH agent is the culprit? 
Even server logs do not tell which agent it is.

Issue5: Remoting disconnects early when it is started as Client/Agent on 
Windows(7/10) when IPv6 privacy extensions have been enabled. How can i 
configure Remoting to use the 'prefered' IPv6 address as source address 
when it connects to the jenkins server, instead of the actual/temporary 
privacy IPv6 privacy address? Somewhat related to 
https://issues.jenkins-ci.org/browse/JENKINS-33287, which is reproducible.

 Cheers, Peter

-- 
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/57099dd3-c19d-4619-80c0-5782871f1a94%40googlegroups.com.


Clean useless files and directories

2019-09-30 Thread Peter Flanagan
Hello,
working on Jenkins 2.150 hosted on on AWS-EC2, jenkins_home dir is located 
on an EFS

The space of some Jenkins instances increase dramatically due to folder not 
removed automatically by internal Jenkins storage management.

Using multi-branch jobs I got 2 major issues:
- some branches directories stay on file system despite the branches does 
not exist anymore on GUI
- some workspace__* directories stay also on FS despite the build workspace 
always linked to the last waorkspace (without __ suffix)

I'm wondering how to clean these two useless (according to me) directories 
properly.

Thanks very much for your 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/883a238d-6242-4f14-a3b3-7f1a76081ac5%40googlegroups.com.


Writing a stream of logs from a shared library so they appear under one collapsible panel in Blue Ocean

2019-05-27 Thread Peter Goodman
Hi,
So I have written some Groovy code in a shared library. I want that library 
to be able to write lots of logs (by polling an external api for the 
service I am integrating).

However, if I use echo or println they appear as new sections in the Blue 
Ocean UI.

[image: echo_in_blue_ocean.png]


What I want though is something more like the shell task output where it is 
under a single grouping/section and I can keep appending inside the section 
as I fetch more logs from the ongoing job in the external api.


I've tried getting a hold of TaskListener with getLogger but no joy.


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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/60b3373f-a294-4923-bdbe-48037722943d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


White screen when downloading plugins

2019-04-29 Thread Peter Berghold
Hi folks,

I saw mention of a "white screen of death" with some issues in the JIRA but
I'm not 100% sure this is related.

I selected a few plugins to install across the internet and when I
requested the download start I got "this page is not working" from the
browser.  I use Chrome both at home and work and my personal Jenkins server
is seeing the problem and one of the newest instances at work (version
2.164.2) are both displaying this behavior.

1) is there a good workaround to let me download and install plugins
(automating with Puppet would be the best!)

2) is this a known problem

3) is there a viable workaround to get the page "working" again?


-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

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


Re: Anyone using Jenkins as a job scheduler?

2019-03-12 Thread Peter Berghold
I actually use Jenkins to perform a backup of my Git (privately hosted)
repository and ship an archive off to AWS S3.

On Tue, Mar 12, 2019 at 4:15 PM Badarch Nergui 
wrote:

> For that and some other reasons I've been thinking about centralizing the
> scheduling of all of our jobs.
>
> Jenkins isn't really intended for this, but it could work.
>
>
> Enterprise grade job scheduling software is REALLY expensive, but also
> kind of overkill.
>
> --
> 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/7e0089b2-d2c5-431a-af5a-429fb98a9a5a%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/7e0089b2-d2c5-431a-af5a-429fb98a9a5a%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

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


Re: Class paths for Jenkins?

2019-03-12 Thread Peter Berghold
was kinda hoping I could solve this without the overhead of a module.  And
no there isn't as far as I can tell a module that does what I need to do.

On Tue, Mar 12, 2019 at 2:37 PM Mark Waite 
wrote:

> It seems like you may be trying to extend the functionality of Jenkins
> with additional Java code that you want to run inside the Jenkins process
> on the Jenkins master, and possibly on one or more agents attached to the
> master.
>
> If so, first be certain that there isn't already a Jenkins plugin that
> solves the specific problem you're trying to solve.  The most frequent
> answer to the question, "Do I need to write a plugin to do X?" is "No,
> because a plugin already exists to do X, or to do Y which is very similar
> to X and can be extended or modified to do X".
>
> If a search of available plugins and a discussion of the specific problem
> you're trying to solve does not identify an existing plugin that will meet
> the need, then you probably need to write a plugin.
>
> While revising a Jenkins Plugin Development course prior to Jenkins World
> 2017, I wrote a blog post pointing to many resources on writing Jenkins
> plugins.  Refer to
> https://jenkins.io/blog/2017/08/07/intro-to-plugin-development/ for that
> blog post.
>
> Thanks,
> Mark Waite
>
> On Tue, Mar 12, 2019 at 12:10 PM Peter Berghold 
> wrote:
>
>> Following up on a silly question from the other day I have another silly
>> question. Where does Jenkins look for jar files to resolve classes and
>> packages?
>>
>> I've started writing a Java library that I want to access from a pipeline
>> and Jenkins can't seem to find it in spite of it being deployed to
>> /usr/share/java where other Java applications find their jars.
>>
>> Any pointers are appreciated.
>>
>> --
>>
>> Peter L. Berghold   salty.cowd...@gmail.com
>>
>> http://devops.berghold.net
>>
>>
>> --
>> 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/CAArvnv2yA6SgjeCyNMmN0v_ecLPCtQgZ2qgu4E2K95B0hd4xqw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv2yA6SgjeCyNMmN0v_ecLPCtQgZ2qgu4E2K95B0hd4xqw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thanks!
> Mark Waite
>
> --
> 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/CAO49JtHjZY_KjBn2k_0L0Knf1Ri-PNq_D9yUQPmSkLkhYNhyYQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHjZY_KjBn2k_0L0Knf1Ri-PNq_D9yUQPmSkLkhYNhyYQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

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


Class paths for Jenkins?

2019-03-12 Thread Peter Berghold
Following up on a silly question from the other day I have another silly
question. Where does Jenkins look for jar files to resolve classes and
packages?

I've started writing a Java library that I want to access from a pipeline
and Jenkins can't seem to find it in spite of it being deployed to
/usr/share/java where other Java applications find their jars.

Any pointers are appreciated.

-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

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


Re: Adding java libraries to jenkins

2019-03-10 Thread Peter Berghold
Hmmm.. didn't look at it that way. Is it really that easy?

On Sun, Mar 10, 2019, 21:21 Jan Monterrubio 
wrote:

> Like a global jar that gets added to the class path?
>
> On Sun, Mar 10, 2019 at 9:12 AM Peter Berghold 
> wrote:
>
>> How would I go about adding java libraries to jenkins?  I may not be
>> voicing what I'm trying to do very well so I'll go into a little detail.
>>
>> I'd like to set up a library of beans such as one reflective of the
>> contents of a list of s3 files with the creation date, size and filename as
>> a structure.
>>
>> Is this even possible?
>>
>> --
>>
>> Peter L. Berghold   salty.cowd...@gmail.com
>>
>> http://devops.berghold.net
>>
>>
>> --
>> 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/CAArvnv3DcvcDrOSCiwA8PHJJHKR4RSX2EKMA0qoOyt41h98aDw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv3DcvcDrOSCiwA8PHJJHKR4RSX2EKMA0qoOyt41h98aDw%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/CADgiF9Ktn07Nhan6xCY%3DEegG3P97qkbiB%3D0z1yM_vekfepjAmQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9Ktn07Nhan6xCY%3DEegG3P97qkbiB%3D0z1yM_vekfepjAmQ%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/CAArvnv10p-1yqDUB4wuJpNWisPRy9B7pZfZocqGqrnGRJ3nOQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Adding java libraries to jenkins

2019-03-10 Thread Peter Berghold
How would I go about adding java libraries to jenkins?  I may not be
voicing what I'm trying to do very well so I'll go into a little detail.

I'd like to set up a library of beans such as one reflective of the
contents of a list of s3 files with the creation date, size and filename as
a structure.

Is this even possible?

-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

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


Jenkins stuck on 'Please wait while Jenkins is getting ready to work' after pressing 'Reload Configuration from Disk'

2018-10-25 Thread Peter Toennies
I am using Jenkins 2.138.2 on a RHEL7 x86_64 machine. It seems like I got 
Jenkins up and running. However, when I go to 'Manage Jenkins' and click on 
'Reload Configuration from Disk' and press 'OK', Jenkins shows this is the 
browser:

Please wait while Jenkins is getting ready to work ...

Your browser will reload automatically when Jenkins is ready.


The browser seems to show this indefinitely. However, after just a few 
seconds, if I press the refresh key in the browser, it shows the Jenkins 
dashboard.


On the prior Jenkins version (2.89.4) that I was using on a ppc64 Big 
Endian machine, this was not the behavior. Within about 30 seconds the 
screen refreshed and loaded up the dashboard without me having to do any 
browser refresh. I don't think the /var/log/jenkins/jenkins.log file shows 
anything to cause a concern. It shows this line after confirming the reload:

Oct 25, 2018 5:46:30 PM jenkins.model.Jenkins doReload
WARNING: Reloading Jenkins as requested by 


And later shows (within same second):

INFO: Loaded all jobs


and later:

Oct 25, 2018 5:46:30 PM jenkins.model.Jenkins$5 runTask
INFO: Took 156ms for Finalizing set up by pool-14-thread-15
Oct 25, 2018 5:46:30 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization


Between these lines, the most unusual thing logged are lines like this:

WARNING: JENKINS-27530: improper nextBuildNumber 0 detected in 
hudson.matrix.MatrixConfiguration@...

WARNING: JENKINS-27530: improper nextBuildNumber 16 detected in 
hudson.matrix.MatrixConfiguration@...


Does anyone have any ideas to resolve this problem? Also, the same behavior 
occurs if I navigate to the jenkins/restart URL and agree that I want to 
restart 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/936884f2-4142-4397-b5ff-b002fb248568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Shared groovy library frustration

2018-10-17 Thread Peter Berghold
Not sure if this is really what fixed the problem but here goes:

Destroyed the Docker instance running my Jenkins installation and rebuilt
it using LTS instead of the "latest and greatest bleeding edge" version.
Docker is a good thing that way. :-)

Now have a stripped down version and my simple shared library now works.
I'll move on to more complicated ones next.  Is this a problem with the
version I was using  dunno.


On Wed, Oct 17, 2018 at 2:29 PM Peter Berghold 
wrote:

> OK... seems this is somehow related to
> https://issues.jenkins-ci.org/browse/JENKINS-45260
>
> is there at least  a work-around?
>
> On Wed, Oct 17, 2018 at 10:16 AM Peter Berghold 
> wrote:
>
>> Interestingly enough on a Jenkins server i manage where I have working
>> shared libraries (multiple) I don't use the @Library form at all.  I tried
>> it on this other Jenkins server (the one I'm trying to *get* working) and
>> it didn't work.
>>
>> In my first attempt I simply used:
>>
>> @Library('lib3') _
>>
>> which I saw in this documentation:
>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>
>> that yielded me the following errors
>>
>> ERROR: No version specified for library lib3
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
>> failed:
>> WorkflowScript: Loading libraries failed
>>
>>
>> OK fine,  I'll add a version to it which according to the cited page above 
>> can be a branch and "master" is certainly a branch.
>>
>>
>> @Library('lib3@master') _
>>
>>
>> Using that gave me more errors
>>
>> Loading library lib3@master
>> java.lang.NullPointerException
>>  at 
>> org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:82)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:157)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:138)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>  at 
>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>  at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>  at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
>>  at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521)
>>  at 
>> org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:317)
>>  at hudson.model.ResourceController.execute(ResourceController.java:97)
>>  at hudson.model.Executor.run(Executor.java:429)
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
>> failed:
>> WorkflowScript: Loading libraries failed
>>
>>
>> So what I'm wondering at this point, is there a plugin I'm missing?   What 
>> plugins are necessary to run Groovy pipelines including shared libraries?
>>
>>
>> I'm stumped here... and grasping at straws.
>>
>>
>> On Tue, Oct 16, 2018 at 6:29 PM Jan Monterrubio 
>> wrote:
>>
>>> Are you missing the @Library import in your pipeline?  Or does your
>>> shared library have a load implicitly declared?
>>>
>>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>>
>>>
>>>
>>> On Tue, Oct 16, 2018 at 14:49 Peter Berghold 
>>> wrote:
>>>
>>>> Here is a tree of a very simple "library" I set up:
>>>>
>>>> ├── build.xml
>>>> ├── manifest.mf
>>>> ├── nbproject
>>>> │   ├── build-impl.xml
>>>> │   ├── genfiles.properties
>>>> │   ├── groovy-build.xml
>>>> │   ├── private
>>>> │   │  

Re: Shared groovy library frustration

2018-10-17 Thread Peter Berghold
OK... seems this is somehow related to
https://issues.jenkins-ci.org/browse/JENKINS-45260

is there at least  a work-around?

On Wed, Oct 17, 2018 at 10:16 AM Peter Berghold 
wrote:

> Interestingly enough on a Jenkins server i manage where I have working
> shared libraries (multiple) I don't use the @Library form at all.  I tried
> it on this other Jenkins server (the one I'm trying to *get* working) and
> it didn't work.
>
> In my first attempt I simply used:
>
> @Library('lib3') _
>
> which I saw in this documentation:
> https://jenkins.io/doc/book/pipeline/shared-libraries/
>
> that yielded me the following errors
>
> ERROR: No version specified for library lib3
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
> failed:
> WorkflowScript: Loading libraries failed
>
>
> OK fine,  I'll add a version to it which according to the cited page above 
> can be a branch and "master" is certainly a branch.
>
>
> @Library('lib3@master') _
>
>
> Using that gave me more errors
>
> Loading library lib3@master
> java.lang.NullPointerException
>   at 
> org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:82)
>   at 
> org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:157)
>   at 
> org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:138)
>   at 
> org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
>   at 
> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
>   at 
> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>   at 
> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>   at 
> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>   at 
> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>   at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>   at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
>   at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521)
>   at 
> org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:317)
>   at hudson.model.ResourceController.execute(ResourceController.java:97)
>   at hudson.model.Executor.run(Executor.java:429)
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
> failed:
> WorkflowScript: Loading libraries failed
>
>
> So what I'm wondering at this point, is there a plugin I'm missing?   What 
> plugins are necessary to run Groovy pipelines including shared libraries?
>
>
> I'm stumped here... and grasping at straws.
>
>
> On Tue, Oct 16, 2018 at 6:29 PM Jan Monterrubio 
> wrote:
>
>> Are you missing the @Library import in your pipeline?  Or does your
>> shared library have a load implicitly declared?
>>
>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>
>>
>>
>> On Tue, Oct 16, 2018 at 14:49 Peter Berghold 
>> wrote:
>>
>>> Here is a tree of a very simple "library" I set up:
>>>
>>> ├── build.xml
>>> ├── manifest.mf
>>> ├── nbproject
>>> │   ├── build-impl.xml
>>> │   ├── genfiles.properties
>>> │   ├── groovy-build.xml
>>> │   ├── private
>>> │   │   ├── config.properties
>>> │   │   ├── private.properties
>>> │   │   └── private.xml
>>> │   ├── project.properties
>>> │   └── project.xml
>>> └── src
>>> ├── net
>>> │   └── berghold
>>> │   └── MainTest.groovy
>>> └── SimpleGroovyScript.groovy
>>>
>>>
>>> Most important of which is under "src" with the class MainTest
>>>
>>> Here is the class itself:
>>>
>>> /*
>>>  * To change this license header, choose License Headers in Project
>>> Properties.
>>>  * To change this template file, choose Tools | Templates
>>>  * and open the template in the editor.
>>>  */
>>>
>>> package net.berghold
>>>
>>> /**
>>>  *
>>>  * @

Re: Shared groovy library frustration

2018-10-17 Thread Peter Berghold
Interestingly enough on a Jenkins server i manage where I have working
shared libraries (multiple) I don't use the @Library form at all.  I tried
it on this other Jenkins server (the one I'm trying to *get* working) and
it didn't work.

In my first attempt I simply used:

@Library('lib3') _

which I saw in this documentation:
https://jenkins.io/doc/book/pipeline/shared-libraries/

that yielded me the following errors

ERROR: No version specified for library lib3
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: Loading libraries failed


OK fine,  I'll add a version to it which according to the cited page
above can be a branch and "master" is certainly a branch.


@Library('lib3@master') _


Using that gave me more errors

Loading library lib3@master
java.lang.NullPointerException
at 
org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:82)
at 
org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:157)
at 
org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:138)
at 
org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
at 
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
at 
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
at 
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
at 
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
at 
groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
at 
org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131)
at 
org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125)
at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560)
at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521)
at 
org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:317)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: Loading libraries failed


So what I'm wondering at this point, is there a plugin I'm missing?
What plugins are necessary to run Groovy pipelines including shared
libraries?


I'm stumped here... and grasping at straws.


On Tue, Oct 16, 2018 at 6:29 PM Jan Monterrubio 
wrote:

> Are you missing the @Library import in your pipeline?  Or does your shared
> library have a load implicitly declared?
>
> https://jenkins.io/doc/book/pipeline/shared-libraries/
>
>
>
> On Tue, Oct 16, 2018 at 14:49 Peter Berghold 
> wrote:
>
>> Here is a tree of a very simple "library" I set up:
>>
>> ├── build.xml
>> ├── manifest.mf
>> ├── nbproject
>> │   ├── build-impl.xml
>> │   ├── genfiles.properties
>> │   ├── groovy-build.xml
>> │   ├── private
>> │   │   ├── config.properties
>> │   │   ├── private.properties
>> │   │   └── private.xml
>> │   ├── project.properties
>> │   └── project.xml
>> └── src
>> ├── net
>> │   └── berghold
>> │   └── MainTest.groovy
>> └── SimpleGroovyScript.groovy
>>
>>
>> Most important of which is under "src" with the class MainTest
>>
>> Here is the class itself:
>>
>> /*
>>  * To change this license header, choose License Headers in Project
>> Properties.
>>  * To change this template file, choose Tools | Templates
>>  * and open the template in the editor.
>>  */
>>
>> package net.berghold
>>
>> /**
>>  *
>>  * @author peter
>>  */
>> class MainTest implements Serializable {
>> def Object context
>>
>> def void runme(){
>> context.sh('echo foobar')
>> }
>> }
>>
>> so far nothing earth shattering.  I've set up this shared library in the
>> main Jenkins setup menu.   Should be groovy so far  but it isn't
>>
>> Here is a simple pipeline I set up to test this:
>>
>> import net.berghold.MainTest
>>
>> node('master'){
>> step('run test'){
>> def MainTest mt = new MainTest(context: this)
>>
>> mt.runme()
>> }
>> }
>>
>> When I try to &qu

Shared groovy library frustration

2018-10-16 Thread Peter Berghold
Here is a tree of a very simple "library" I set up:

├── build.xml
├── manifest.mf
├── nbproject
│   ├── build-impl.xml
│   ├── genfiles.properties
│   ├── groovy-build.xml
│   ├── private
│   │   ├── config.properties
│   │   ├── private.properties
│   │   └── private.xml
│   ├── project.properties
│   └── project.xml
└── src
├── net
│   └── berghold
│   └── MainTest.groovy
└── SimpleGroovyScript.groovy


Most important of which is under "src" with the class MainTest

Here is the class itself:

/*
 * To change this license header, choose License Headers in Project
Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package net.berghold

/**
 *
 * @author peter
 */
class MainTest implements Serializable {
def Object context

def void runme(){
context.sh('echo foobar')
}
}

so far nothing earth shattering.  I've set up this shared library in the
main Jenkins setup menu.   Should be groovy so far  but it isn't

Here is a simple pipeline I set up to test this:

import net.berghold.MainTest

node('master'){
step('run test'){
def MainTest mt = new MainTest(context: this)

mt.runme()
}
}

When I try to "build" this I get the following error to the console:

Running in Durability level: MAX_SURVIVABILITY
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 1: unable to resolve class net.berghold.MainTest
 @ line 1, column 1.
   import net.berghold.MainTest
   ^

1 error


to me that implies the library is not being loaded for reasons I just don't
get.

Things I tried:

I actually told it to implicitly load this library but it now complains
that it needs a version.  I told it "master" and it claims it can't find
that version.   I tried */master refs/master and a few other things I know
exist and the error came back that it could not validate the version with a
null pointer error under the details.

Has this functionality been broken?

Running Jenkins 2.147.   This all used to work.  This example is a pared
down version and the original shared libs that worked no longer work and
I'm a bit concerned.

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


Load balanced Jenkins?

2018-08-23 Thread Peter Berghold
I've been messing about a bit with Docker on Digital Ocean and was going to
branch next onto  Docker Swarm stuff.  I was wondering about deploying
Jenkins into a swarm and using a load balancer to switch between instances.

Is anybody aware of way of having multiple instances of Jenkins using the
same configurations other than possibly using slaves?

In other words it in my mind would be kinda useful if I logged into
"jenkins.some.domain" and let the load balancer direct my request between
multiple instances and have them look the same.

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


Re: Build on Nuget updates: does not seem to trigger using Generic-Artifactory Integration...

2018-03-29 Thread Peter Swallow
Did you ever resolve this?

The documentation for the nuget plugin is non-existant. I can't even get it 
to run the "Nuget Trigger Polling" once.

On Tuesday, 11 October 2016 23:52:11 UTC+1, RiRL wrote:
>
> I have setup a project to trigger "Build on NuGet updates" with a schedule 
> like [H/5 * * * *]; e.g.: every 5 minutes.
>
>
> I have configured Artifactory as the NuGet package server by setting the 
> Artifactory deployment server (note: another Jekins project successfully 
> populates NuGet packages to this server using a Target repository -- this 
> works fine, I can see the packages there in the Artifactory WebUI...)
>
> In the job I want to trigger on a nuget update, I have specified the 
> Resolution Details to the same deployment server and have configured the 
> Resolved Artifacts (yes we are using Artifactory Professional) and given 
> the reference to the repository, file pattern, and build informaton with 
> the mapping to the workspace.
> (note: this runs fine if I push the Build Now button... its fetches the 
> corresponding artifact(s) into the Jenkins workspace, as expected).
>
> However, despite the fact that I see updates to the Nuget Trigger Log, the 
> project does not run when there is (in fact) and update to the Nuget 
> package (as defined in the section immediately above).
>
> Anyone have any suggestions?
>

-- 
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/af5077fc-2e49-40c6-98fc-d602f03d26f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Templating inside a Groovy pipeline?

2018-03-09 Thread Peter Berghold
Is there a text templating solution that *works* inside a Groovy pipeline?

I tried both SimpleTemplate and StreamingTemplate and both error out with
an exception somewhere in the bowels of the class.  Am perhaps stuck with
using a callout to a Perl script to get this to work?

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


Security Access Violation?

2018-01-15 Thread Peter Berghold
Anybody know what the heck this means and how to fix it?

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:
unclassified new com.att.ncs.entities.PerlApplication WorkflowScript
org.codehaus.groovy.runtime.GStringImpl java.lang.String
java.lang.String java.lang.String
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onNewInstance(SandboxInterceptor.java:144)


It is rejecting access to a class constructor that doesn't look a
whole lot different than others.

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


Kubernetes Jenkins Workspace Missing

2018-01-10 Thread Peter Wiebe
For anyone that is running Jenkins inside of Kubernetes I keep running in 
to this error at different stages in a build: 

missing workspace 
/home/jenkins/workspace/microservices_master-C4XITRNJL24XVB242LAFAP2EBQBCDSTGI4MVXXF4JREVIVNXQMWA
 
on jenkins-slave-hjmbd-11tcc

At first I tried to put a higher performance instance in my cluster to make 
> sure it wasn't a resource problem but that wasn't a solution. When looking 
> over the plugin readme on Github I noticed that running your own defined 
> containers inside of the slave are still Alpha and "there are still some 
> problems with concurrent execution and pipeline resumption".


I am now trying to reduce the number of defined containers to one to see if 
that helps. 

-- 
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/6d3ea4eb-3d4d-4740-84f7-0be6fe2e739f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Pipelines) String split; why isn't this working?

2018-01-08 Thread Peter Berghold
Given an input of:
/data/ci/jenkins/workspace/PeterBLaboratory/Test-unittestlibobjs-10/somesubdir/somefile.txt

I have a function:


def basename(path){
def pieces

pieces = path.split("/")

context.sh 'echo first element: ' + pieces[0]
context.sh 'echo path: ' + path
context.sh 'echo parts: ' + pieces.size

def idx
idx = pieces.size - 1

return pieces[idx]
}

and I expect it to return the last element in a split array based on the
character '/'

What I'm seeing instead is:

groovy.lang.MissingPropertyException: Exception evaluating property
'size' for java.util.Arrays$ArrayList, Reason:
groovy.lang.MissingPropertyException: No such property: size for
class: java.lang.String


what the heck is going on here?

It also looks like path.split is not behaving as I'd expect and returning
an array of strings based on the delimiter. Thoughts folks?

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


Re: RejectedAccessException

2017-12-12 Thread Peter Berghold
OK:
After deciding to put this project aside and not look at it for a while I
came back to it and found out that I was being stupid. :-(

The constructor for the Notification class has two parameters not one and
in the heat of battle so to speak I forgot about the other one.  Once I got
that straight the job has started working again..   well... at least isn't
having that issue any more. :-)

SO apparently unclassified applies to a difference in method signatures.

On Sat, Dec 9, 2017 at 5:08 PM Victor Martinez <
victormartinezru...@gmail.com> wrote:

> Apparently unclassified means the script approval process cannot be used:
> https://jenkins.io/doc/book/managing/script-approval/ . As Jesse already
> mentioned in another thread (
> https://stackoverflow.com/questions/33573568/sandbox-is-preventing-me-from-formatting-a-string)
> it seems a bug in the Script security plugin. Can you raise a jira ticket
> with all those details? The more details the better to help to diagnose
> what's going on.
>
> 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/e4172d1c-29af-4609-adab-567b18f29f3a%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/CAArvnv34wXJUfbjimse_W7XLV46986NvDNCUX%3D1%3D-_J-fjtA7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RejectedAccessException

2017-12-08 Thread Peter Berghold
What does this mean and how do I fix it?

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:
unclassified new com.att.ncs.actions.Notifications WorkflowScript


somewhere in this:

} catch (Throwable e) {
currentBuild.result = "FAILURE"
stage('squeal like a pig'){
notify= new Notifications(this)

notify.notifyFailed()
}
workrepo.cleanup()
throw e


seems to be the issue.


Thoughts?

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


Jenkis Trigger Nightwatch JS Automation Testing

2017-12-06 Thread Wong Peter
Hello to all, 

How to configure Jenkins to trigger automation testing script of 
Nightwatch? I would need a step by step guide. Thanks all. 

-- 
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/4976696e-9d67-4186-bd2d-f865c62625dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


java.lang.UnsupportedOperationException: Refusing to marshal org.codehaus.groovy.runtime.GStringImpl for security reasons

2017-12-05 Thread Peter Berghold
what on earth does that message mean?

Here is the code this seems to be happening to:

class Notifications implements Serializable {
def context
def dataBlocks
def mailLists
def workspace

// emailext body: 'my email body', subject: 'email subject', to:
't...@test.dev', replyTo: 't...@test.dev', mimeType: 'text/html';
Notifications(ctx,workspace){
context=ctx;
dataBlocks = new Data(context,workspace)
mailLists = this.loadJSON('data/email-lists.json')

}
def loadJSON(fname){
def retval
context.dir(workspace){
retval = jsonParse(context.readFile(fname))
}
return retval
}
8< snip 8<-

in particular in the loading of the JSON file.

It is laid out as
{
"list1" :: [
"member1" ...etc.
 ]
}


thoughts?

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


Re: Translation between declaritive pipleline and groovy pipeline

2017-12-04 Thread Peter Berghold
Kool! Thanks!

I suspected as much but now I full understand what's going on.

On Mon, Dec 4, 2017 at 1:15 AM Ramanathan Muthaiah 
wrote:

> What would be the equivalent of this:
>>
>> post {
>> always {
>> echo 'One way or another, I have finished'
>> deleteDir() /* clean up our workspace */
>> }
>> success {
>> echo 'I succeeeded!'
>> }
>> unstable {
>> echo 'I am unstable :/'
>> }
>> failure {
>> echo 'I failed :('
>> }
>> changed {
>> echo 'Things were different before...'
>> }
>> }
>> }
>>
>> in a Groovy pipleline?
>>
>> I'm looking at using "something" to notify by email if a build fails
>>
>>
> Groovy code presented in this Cloudbees' article is about mail
> notifications (also, slack and hipchat) -- but you may want to extend it to
> suit your needs.
>
> https://www.cloudbees.com/blog/sending-notifications-pipeline
>
> /Ram
>
> --
> 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/da5927cf-2fc5-4c46-9734-8db06b87be7a%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/CAArvnv3%2ByXh54RAG8pr3yspRUMXzmV6vAsADjuDn0gC__t-93w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Translation between declaritive pipleline and groovy pipeline

2017-12-03 Thread Peter Berghold
What would be the equivalent of this:

post {
always {
echo 'One way or another, I have finished'
deleteDir() /* clean up our workspace */
}
success {
echo 'I succeeeded!'
}
unstable {
echo 'I am unstable :/'
}
failure {
echo 'I failed :('
}
changed {
echo 'Things were different before...'
}
}
}

in a Groovy pipleline?

I'm looking at using "something" to notify by email if a build fails

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


Re: Define a class inside a groovy pipeline?

2017-12-01 Thread Peter Berghold
Yep!  That's the ticket.   Thannks again Daniel!

On Fri, Dec 1, 2017 at 2:06 PM Peter Berghold <salty.cowd...@gmail.com>
wrote:

> going to give it a shot Daniel.  Thank!
>
> On Fri, Dec 1, 2017 at 1:56 PM Daniel Butler <danielsimonbut...@gmail.com>
> wrote:
>
>> This is my preferred as it’s nice and explicit:
>>
>> class MyClass implements Serializable {
>>
>>
>>
>>   def ctx
>>
>>
>>
>>   MyClass(ctx) {
>>
>>  this.ctx=ctx
>>
>>   }
>>
>>
>>
>>   def bark(){
>>
>>  ctx.sh 'echo WOOF!'
>>
>>  }
>>
>> }
>>
>>
>>
>>
>>
>> You’d then construct it:
>> def mc = new MyClass(this)
>>
>>
>>
>> If you remove the class definition so you end up with a groovy file of
>> methods you end up with class with the same name as the groovy file. Inside
>> the class you can call pipeline steps and access the global variables like
>> it’s a pipeline script. However I don’t think you can have anything other
>> than a no-arg constructor.
>>
>>
>>
>>
>>
>> Regards,
>>
>> Daniel.
>>
>>
>>
>> *From: *Peter Berghold <salty.cowd...@gmail.com>
>> *Sent: *01 December 2017 18:02
>> *To: *Jenkins Users <jenkinsci-users@googlegroups.com>
>> *Subject: *Define a class inside a groovy pipeline?
>>
>>
>>
>> So I was playing around and tried something.   Here's a class I defined:
>>
>>
>>
>> class MyClass implements Serializable {
>>
>>
>>
>>   MyClass() {
>>
>>   }
>>
>>
>>
>>   def bark(){
>>
>>  sh 'echo WOOF!'
>>
>>  }
>>
>> }
>>
>>
>>
>> and so I instantiate it
>>
>>
>>
>> def mc = new MyClass()
>>
>>
>>
>> and I access my method
>>
>>
>>
>> mc.bark()
>>
>>
>>
>> and I get
>>
>>
>>
>> hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No 
>> signature of method: MyClass.sh() is applicable for argument types: 
>> (java.lang.String) values: [echo WOOF!]
>>
>>
>>
>> So my question is: if I want to access what I perceive as normal pipeline 
>> functions from inside a class how do I do it?  What magic foo do I have to 
>> use?
>>
>>
>>
>> --
>> 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/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%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/5a21a5b5.06aadf0a.a3b73.5f40%40mx.google.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/5a21a5b5.06aadf0a.a3b73.5f40%40mx.google.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/CAArvnv0Jz4AsdLQdtVPj0jg-eu0tX_f%2Bucv%3Dxt8PgK8K9myunw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Define a class inside a groovy pipeline?

2017-12-01 Thread Peter Berghold
going to give it a shot Daniel.  Thank!

On Fri, Dec 1, 2017 at 1:56 PM Daniel Butler <danielsimonbut...@gmail.com>
wrote:

> This is my preferred as it’s nice and explicit:
>
> class MyClass implements Serializable {
>
>
>
>   def ctx
>
>
>
>   MyClass(ctx) {
>
>  this.ctx=ctx
>
>   }
>
>
>
>   def bark(){
>
>  ctx.sh 'echo WOOF!'
>
>  }
>
> }
>
>
>
>
>
> You’d then construct it:
> def mc = new MyClass(this)
>
>
>
> If you remove the class definition so you end up with a groovy file of
> methods you end up with class with the same name as the groovy file. Inside
> the class you can call pipeline steps and access the global variables like
> it’s a pipeline script. However I don’t think you can have anything other
> than a no-arg constructor.
>
>
>
>
>
> Regards,
>
> Daniel.
>
>
>
> *From: *Peter Berghold <salty.cowd...@gmail.com>
> *Sent: *01 December 2017 18:02
> *To: *Jenkins Users <jenkinsci-users@googlegroups.com>
> *Subject: *Define a class inside a groovy pipeline?
>
>
>
> So I was playing around and tried something.   Here's a class I defined:
>
>
>
> class MyClass implements Serializable {
>
>
>
>   MyClass() {
>
>   }
>
>
>
>   def bark(){
>
>  sh 'echo WOOF!'
>
>  }
>
> }
>
>
>
> and so I instantiate it
>
>
>
> def mc = new MyClass()
>
>
>
> and I access my method
>
>
>
> mc.bark()
>
>
>
> and I get
>
>
>
> hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No 
> signature of method: MyClass.sh() is applicable for argument types: 
> (java.lang.String) values: [echo WOOF!]
>
>
>
> So my question is: if I want to access what I perceive as normal pipeline 
> functions from inside a class how do I do it?  What magic foo do I have to 
> use?
>
>
>
> --
> 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/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%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/5a21a5b5.06aadf0a.a3b73.5f40%40mx.google.com
> <https://groups.google.com/d/msgid/jenkinsci-users/5a21a5b5.06aadf0a.a3b73.5f40%40mx.google.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/CAArvnv3AhMEEL8iZgCgPavG6uyQyQ5pWRF_0S3%2BsQOSggVC35g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Define a class inside a groovy pipeline?

2017-12-01 Thread Peter Berghold
So I was playing around and tried something.   Here's a class I defined:

class MyClass implements Serializable {

  MyClass() {
  }

  def bark(){
 sh 'echo WOOF!'
 }
}

and so I instantiate it

def mc = new MyClass()

and I access my method

mc.bark()

and I get

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No
signature of method: MyClass.sh() is applicable for argument types:
(java.lang.String) values: [echo WOOF!]


So my question is: if I want to access what I perceive as normal
pipeline functions from inside a class how do I do it?  What magic foo
do I have to use?

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


Re: Environmental values from a Groovy Pipeline.

2017-12-01 Thread Peter Berghold
sounds like that was what bit me.   I'm seeing bizarre behavior all over
the place that now makes sense given what you said about node {}

On Fri, Dec 1, 2017 at 1:19 AM 'Björn Pedersen' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi,
>
> it depends on where in your code you are trying to use this. A workspace
> is only available (and the  env set) while inside a node or ws block. And
> beware, when different parts of the pipeline run on different node, then
> each
> part has it's own workspace, possibly even at different locations.  And
> unless there are strong requirements for absolute pathes,  better just use
> relative pathes (all steps will by default have the WORKSPACE as current
> working dir).
>
> Björn
>
>
> Am Donnerstag, 30. November 2017 21:48:15 UTC+1 schrieb Peter Berghold:
>>
>> I am most interested in using the "WORKSPACE" value in the enviromental
>> values. within my pipeline..  I use it as a base to create a staging
>> directory from so I have a value defined such as:
>>
>> def outrepo="${env.WORKSPACE}/shipping-${env.BUILD_NUMBER}"
>>
>> what I am getting back from that is not what I'm expecting at all.
>>
>> OUTREPO: null/shipping-152
>>
>>
>> Looks like env.WORKSPACE is being resolved as a "null" instead of the full 
>> path to the job's workspace.
>>
>>
>> Is there a different form of this I should be using?  I clearly see 
>> WORKSPACE as being defined when within a shell I see that value running the 
>> shell command "env."
>>
>>
>> I could hard code it I supposed, but that kind defeats the purpose a bit
>>
>>
>> --
> 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/ff698027-6d29-476c-b04b-ac2397561c9e%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/ff698027-6d29-476c-b04b-ac2397561c9e%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/CAArvnv0-qPKcJBjJKW4u6yRvhzTP7KwS7OATcvavUT20mMLFeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Environmental values from a Groovy Pipeline.

2017-11-30 Thread Peter Berghold
I am most interested in using the "WORKSPACE" value in the enviromental
values. within my pipeline..  I use it as a base to create a staging
directory from so I have a value defined such as:

def outrepo="${env.WORKSPACE}/shipping-${env.BUILD_NUMBER}"

what I am getting back from that is not what I'm expecting at all.

OUTREPO: null/shipping-152


Looks like env.WORKSPACE is being resolved as a "null" instead of the
full path to the job's workspace.


Is there a different form of this I should be using?  I clearly see
WORKSPACE as being defined when within a shell I see that value
running the shell command "env."


I could hard code it I supposed, but that kind defeats the purpose a bit

-- 
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/CAArvnv34ASTPPd6rfC5zQ%2BwXG%3Do5Q-xdwwAsriL-vwvJ6x8aeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Working pipeline has stopped working...

2017-11-29 Thread Peter Berghold
the only error I'm seeing is this:

[sendRPMS] touch: cannot touch
'/data/staging/repos/released@tmp/durable-e537873f/jenkins-log.txt


what would cause this to happen?

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


Pipelines and @tmp directories

2017-11-29 Thread Peter Berghold
Simple question:  is there a way to make a pipeline not create those? Or at
the very least clean up after them?

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


Book recommendation: Mastering Jenkins

2017-11-16 Thread Peter Berghold
Hi folks,

What I'm looking for in a new book to add to my digital bookshelf is
something that will expand my knowledge (very sketchy at the moment) of
Pipelines in Jenkins.  In particular creating libraries to extend
Pipelines.

I've run into few things that I just cannot figure out by reading what's on
line for this subject.

How well does "Mastering Jenkins" by Jonathan McAllister cover those two
topics above?

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


try/catch in a pipeline?

2017-10-10 Thread Peter Berghold
I've noticed some "non-deterministic behavior" in my first few pipelines
and I was wondering if there i some sort of try/catch structure I could use
to catch errors.  It would sort of look like this:

try {
  sh 'some_unix_command'
} catch {
 send_mail('Step foo failed on some_unix_command')
}

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


Jenkins Pipelines and Puppet Code RSPEC testing

2017-10-10 Thread Peter Berghold
Hi folks,

I've been considering creating Jenkins files inside all of my Puppet
modules and converting from the way I'm dealing with our Puppet code today
to using pipelines.

A thumbnail of what I'm doing today with Jenkins is every Puppet module is
"tested" within a Jenkins job which is a mix of shell callouts and rake
callouts.   The critical steps are as follows:

bundle exec install
bundle exec rake spec_clean
bundle exec rake validate
bundle exec rake lint
bundle exec rake spec

This is all done the "Jenkins" way using the rake invocation job item with
"bundle exec" checked except for the very first step which is indeed a
shell callout

Moving to a pipeline I not only want to do the above but I'd like to
generate report especially for the rake spec step.

I get the impression that to invoke the spec steps I'd have to do so as a
"sh" step, is that true or is there some much more pipeline-ish way of
doing this?   How do I generate and publish reports from a pipeline?

Hints and nudging me in the right direction 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/CAArvnv21RUR-v8ySPFUWJzSp1i%2BkMQjsc4MiRN65bH6ZrUf0qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative pipeline docker executeable TCP supported?

2017-09-02 Thread 'Peter Teichner' via Jenkins Users
That doesn't really work as I haven't got docker or have no intention of 
running docker on the node of the jenkins master. So is there a way to use 
a remote docker machine or no?

On Saturday, 2 September 2017 00:00:25 UTC+1, Reza Etezal wrote:
>
> You need to either set it in the Global Tool Confoguration, at the system 
> level https:///configureTools/, or in the Tool Location at the 
> node level https:///computer//configure
>
>
> On Friday, September 1, 2017 at 6:40:32 PM UTC-4, Peter Teichner wrote:
>>
>> I've got a quick question: when using declarative pipeline with the agent 
>> specified as a docker image how does the pipeline determine where the 
>> docker executable is? Is there a way to set a remote docker over TCP?
>>
>> agent {
>> docker {
>> image 'maven:3-alpine'
>> label 'my-defined-label'
>> args  '-v /tmp:/tmp'
>> }
>> }
>>
>> I use CoreOS for all the Docker related stuff and I haven't got Docker 
>> running on the Jenkins master.
>>
>>

-- 
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/346beadc-4834-49ba-a6f1-0c91e482e13c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Declarative pipeline docker executeable TCP supported?

2017-09-01 Thread 'Peter Teichner' via Jenkins Users
I've got a quick question: when using declarative pipeline with the agent 
specified as a docker image how does the pipeline determine where the 
docker executable is? Is there a way to set a remote docker over TCP?

agent {
docker {
image 'maven:3-alpine'
label 'my-defined-label'
args  '-v /tmp:/tmp'
}
}

I use CoreOS for all the Docker related stuff and I haven't got Docker running 
on the Jenkins master.

-- 
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/8e849954-bf0c-4cf6-9eac-e55b1bbc3045%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: java.io.IOException: Unable to read /var/lib/jenkins/jobs/MyJobTest/config.xml

2017-08-17 Thread Peter Darton
I'd agree that the error isn't the most helpful error message :-/

If it were me, I'd start by enduring that the "workflow-job" plugin is at 
version 2.14 in the new server, as that's the version that the old job file 
is looking for.
You could also try manually creating a job with that name and then seeing 
what the resulting config.xml looks like.  If it looks similar, you could 
then try overwriting the file and then telling Jenkins to reload its 
configuration from disk.
If that doesn't work, I'd try manually re-creating the job and then using a 
decent file-comparison tool to see what the differences are between the 
manually-created job's config.xml and the original config.xml file - it 
might be something silly like end-of-line codes, or character encoding, or 
it might well be a different/incompatible plugin version.

-- 
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/2385fe41-9ab4-40b8-93b1-1bf13d3aa4b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Weird failure in a build job (Python egg -> RPM)

2017-08-08 Thread Peter Berghold
DOH!  why didn't I think of that! :-)  Thanks Mark... going to give that a
try...

On Tue, Aug 8, 2017 at 11:20 AM Mark Waite <mark.earl.wa...@gmail.com>
wrote:

> Possibly you have a different locale setting in the context of your
> Jenkins job than you have in the context where it works?
>
> LC_ALL or LANG or ...
>
> Mark Waite
>
> On Tue, Aug 8, 2017 at 9:05 AM Peter Berghold <salty.cowd...@gmail.com>
> wrote:
>
>> I have a Python egg that I'm trying to repackage into an RPM for a custom
>> installation path. When the build is run manually it goes off without a
>> hitch.
>>
>> When the build is run within Jenkins (which is my preferred method) the
>> build fails with a oddball Unicode error.
>>
>> I know this is not a Python forum, but I'm in hopes someone in the
>> Jenkins community has seen this and has a fix for it
>>
>> error noted -
>> Traceback (most recent call last): File "setup.py", line 72, in 
>> "ipaddress", File "/opt/ncs/lib/python3.6/distutils/core.py", line 148, in
>> setup dist.run_commands() File "/opt/ncs/lib/python3.6/distutils/dist.py",
>> line 955, in run_commands self.run_command(cmd) File
>> "/opt/ncs/lib/python3.6/distutils/dist.py", line 974, in run_command
>> cmd_obj.run() File
>> "/opt/ncs/lib/python3.6/site-packages/setuptools/command/bdist_rpm.py",
>> line 19, in run orig.bdist_rpm.run(self) File
>> "/opt/ncs/lib/python3.6/distutils/command/bdist_rpm.py", line 283, in run
>> "writing '%s'" % spec_path) File "/opt/ncs/lib/python3.6/distutils/cmd.py",
>> line 335, in execute util.execute(func, args, msg, dry_run=self.dry_run)
>> File "/opt/ncs/lib/python3.6/distutils/util.py", line 301, in execute
>> func(*args) File "/opt/ncs/lib/python3.6/distutils/file_util.py", line
>> 236, in write_file f.write(line + "\n") UnicodeEncodeError: 'ascii' codec
>> can't encode character '\U0001f44b' in position 2671: ordinal not in
>> range(128)
>>
>> Thoughts anybody?
>>
>> --
>> 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/CAArvnv2eCTJrU37mjAj8K2SEkawt67%3D2DvotxG2NEgbfUdbb8A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv2eCTJrU37mjAj8K2SEkawt67%3D2DvotxG2NEgbfUdbb8A%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/CAO49JtEy4LhCMwy_E%2BARyPCvb-Dm_9nmHj-78s2KAhwN%3DGmUMQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEy4LhCMwy_E%2BARyPCvb-Dm_9nmHj-78s2KAhwN%3DGmUMQ%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/CAArvnv32VUyUg%3Dihk9J66Z3VmM8b%3DNgNwm6RVj3peksTmAmzHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Weird failure in a build job (Python egg -> RPM)

2017-08-08 Thread Peter Berghold
I have a Python egg that I'm trying to repackage into an RPM for a custom
installation path. When the build is run manually it goes off without a
hitch.

When the build is run within Jenkins (which is my preferred method) the
build fails with a oddball Unicode error.

I know this is not a Python forum, but I'm in hopes someone in the Jenkins
community has seen this and has a fix for it

error noted -
Traceback (most recent call last): File "setup.py", line 72, in 
"ipaddress", File "/opt/ncs/lib/python3.6/distutils/core.py", line 148, in
setup dist.run_commands() File "/opt/ncs/lib/python3.6/distutils/dist.py",
line 955, in run_commands self.run_command(cmd) File
"/opt/ncs/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run() File
"/opt/ncs/lib/python3.6/site-packages/setuptools/command/bdist_rpm.py",
line 19, in run orig.bdist_rpm.run(self) File
"/opt/ncs/lib/python3.6/distutils/command/bdist_rpm.py", line 283, in run
"writing '%s'" % spec_path) File "/opt/ncs/lib/python3.6/distutils/cmd.py",
line 335, in execute util.execute(func, args, msg, dry_run=self.dry_run)
File "/opt/ncs/lib/python3.6/distutils/util.py", line 301, in execute
func(*args) File "/opt/ncs/lib/python3.6/distutils/file_util.py", line 236,
in write_file f.write(line + "\n") UnicodeEncodeError: 'ascii' codec can't
encode character '\U0001f44b' in position 2671: ordinal not in range(128)

Thoughts anybody?

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


Re: Installing / maintaining Jenkins on a Linux host machine

2017-07-11 Thread Peter Berghold
My first two installations of Jenkins were on RHEL 6.x (old company
standard image) and the issues I used to have there is why I moved to
Ubuntu. (future company standard image)

On Tue, Jul 11, 2017 at 10:37 AM Jason LeMauk <
jason.lem...@csquaredsystems.com> wrote:

> Thank you for sharing your experience!
>
>
>
> The company is leaning towards not using Ubuntu / Debian, however we can
> still use it as our native operating system hosting our Jenkins instance if
> it is best practice / required. I have my own personal Jenkins instance
> setup on an Ubuntu machine and agree that the Ubuntu approach has been
> pretty straight forward.
>
>
>
> Does anybody have any experience installing / maintaining Jenkins on a
> non-Debian / non-Ubuntu Linux operating system (with Red Hat / Fedora /
> CentOS ruled out)?
>
> I am trying to discern whether or not we are relegated to a Debian /
> Ubuntu base operating system to host our Jenkins instance on (keeping in
> mind that Red Hat / Fedora / CentOS is ruled out). It should probably be
> noted that we will likely install / upgrade on the Jenkins LTS release
> schedule.
>
> Thanks again for any advice or guidance!
>
> -Jason
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Peter Berghold
> *Sent:* Tuesday, July 11, 2017 10:28 AM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Installing / maintaining Jenkins on a Linux host machine
>
>
>
> I migrated my Jenkins installation over to Ubuntu from RHEL and haven't
> looked back.  My drivers may be different than yours and my reason was I am
> using Jenkins to perform CI on my Puppet environment.  Part of that is
> running some tests on the Puppet code before it is deployed and this works
> *much* better on Ubuntu that Red Hat which was getting rather McGiverish
> given all the hacks I did to get it to work.
>
>
>
> So I guess YMMV depending on what you are trying to accomplish.   If you
> are doing this in a corporate environment make sure with the powers that be
> whatever solution you pick meets with your list of acceptable solutions.
>
>
>
> On Tue, Jul 11, 2017 at 10:18 AM Jason LeMauk <
> jason.lem...@csquaredsystems.com> wrote:
>
> We are currently provisioning a physical server as our automation server.
> We are making considerations as far as what our native operating system
> should be on this physical machine.
>
>
>
> We are going to use a Linux OS as our operating system. From the Jenkins
> download page, https://jenkins.io/download/, I can see that Jenkins’
> package distribution is available to Red Hat / Fedora / CentOS (which we
> will not be using), as well as Ubuntu / Debian. I also notice that a
> Generic Java package (WAR) distribution is available.
>
>
>
> Am I correct in assuming that if we use a non-Ubuntu / non-Debian
> operating system, we can still install Jenkins via the WAR distribution
> without issue?
>
> Are we relegated to using Debian / Ubuntu if we’re going to install
> Jenkins on a Linux machine (with the possibility of Red Hat / Fedora /
> CentOS ruled out)?
>
>
>
> Thanks for any guidance from anybody who may have experience installing /
> maintaining a Jenkins instance on a Linux machine!
>
>
>
> -Jason
>
> --
> 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/BY2PR12MB0599526179AD04C5679959E489AE0%40BY2PR12MB0599.namprd12.prod.outlook.com
> <https://groups.google.com/d/msgid/jenkinsci-users/BY2PR12MB0599526179AD04C5679959E489AE0%40BY2PR12MB0599.namprd12.prod.outlook.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/CAArvnv22Md4_0YZdgOuAE%2BpZs9Vu3g0BdHJn5qm%2BnemwoAv5sg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv22Md4_0YZdgOuAE%2BpZs9Vu3g0BdHJn5qm%2BnemwoAv5sg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because yo

Re: Installing / maintaining Jenkins on a Linux host machine

2017-07-11 Thread Peter Berghold
I migrated my Jenkins installation over to Ubuntu from RHEL and haven't
looked back.  My drivers may be different than yours and my reason was I am
using Jenkins to perform CI on my Puppet environment.  Part of that is
running some tests on the Puppet code before it is deployed and this works
*much* better on Ubuntu that Red Hat which was getting rather McGiverish
given all the hacks I did to get it to work.

So I guess YMMV depending on what you are trying to accomplish.   If you
are doing this in a corporate environment make sure with the powers that be
whatever solution you pick meets with your list of acceptable solutions.

On Tue, Jul 11, 2017 at 10:18 AM Jason LeMauk <
jason.lem...@csquaredsystems.com> wrote:

> We are currently provisioning a physical server as our automation server.
> We are making considerations as far as what our native operating system
> should be on this physical machine.
>
>
>
> We are going to use a Linux OS as our operating system. From the Jenkins
> download page, https://jenkins.io/download/, I can see that Jenkins’
> package distribution is available to Red Hat / Fedora / CentOS (which we
> will not be using), as well as Ubuntu / Debian. I also notice that a
> Generic Java package (WAR) distribution is available.
>
>
>
> Am I correct in assuming that if we use a non-Ubuntu / non-Debian
> operating system, we can still install Jenkins via the WAR distribution
> without issue?
>
> Are we relegated to using Debian / Ubuntu if we’re going to install
> Jenkins on a Linux machine (with the possibility of Red Hat / Fedora /
> CentOS ruled out)?
>
>
>
> Thanks for any guidance from anybody who may have experience installing /
> maintaining a Jenkins instance on a Linux machine!
>
>
>
> -Jason
>
> --
> 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/BY2PR12MB0599526179AD04C5679959E489AE0%40BY2PR12MB0599.namprd12.prod.outlook.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/CAArvnv22Md4_0YZdgOuAE%2BpZs9Vu3g0BdHJn5qm%2BnemwoAv5sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: SSH Slave crashing immediately after start

2017-06-14 Thread Peter Berghold
Changing the version of Java to 1.8 did the trick.  The slave is back
online.

On Wed, Jun 14, 2017 at 7:53 AM Peter Berghold <salty.cowd...@gmail.com>
wrote:

> Okay I guess I'm going to have to investigate how to get the newer version
> of Java on Redhat. Redhat 6 at that. Thanks for the pointers.
>
> On Wed, Jun 14, 2017, 07:04 James Nord <jn...@cloudbees.com> wrote:
>
>> > java -version returned 1.7.0_75.
>>
>>
>> Jenkins 2.58+ only support java8 or higher, this includes your agents JVM.
>>
>>
>> /James
>>
>>
>> On Tuesday, June 13, 2017 at 9:05:40 PM UTC+1, Peter Berghold wrote:
>>>
>>> I'm trying to re-establish connectivity to an SSH slave that used to
>>> work when I was running a much older version of Jenkins.  Currently I'm
>>> using v2.65. What I'm seeing (somewhat trimmed) in the log is the following:
>>>
>>> [06/13/17 20:04:05] [SSH] Checking java version of java
>>> [06/13/17 20:04:05] [SSH] java -version returned 1.7.0_75.
>>> [06/13/17 20:04:05] [SSH] Starting sftp client.
>>> [06/13/17 20:04:05] [SSH] Copying latest slave.jar...
>>> [06/13/17 20:04:05] [SSH] Copied 719,269 bytes.
>>> Expanded the channel window size to 4MB
>>> [06/13/17 20:04:05] [SSH] Starting slave process: cd "/data/jenkins-slave" 
>>> && java  -jar slave.jar
>>> <===[JENKINS REMOTING CAPACITY]===>channel started
>>> Slave JVM has not reported exit code. Is it still running?
>>> [06/13/17 20:04:09] Launch failed - cleaning up connection
>>> [06/13/17 20:04:09] [SSH] Connection closed.
>>> ERROR: Connection terminated
>>> java.io.EOFException
>>> at 
>>> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
>>> at 
>>> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
>>> at 
>>> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
>>> at java.io.ObjectInputStream.(ObjectInputStream.java:301)
>>> at 
>>> hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
>>> at 
>>> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
>>> at 
>>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
>>> Caused: java.io.IOException: Unexpected termination of the channel
>>> at 
>>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
>>>
>>>
>>> At a loss...
>>>
>>> --
>> 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/ea6f2611-da6f-448d-9065-2e23fdf29a85%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/ea6f2611-da6f-448d-9065-2e23fdf29a85%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/CAArvnv3PpjCKWS%2BpLpUhHiRePx6hTwtEe2Y0HGo9jMR%2BymYZxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: SSH Slave crashing immediately after start

2017-06-14 Thread Peter Berghold
Okay I guess I'm going to have to investigate how to get the newer version
of Java on Redhat. Redhat 6 at that. Thanks for the pointers.

On Wed, Jun 14, 2017, 07:04 James Nord <jn...@cloudbees.com> wrote:

> > java -version returned 1.7.0_75.
>
>
> Jenkins 2.58+ only support java8 or higher, this includes your agents JVM.
>
>
> /James
>
>
> On Tuesday, June 13, 2017 at 9:05:40 PM UTC+1, Peter Berghold wrote:
>>
>> I'm trying to re-establish connectivity to an SSH slave that used to work
>> when I was running a much older version of Jenkins.  Currently I'm using
>> v2.65. What I'm seeing (somewhat trimmed) in the log is the following:
>>
>> [06/13/17 20:04:05] [SSH] Checking java version of java
>> [06/13/17 20:04:05] [SSH] java -version returned 1.7.0_75.
>> [06/13/17 20:04:05] [SSH] Starting sftp client.
>> [06/13/17 20:04:05] [SSH] Copying latest slave.jar...
>> [06/13/17 20:04:05] [SSH] Copied 719,269 bytes.
>> Expanded the channel window size to 4MB
>> [06/13/17 20:04:05] [SSH] Starting slave process: cd "/data/jenkins-slave" 
>> && java  -jar slave.jar
>> <===[JENKINS REMOTING CAPACITY]===>channel started
>> Slave JVM has not reported exit code. Is it still running?
>> [06/13/17 20:04:09] Launch failed - cleaning up connection
>> [06/13/17 20:04:09] [SSH] Connection closed.
>> ERROR: Connection terminated
>> java.io.EOFException
>>  at 
>> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
>>  at 
>> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
>>  at 
>> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
>>  at java.io.ObjectInputStream.(ObjectInputStream.java:301)
>>  at 
>> hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
>>  at 
>> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
>>  at 
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
>> Caused: java.io.IOException: Unexpected termination of the channel
>>  at 
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
>>
>>
>> At a loss...
>>
>> --
> 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/ea6f2611-da6f-448d-9065-2e23fdf29a85%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/ea6f2611-da6f-448d-9065-2e23fdf29a85%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/CAArvnv0VePW0gp4SzHtnJ7PggcViiRcZQj1%3DtjgT%2BOx0FfPEnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


SSH Slave crashing immediately after start

2017-06-13 Thread Peter Berghold
I'm trying to re-establish connectivity to an SSH slave that used to work
when I was running a much older version of Jenkins.  Currently I'm using
v2.65. What I'm seeing (somewhat trimmed) in the log is the following:

[06/13/17 20:04:05] [SSH] Checking java version of java
[06/13/17 20:04:05] [SSH] java -version returned 1.7.0_75.
[06/13/17 20:04:05] [SSH] Starting sftp client.
[06/13/17 20:04:05] [SSH] Copying latest slave.jar...
[06/13/17 20:04:05] [SSH] Copied 719,269 bytes.
Expanded the channel window size to 4MB
[06/13/17 20:04:05] [SSH] Starting slave process: cd
"/data/jenkins-slave" && java  -jar slave.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
Slave JVM has not reported exit code. Is it still running?
[06/13/17 20:04:09] Launch failed - cleaning up connection
[06/13/17 20:04:09] [SSH] Connection closed.
ERROR: Connection terminated
java.io.EOFException
at 
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
at 
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
at java.io.ObjectInputStream.(ObjectInputStream.java:301)
at 
hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
at 
hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
Caused: java.io.IOException: Unexpected termination of the channel
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)


At a loss...

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


Opportunity for MS SQL Server Database Consultant @ Washington, DC.

2017-03-31 Thread peter


Dear Associate:

We have the below job opportunity with one of our clients. Let me know if 
you are interested or you can refer your consultants who might be 
interested for the below job opportunity.

Job Title   : MS SQL Server Database Consultant Level II

Location   : Washington, DC

Duration: 6+ months

Work Authorization: GC/Citizen/H1B

 

*Job Description:*

 

The Open Data suite of products (DCS, Open data APIs, WBXD, data management 
tools) are being enhanced to build a more usable, functional, and robust 
open data management, publishing and browsing system. These activities will 
leverage the existing work done on the open data platform. Improvements 
will be done to Data Management tools, Data Collection System (DCS), to 
address the challenges raised by the open data initiative by speeding the 
collection process and automating the data flow. Partially implemented in 
automating the publish process to dissemination systems, databank and 
mydatabank, for the existing datasets successfully. Current environment is 
in SQL 2012.

 


*Following are the tasks to be performed by the resource. *- Primarily 
works on SQL development project.
- Leveraging SQL 2014/2016 environment.
- Ensuring all the features and performance in new environment
- Implementing planned new features 


*Strong skills required: *- Experience in latest Microsoft SQL server 
development skills.
- Strong knowledge and hands on expertise in SQL server stored procedures, 
functions, triggers, indexes, jobs and performance tuning.
- Expertise on SQL Server Analysis Services, cubes and MDX query operations.
- Hands on SQL Server Integration Services experience
- Strong communication skills


*Optional skills required: *- Microsoft .NET (VB and C#) language knowledge
- Documentation knowledge.

*Required Skills*

SQL Server, SSAS, SSIS;

SQL Performance Tuning, analysis;

SQL Stored Procedures, Functions, Triggers, Indexes;

optional: MS .net development skills 

 

 

Skill Matrix

(Years Of Experience In Each Skill)

Last Used in the Year

Rate  your skill on a scale of 0-10 (10 being the highest)

SQL Server

 

 

 

SSAS

 

 

 

SSIS

 

 

 

SQL Performance Tuning

 

 

 

SQL Stored Procedures, Functions, Triggers, Indexes

 

 

 

Microsoft .NET (VB and C#) language knowledge (optional)

 

 

 

SQL Server Integration Services

 

 

 

 

 

Thanks & Regards

 

*Peter Bates*

Business Consultant

 

*Global Interworks Staffing Solution LLC*

Email : pe...@gissllc.com

www.gissllc.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/3b73b6d8-4f0b-48c0-b352-228657e0c442%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Opportunity for Web Application Developer @ Palo Alto, CA.

2017-03-31 Thread peter


Dear Associate:

We have a job opportunity with one of our clients. Let me know if you are 
interested or any of your referrals who might be interested for the below 
job opportunity.

Job Title   : Web Application Developer

Location   : Palo Alto, CA

Position Type: Direct hire; permanent 

Salary   : Based on experience

Work Authorization: US Citizens / GC.

 
*TECHNICAL SKILLS*

 

5+ years experience with the following skill sets…

· Demonstrable experience building web applications, not brochure 
ware

· MUST be extremely strong with JavaScript development

· Angular.js framework experience - (and other JavaScript 
frameworks) for building SPAs

· Must have experience building your own custom directives

· Proficient in HTML5, CSS3, Object-oriented JavaScript, jQuery, 
AngularJS

· Good understanding of CSS pre-processors, such as LESS and SASS 
and responsive design

· Good understanding of asynchronous request handling, partial page 
updates, AJAX, RESTful services and APIs

· Good understanding of cross-browser compatibility issues and ways 
to work around them

· Experience with code versioning tools, such as Git, SVN, etc.

· Database knowledge as a plus



 

Thanks & Regards

 

*Peter Bates*

Business Consultant

 

*Global Interworks Staffing Solution LLC*

Email : pe...@gissllc.com

www.gissllc.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/21575c24-c04a-4497-b612-2febcacae1b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Opportunity for Apigee API Developer @ Oaks, PA.

2017-03-31 Thread peter


Dear Associate:

We have the below job opportunity with one of our clients. Let me know if 
you are interested or you can refer your consultants who might be 
interested for the below job opportunity.

*Req-1*

 

Job Title: Apigee API Developer

Location: Oaks, PA

Duration: Full Time/Contract

Interview   : Phone and Onsite


Job Description:

 

Design and develop REST API platform using Apigee.

Implement requirements of the API layer like security, custom analytics, 
throttling, caching, logging, monetization, request and response 
modifications etc. using Apigee

Convert web services from SOAP to REST or vice-versa, using Apigee API 
management platform.

Design and develop API platform to connect to various disparate backend 
systems for seamless data exchange.

Build API developer portal for service providers to on board app 
developers, add API documentation and monetize API products.

Create REST API documentation using Swagger and YAML or similar tools.

 

 

*Skill Matrix*

*(Years Of Experience In Each Skill)*

*Last Used in the Year*

*Rate  your skill on a scale of 0-10 (10 being the highest)*

Apigee API Developer

 

 

 

 Design and develop REST API platform using Apigee

 

 

 

Convert web services from SOAP to REST or vice-versa, using Apigee API 
management platform

 

 

 

Build API developer portal for service providers to on board app 
developers, add API documentation and monetize API products

 

 

 

Create REST API documentation using Swagger and YAML or similar tools

 

 

 

 

 

*Req-2*

 

Job Title: Apigee Technical Lead

Location: Oaks, PA

Duration: Full Time/Contract

Interview   : Phone and Onsite

 

Job Description:

 

5+ years of overall experience in design and development of complex, 
distributed and scalable applications using middleware integration 
technologies:

   - Experience with API management tool Apigee Gateway. 
   - Should be able to create API proxies and configure policies on APIGEE 
   Edge. 
   - Should be able to use Apigee BaaS services. 
   - Should be able to create API Specs using Swagger specifications. 
   - Should be able to create RESTful APIs using NodeJS libraries or 
   Java/J2EE (RESTEasy, Jersey, Spring). 
   - Good understanding of API lifecycle management and digital 
   transformation concepts. 
   - Expert level experience with Drupal framework, template creation, 
   content management and experience extending through customizations. 
   - 2 to 3 years of strong hands-on experience in Designing and 
   implementing systems that expose RESTful APIs. 
   - Testing APIs using tools like SOAPUI, REST Clients etc. 

 

Additional Responsibilities (Good to Have):

 

   - Apigee certification is advantage. 
   - Experience in Agile development techniques. 
   - Good communication skills to interact with clients. 
   - Have lead a small team earlier. 

 

 

*Skill Matrix*

*(Years Of Experience In Each Skill)*

*Last Used in the Year*

*Rate  your skill on a scale of 0-10 (10 being the highest)*

Apigee Technical Lead

 

 

 

Apigee Gateway

 

 

 

Create API proxies and configure policies on APIGEE Edge

 

 

 

Apigee BaaS services

 

 

 

Create RESTful APIs using NodeJS libraries or Java/J2EE (RESTEasy, Jersey, 
Spring)

 

 

 

API lifecycle management and digital transformation concepts

 

 

 

Drupal framework, template creation, content management and experience 
extending through customizations

 

 

 

Designing and implementing systems that expose RESTful APIs

 

 

 

Testing APIs using tools like SOAPUI, REST Clients etc

 

 

 

Apigee certification is advantage

 

 

 

Agile development techniques

 

 

 

Create API Specs using Swagger specifications

 

 

 

 

 

 

Thanks & Regards

 

*Peter Bates*

Business Consultant

 

*Global Interworks Staffing Solution LLC*

Email : pe...@gissllc.com

www.gissllc.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/b077209b-c087-4183-b3ee-4adfc610a9f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Interactive input with new DSL

2017-03-17 Thread Peter Marcoen
I experience the same effect. 

I have a top-level agent definition for the agent I want to use by default.
In some underlying step I want to use a very specific agent, this override 
works great.
However, if I use "agent none" in an underlying step to accept input, the 
"default" node is still being used!
This is really annoying because now I have to put "agent none" at the 
top-level and a specific agent for each step.
This has the side effect that an SCM checkout is done every time.

Is there an open bug for this already?

-- 
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/e730ea42-d3b8-472e-b6cb-5204c2429362%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Are you using Bitbucket Branch Source?

2017-03-08 Thread Peter Hayes
I just tried it out on a repo with 25 branches and I could see that the one 
branch I pushed to, it immediately started a build for that branch and then 
continued to check the other branches.  I then pushed one of the other 
branches and it picked that up first and then continued to check the 
remaining branches so I definitely see improvement in the time it takes to 
kick the branch build.  Thanks!

On Wednesday, March 8, 2017 at 12:53:00 PM UTC-5, Stephen Connolly wrote:
>
> I have released 2.1.1-beta-1 into the experimental update center. This 
> version has the super-awesome scoped event support. This should give very 
> responsive branch creation directly after the commit creating the branch 
> has been pushed.
>
> I plan to release 2.1.1 some time tomorrow.
>
> If you are using the Bitbucket Branch Source and can provide assistance by 
> testing the 2.1.1-beta-1 release, please report any issues you have in the 
> https://issues.jenkins-ci.org/browse/JENKINS-41816 ticket 
>

-- 
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/72571265-6812-4852-8898-e777fc7d3664%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Declarative pipeline] Using Docker environment variables

2017-03-02 Thread Peter Marcoen
Could also be linked to this open 
issue: https://issues.jenkins-ci.org/browse/JENKINS-41204

-- 
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/5a169b61-66e8-4ba3-8f47-33b823659f00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Declarative pipeline] Using Docker environment variables

2017-03-02 Thread Peter Marcoen
Actually my issue looks a lot like this issue from 
2015: 
https://groups.google.com/forum/#!searchin/jenkinsci-users/docker$20environment$20variables|sort:relevance/jenkinsci-users/TIwE0F_e8qs/6f4GP-a0CAAJ
However, this was an issue with the Cloudbees custom docker plugin.

-- 
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/b8b154cb-33bc-4dc4-8f8a-8e6de404137f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Declarative pipeline] Using Docker environment variables

2017-03-02 Thread Peter Marcoen
In my Dockerfile I install Ant and declare environment variables pointing 
to this Ant installation:

FROM openjdk:7# Install wgetRUN  apt-get update \  && apt-get install -y wget \ 
 && rm -rf /var/lib/apt/lists/*# Install antENV ANT_VERSION 1.9.6RUN cd && \
wget -q 
http://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz
 && \tar -xzf apache-ant-${ANT_VERSION}-bin.tar.gz && \mv 
apache-ant-${ANT_VERSION} /opt/ant && \rm 
apache-ant-${ANT_VERSION}-bin.tar.gzENV ANT_HOME /opt/antENV PATH 
${PATH}:/opt/ant/bin# Create user jenkinsRUN groupadd -g 999 dockerRUN useradd 
jenkins -u 999 -g 999 --shell /bin/bash --create-homeRUN echo 'export 
ANT_HOME=/opt/ant'  >> /home/jenkins/.bashrcRUN echo 'export 
PATH=$PATH:/opt/ant/bin' >> /home/jenkins/.bashrcUSER jenkins


As you can see I do 2 things: I use the docker ENV statement which should 
set the environment variables, then additionally I add export statements to 
the jenkins' user bashrc.
However, inside my Jenkins pipeline these environment variables don't 
appear to be set, no matter what I do. 
When I echo my path I see the following:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/jenkins/bin:/usr/lib/oracle/12.1/client64/bin:/usr/lib/oracle/12.1/client64/lib


When I echo my .bashrc there are indeed the following lines:


export ANT_HOME=/opt/ant
export PATH=$PATH:/opt/ant/bin


So why is my path set incorrectly?

I suspect the reason is that Jenkins overwrites the path when running docker, 
and I can kinda see this in the console output of Jenkins:


docker run -t -d -u 999:999 -w /opt/jenkins/workspace/testws -v 
/opt/jenkins/workspace/testws :/opt/jenkins/workspace/testws :rw -v 
/opt/jenkins/workspace/testws @tmp:/opt/jenkins/workspace/testws@tmp:rw -e 
 -e  -e  -e  -e  -e  -e 
 -e  -e  -e  -e  -e  -e 
 -e  -e  -e  -e  -e  -e 
 -e  -e  -e  -e  -e  
--entrypoint cat 4b4e7722d454ad10aec20f95d2bb1c1ce527c880


And if I look in the documentation it even says how to set environment 
variables: 
https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Environment-variables

But this doesn't make sense to me. Isn't the whole point of using Docker that 
your environment will consistently be the same? So why would I want to use 
environment settings or tools from jenkins if I'm using docker? Then the 
environment is also not defined in a file anymore.


Is there any way around this? Or am I looking at it all wrong?


This is the Jenkinsfile that I use:


pipeline {agent {dockerfile {
label "docker"}}stages {
stage("build") {steps {
sh 'echo $PATH'sh 'cat ~/.bashrc'   
 }}}}

-- 
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/9112754e-17f2-44fc-a63e-5cc66d7e0fec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrade Jenkins from 1.580 to 2.32.2

2017-02-27 Thread Peter McNab

No to what?

Jenkins 1.608 made slaves require Java7, so it might impact Raj's 
upgrade attempts.


I know the Java8 change hasn't been made, but it's coming soon as well.

Java7 has been around a long time, but so have the platforms I support, 
and we we moved up to a version that supported pipelines a number of the 
older platform slaves stopped working and some users had to scramble to 
adjust their jobs.


Pete


On 2/27/2017 11:16 AM, Baptiste Mathus wrote:
Well, no. The Java 8 change hasn't been made yet, though it is coming 
according to the announced plan (first weekly should be on April, and 
first LTS requiring it should be around early June). And Java 7 has 
been around for a long time.


And we already discussed the fact that though some platforms may not 
have a JDK packaged with std distro, it's dead simple to download it 
directly from , uncompress and be done with it on the big majority of 
platforms (Centos 6 is not an issue at all for instance, I can relate).


2017-02-27 19:29 GMT+01:00 Peter McNab <pmc...@perforce.com 
<mailto:pmc...@perforce.com>>:


I don't remember exactly when the change was made, but keep in
mind that Java7 is required for slave nodes with recent versions
of Jenkins.  If you have slave nodes without that available they
will be dead in the water.

Pete


On 2/27/2017 9:59 AM, Raj wrote:

Thank you for the feedback.

Sure. we can do that and more simply with a vm snapshot for
rollback.

but in case of staging upgrade how do you propose \ suggest to
manage the slave \ agents ? i ask since if i bring up the staging
with a rsynced config then the agents will try to connect too and
might cause a issue. or should we just make all slaves offline
when i take a snaphot so when they do comeback they will be not
connected to the master and that way we can test just the master
and once it is fine then just connect all agents to the new server ?



On Saturday, February 25, 2017 at 1:35:25 PM UTC-5, Raj wrote:

Hello,
We have been stuck to a very old version of Jenkins for a
while now. 1.580. we are on Centos 6.

I am wondering if any one has upgraded from 1.580 to 2.32.2
via yum and including all plugins ?

If someone could share their experience it will be really
appreciated.

apart from need for jdk 1.8, is there any other hard
dependency for the upgrade?
Regards,
Raj

-- 
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
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/3f246128-6cea-4013-a175-c27bcce0e588%40googlegroups.com

<https://groups.google.com/d/msgid/jenkinsci-users/3f246128-6cea-4013-a175-c27bcce0e588%40googlegroups.com?utm_medium=email_source=footer>.
For more options, visit https://groups.google.com/d/optout
<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
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/0b283e4a-7b5f-a981-3dac-212d45358eec%40perforce.com

<https://groups.google.com/d/msgid/jenkinsci-users/0b283e4a-7b5f-a981-3dac-212d45358eec%40perforce.com?utm_medium=email_source=footer>.


For more options, visit https://groups.google.com/d/optout
<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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5UFiUi-WGM7SkLx%3D1R49YadXmKUgV9g%3De7-UH8rognrQ%40mail.gmail.com 
<https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5UFiUi-WGM7SkLx%3D1R49YadXmKUgV9g%3De7-UH8rognrQ%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/

Re: Upgrade Jenkins from 1.580 to 2.32.2

2017-02-27 Thread Peter McNab
I don't remember exactly when the change was made, but keep in mind that 
Java7 is required for slave nodes with recent versions of Jenkins.  If 
you have slave nodes without that available they will be dead in the water.


Pete


On 2/27/2017 9:59 AM, Raj wrote:

Thank you for the feedback.

Sure. we can do that and more simply with a vm snapshot for rollback.

but in case of staging upgrade how do you propose \ suggest to manage 
the slave \ agents ? i ask since if i bring up the staging with a 
rsynced config then the agents will try to connect too and might cause 
a issue. or should we just make all slaves offline when i take a 
snaphot so when they do comeback they will be not connected to the 
master and that way we can test just the master and once it is fine 
then just connect all agents to the new server ?




On Saturday, February 25, 2017 at 1:35:25 PM UTC-5, Raj wrote:

Hello,
We have been stuck to a very old version of Jenkins for a while
now. 1.580. we are on Centos 6.

I am wondering if any one has upgraded from 1.580 to 2.32.2 via
yum and including all plugins ?

If someone could share their experience it will be really
appreciated.

apart from need for jdk 1.8, is there any other hard dependency
for the upgrade?
Regards,
Raj

--
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/3f246128-6cea-4013-a175-c27bcce0e588%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/0b283e4a-7b5f-a981-3dac-212d45358eec%40perforce.com.
For more options, visit https://groups.google.com/d/optout.


Excel Ole creation fails

2017-02-26 Thread Peter Homolya
Hello!

I'm running a pretty large and complicated script on the Jenkins of our 
company. The one responsible for the maintanance of the script told me that 
everything went well on the Test Server, however when she tried running it 
on the live server, it suddenly crashed.

Long story short:

   - I start a Rational Doors, DXL script
   - The script invites another DXL script
   - Which creates an Excel Ole object

However here comes the problem, the OLE object is null, it's not created. 
On the test server everything went perfectly, there was no problem with the 
excel. There is Excel 2013 installed on both servers.


In DXL I use the following:

oleExcel = oleCreateAutoObject("Excel.Application")

if(null oleExcel)
{ error message here }




Thank you very much in advance, if you can help me with anything!

-- 
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/ef65e840-32da-4623-ac72-814605b6f9a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Docker Pipeline Step

2017-02-23 Thread peter
I might just be missing something here.. But it seems like the docker 
pipeline stuff is pretty busted.

docker.build does *not* seem to return a docker image, even if the build 
was successful. Nor does docker.image("image id") return a usable image 
object. I'm rewriting these two functions in a shared groovy library with 
sh calls rn. Am I crazy? Are other people seeing this? What am I doing 
wrong?

Thanks,
-Peter

-- 
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/b4b62846-727a-4ffe-8cef-99b1dd3c72b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build pipeline plugin can't find downstream job for manual trigger

2017-02-01 Thread Peter Nelissen
What do you mean with the folder? The project name? Pipeline name?

Thanks!
Peter

On Monday, 18 July 2016 21:38:58 UTC+2, Guy Knights wrote:
>
> For anyone else dealing with this issue, I found the solution. I recently 
> moved to using folders in Jenkins 2.x, and it's necessary to specify the 
> folder name in the downstream job text field for the post-build action, but 
> only for the manual trigger. I found this info here: 
> https://issues.jenkins-ci.org/browse/JENKINS-34099.
>
> On Thursday, July 14, 2016 at 4:04:30 PM UTC-7, Guy Knights wrote:
>>
>> In Jenkins 2.7.1 with build-pipeline plugin 1.5.3.1 I'm trying to set a 
>> manual downstream trigger for a job using the "Build other projects (manual 
>> step)" post-build action, but it can't seem to find any projects in the 
>> same folder, and if I type the name in manually it gives me a "No such 
>> project" error like so:
>>
>> *No such project ‘CLIENT - Deploy to production’. Did you mean ‘CLIENT - 
>> Deploy to production?*
>>
>> As you can see, the name it suggests is the same as the name it says it 
>> can't find, which is perplexing. I try copying the name it suggests into 
>> the downstream project names box, but it still gives me the same error.
>>
>> If I use the "Trigger parameterized build on other projects" post-build 
>> action instead, it finds all the projects fine and I can use this method, 
>> but of course it executes without manual intervention, which is not what 
>> I'm after. I used to run Jenkins 1.65 and this worked fine, so I'm 
>> wondering if it's a bug related to this new Jenkins version. Does anyone 
>> know how to fix this?
>>
>> Thanks,
>> Guy
>>
>>

-- 
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/15f2207c-bf43-46b9-86dd-9f0d80144687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running SQL queries from a pipeline script?

2017-01-16 Thread Peter McNab
Just completing the loop in case anyone else is looking into this.  My 
colleague tried my solution in his instance and it didn't work.


After doing some more archeology I realized that I at one point printed 
out the system java.ext.dirs, which included 
/usr/java/packages/lib/ext.  I then created that path and copied the 
mysql-connector-java-5.1.38.jar there.  After a restart of Jenkins I 
could now import and use groovy.sql.Sql quite happily, not just on the 
master but on remote nodes.


So while this functions, it seems hard to consider this as a working 
production solution.


Pete



On 1/16/2017 10:47 AM, Peter McNab wrote:
Oddly enough, after sending this I found I *was* able to skip the 
extra wrapper and make this work.


I swear I had tried that earlier with no luck.

(As it happens, I need to use the wrapper for other purposes)

Pete


On 1/16/2017 10:44 AM, Peter McNab wrote:

On 1/12/2017 1:53 PM, Peter McNab wrote:
Has anyone got a working solution for running SQL queries from a 
pipeline script (specifically MySQL?)


Pete

Answering my own post...I've found a method that functions, although 
it's not ideal.


1) Install the "Pipeline Classpath Step Plugin

2) Make my pipeline script (from SCM) be essentially a small wrapper:
  pipelinePath = 
  addToClasspath pipelinePath
  node('master') {
load "${pipelinePath}/Jenkinsfile"
  }

3) In the Jenkinsfile, add "import groovy.sql.Sql"

4) Add this into the Jenkinsfile:
  stage ('SQL Test') {
node('remote_node') {
def sql = Sql.newInstance("jdbc:mysql://DBHOST/DBSCHEMA", 
"DBUSER", "DBPASSWORD", "com.mysql.jdbc.Driver")

query = "SELECT * from myTable"
println sql.rows(query)
sql.close()
}
}

5) Note that you will need to whitelist the various Sql methods you 
call using the script security plugin






--
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/13d06493-11a2-e842-0978-82e003480956%40perforce.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running SQL queries from a pipeline script?

2017-01-16 Thread Peter McNab
Oddly enough, after sending this I found I *was* able to skip the extra 
wrapper and make this work.


I swear I had tried that earlier with no luck.

(As it happens, I need to use the wrapper for other purposes)

Pete


On 1/16/2017 10:44 AM, Peter McNab wrote:

On 1/12/2017 1:53 PM, Peter McNab wrote:
Has anyone got a working solution for running SQL queries from a 
pipeline script (specifically MySQL?)


Pete

Answering my own post...I've found a method that functions, although 
it's not ideal.


1) Install the "Pipeline Classpath Step Plugin

2) Make my pipeline script (from SCM) be essentially a small wrapper:
  pipelinePath = 
  addToClasspath pipelinePath
  node('master') {
load "${pipelinePath}/Jenkinsfile"
  }

3) In the Jenkinsfile, add "import groovy.sql.Sql"

4) Add this into the Jenkinsfile:
  stage ('SQL Test') {
node('remote_node') {
def sql = Sql.newInstance("jdbc:mysql://DBHOST/DBSCHEMA", 
"DBUSER", "DBPASSWORD", "com.mysql.jdbc.Driver")

query = "SELECT * from myTable"
println sql.rows(query)
sql.close()
}
}

5) Note that you will need to whitelist the various Sql methods you 
call using the script security plugin




--
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/ae5f5bf0-5f86-092a-a09e-4c4f5f704b2f%40perforce.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running SQL queries from a pipeline script?

2017-01-16 Thread Peter McNab

On 1/12/2017 1:53 PM, Peter McNab wrote:
Has anyone got a working solution for running SQL queries from a 
pipeline script (specifically MySQL?)


Pete

Answering my own post...I've found a method that functions, although 
it's not ideal.


1) Install the "Pipeline Classpath Step Plugin

2) Make my pipeline script (from SCM) be essentially a small wrapper:
  pipelinePath = 
  addToClasspath pipelinePath
  node('master') {
load "${pipelinePath}/Jenkinsfile"
  }

3) In the Jenkinsfile, add "import groovy.sql.Sql"

4) Add this into the Jenkinsfile:
  stage ('SQL Test') {
node('remote_node') {
def sql = Sql.newInstance("jdbc:mysql://DBHOST/DBSCHEMA", 
"DBUSER", "DBPASSWORD", "com.mysql.jdbc.Driver")

query = "SELECT * from myTable"
println sql.rows(query)
sql.close()
}
}

5) Note that you will need to whitelist the various Sql methods you call 
using the script security plugin


--
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/83eccabf-a68f-d756-1a89-505d6337e13a%40perforce.com.
For more options, visit https://groups.google.com/d/optout.


Running SQL queries from a pipeline script?

2017-01-12 Thread Peter McNab
Has anyone got a working solution for running SQL queries from a 
pipeline script (specifically MySQL?)


Pete

--
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/626085ee-8401-73ba-d512-3bb8f9371a1c%40perforce.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running Job from pipleline - old code is excuted

2017-01-11 Thread Peter McNab
I saw a case like then after I changed the name of my Jenkinsfile, but 
forgot to update the filename in the "script to execute" part of the job 
configuration.


Somewhat surprised to see that my workspace wasn't being cleaned between 
jobs, but it had me scratching my head for a bit.


Pete



On 1/11/2017 8:00 AM, Boaz Nahum wrote:

Hi.

I'm using Jenkins 2.32.1 running on WIndows Server

The jenkinsfile that describe the pipeline is something like this:
|
node('boaz'){
|

println "Hello from node ${env.NODE_NAME}"

stage('preparation') {

node('boaz') {

def parameters = [

[$class: 'StringParameterValue', name: 
'param_sandbox_path', value: '${sandboxPath}']



];

build job: "periodic-build-1-preparation", parameters: 
parameters

}
}
}

I'm not using SCM to create workspace.

The job "periodic-build-1-preparation" The job is freestyle job with 
one build step which is shell script
The job started and run as expected. Then I change it, but no matter 
what I tried to do -*the old job code is running*. I know it because 
it is shell script that echo the commands before running.


Thanks
Boaz





--
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/7bed6558-fce2-4c26-a7c9-1fb91a3ab02d%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/3d1f8f92-241d-69cd-ce1d-d6a2da198eee%40perforce.com.
For more options, visit https://groups.google.com/d/optout.


Re: Question about code change

2016-12-21 Thread 'Peter Teichner' via Jenkins Users
It's a good idea, but such a long winded way and it's also restricts to GIT 
- right now we're using Git and Perforce (far from good situation) but I'm 
surprised to see that there isn't a built in variable for that...

On Wednesday, 21 December 2016 14:48:58 UTC, Eric Pyle wrote:
>
> If possible, you could save the sha1 as an artifact with each build, and 
> have your pipeline code retrieve it. Then query git in your new build to 
> see whether the current sha1 is different (like 'git rev-parse HEAD').
>
> Eric
>
> On 12/21/2016 9:10 AM, 'Peter Teichner' via Jenkins Users wrote:
>
> Thanks for this - it's not 100% what I'm looking for, but it's close to 
> it. Unfortunately I'm not in a position to install "unreleased" plugins and 
> I think it might not work in the pipeline as code... :/
>
> On Wednesday, 21 December 2016 13:56:00 UTC, Daniel Beck wrote: 
>>
>>
>> > On 21.12.2016, at 13:11, Peter Teichner <ptei...@googlemail.com> 
>> wrote: 
>> > 
>> > Any ideas? 
>>
>> https://github.com/daniel-beck/changelog-environment-plugin could 
>> probably do this. Haven't gotten around to actually releasing this 
>> unfortunately. 
>>
>> Related discussion in https://issues.jenkins-ci.org/browse/JENKINS-12032 
>>
>> -- 
> 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/00bdf867-6ee2-457a-bc14-bd7daa31b4de%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/00bdf867-6ee2-457a-bc14-bd7daa31b4de%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
>
> * Eric Pyle * 
> Release Engineer 
> Lebanon 
> +1 603-277-3060 (T)
> +1 603-359-8670 (M)
> ...@cd-adapco.com 
> http://www.cd-adapco.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/73a3df49-1f86-48ff-a644-810dad43c2e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Question about code change

2016-12-21 Thread 'Peter Teichner' via Jenkins Users
Thanks for this - it's not 100% what I'm looking for, but it's close to it. 
Unfortunately I'm not in a position to install "unreleased" plugins and I 
think it might not work in the pipeline as code... :/

On Wednesday, 21 December 2016 13:56:00 UTC, Daniel Beck wrote:
>
>
> > On 21.12.2016, at 13:11, Peter Teichner <ptei...@googlemail.com 
> > wrote: 
> > 
> > Any ideas? 
>
> https://github.com/daniel-beck/changelog-environment-plugin could 
> probably do this. Haven't gotten around to actually releasing this 
> unfortunately. 
>
> Related discussion in https://issues.jenkins-ci.org/browse/JENKINS-12032 
>
>

-- 
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/00bdf867-6ee2-457a-bc14-bd7daa31b4de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Question about code change

2016-12-21 Thread 'Peter Teichner' via Jenkins Users
Hi Richard,

The build cause doesn't work unfortunately because if the I manually start 
the build the cause is not SCM change. Also P4CHANGES variable is okay - 
but if one uses Git it won't work. I know that once the build is finished 
you can query the list of changes from the JSON or XML API. It's nested in 
the changeSet. Ideally I would like to be able to make a decision in the 
pipeline to execute or not execute a certain step based on whether or not 
there has been a change.

On Wednesday, 21 December 2016 13:49:24 UTC, Richard Ginga wrote:
>
> Peter, build cause = scm change will tell you. also many scm plugins 
> produce environment variables. Perforce produces P4CHANGES
>
> On Wed, Dec 21, 2016 at 7:11 AM, 'Peter Teichner' via Jenkins Users <
> jenkins...@googlegroups.com > wrote:
>
>> Yeah - ideally at runtime in a pipeline or any other way of determining 
>> whether there was a code change or not? I'm aware of a variable which is 
>> the build cause - that could be code change but if the build was started by 
>> a timer or even manually than the build cause will be different. However I 
>> would still like to be able to find out if there was an SCM change. Any 
>> ideas?
>>
>> On Wednesday, 21 December 2016 10:51:14 UTC, Daniel Beck wrote:
>>>
>>> When the SCM changelog isn't empty? Or what are you asking for exactly? 
>>>
>>> > On 21.12.2016, at 11:34, 'Peter Teichner' via Jenkins Users <
>>> jenkins...@googlegroups.com> wrote: 
>>> > 
>>> > Hi there, 
>>> > 
>>> > Is anyone aware of a variable or flag that indicates whether or not 
>>> there has been a code change on a build? 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-use...@googlegroups.com. 
>>> > To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/388691f8-2db5-429b-a535-cf032a045d92%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/1f086a16-7a8b-4d64-86e7-2396878739e3%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/1f086a16-7a8b-4d64-86e7-2396878739e3%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Dick Ginga
> Build Engineer
> rgi...@disruptorbeam.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/afa6002f-31d6-4f29-83a7-50c140927ac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Question about code change

2016-12-21 Thread 'Peter Teichner' via Jenkins Users
Yeah - ideally at runtime in a pipeline or any other way of determining 
whether there was a code change or not? I'm aware of a variable which is 
the build cause - that could be code change but if the build was started by 
a timer or even manually than the build cause will be different. However I 
would still like to be able to find out if there was an SCM change. Any 
ideas?

On Wednesday, 21 December 2016 10:51:14 UTC, Daniel Beck wrote:
>
> When the SCM changelog isn't empty? Or what are you asking for exactly? 
>
> > On 21.12.2016, at 11:34, 'Peter Teichner' via Jenkins Users <
> jenkins...@googlegroups.com > wrote: 
> > 
> > Hi there, 
> > 
> > Is anyone aware of a variable or flag that indicates whether or not 
> there has been a code change on a build? 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-use...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/388691f8-2db5-429b-a535-cf032a045d92%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/1f086a16-7a8b-4d64-86e7-2396878739e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Question about code change

2016-12-21 Thread 'Peter Teichner' via Jenkins Users
Hi there,

Is anyone aware of a variable or flag that indicates whether or not there 
has been a code change on a build? 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/388691f8-2db5-429b-a535-cf032a045d92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline: Hos to test them locally

2016-12-12 Thread Peter McNab
The (far from perfect) method we've been using is to use a "testing" 
pipeline job.  Rather than fetching the project from source, it is an 
explicit script that uses a "load" to load in the "real" pipeline script 
from my development environment (which is available via NFS).


sourcepath = '
node('master') {
  load "${sourcepath}/Jenkinsfile"
}

That allows me to just save locally and run the job.

Even better, I can then run the job using the jenkins-cli.jar and see 
the output in my shell which removes the need to interact with the 
jenkins UI altogether.


java -jar jenkins-cli.jar -s $JENKINS_URL build $JOB_NAME -s -v

Of course you have to be disciplined about checking in WIP and making 
sure that all files your pipeline is trying to use checked in 
eventually, and there are some cases where the above method acts a 
little differently than when pulling from SCM.  Also be sure to check 
"Use Groovy Sandbox" since pipeline scripts coming from SCM have that set.


Pete

On 12/10/2016 9:59 AM, Michael Kobit wrote:
You can use the "Replay" option, which might help you iterate a little 
bit faster. There isn't really a good way to test and validate that 
your pipeline is correct other than just running it.


https://issues.jenkins-ci.org/browse/JENKINS-33925 is open for a test 
framework for Jenkinsfile.


On Fri, Dec 9, 2016 at 1:20 AM Victor Martinez 
<victormartinezru...@gmail.com <mailto:victormartinezru...@gmail.com>> 
wrote:


Hi there,

Just wondering if there is any new supported feature of testing
Jenkinsfile, aka pipelines, locally, if so, where can i find some
examples/docs? I want to get rid of the manual and tedious process
of pushing changes to my repo then look at the jebkibs job andsee
whether it does what i coded. I'd like to speed up my development
with lets say some TDD. If no, will it be supported in the near
future? Or it doesnt make sense?

Thanks guys

--
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
<mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/c6122b07-85f3-407b-8e81-ae23651e0b27%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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALELY9HHZ1wnJq6fvXgBS5DZGxTjMRZo%2B_PxpRZNQDHBJ5ubsQ%40mail.gmail.com 
<https://groups.google.com/d/msgid/jenkinsci-users/CALELY9HHZ1wnJq6fvXgBS5DZGxTjMRZo%2B_PxpRZNQDHBJ5ubsQ%40mail.gmail.com?utm_medium=email_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Peter McNab | Engineering Tools Tech Lead
T: +1 510-473-3124 | M: +1 408-203-7114
http://www.perforce.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/584EDC1C.4080604%40perforce.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline.. sometimes slaves just hang

2016-12-02 Thread 'Peter Teichner' via Jenkins Users
I see - it's a bit tricky to understand how your setup works without 
actually seeing the code you've written. Maybe you can look at the longest 
build time and set that as the timeout if the agent execution is happening 
inside the script rather than as a separate job

On Friday, 2 December 2016 13:03:57 UTC, Jonathan Hodgson wrote:
>
> Thanks, but I'm not sure this does what I need.
>
> The impression I have is that the timeout step is based on how long the 
> contained step takes to execute.
>
> What I need is a timeout based on when step actually does something. such 
> as generate some output.
>
> A full build can take a long time, if I set a timeout to allow for that, 
> and it hands near the beginning, the slave could be hung up for  half an 
> hour or more.
>
> But it continuously generates new output to the console if it is working, 
> so being able to timeout based on that stopping, that would work.
>
> On Friday, December 2, 2016 at 11:48:08 AM UTC, Peter Teichner wrote:
>>
>> You can implement timeout following this guide - this one is for user 
>> input but you can adapt it accordingly with a try/catch block. 
>> https://support.cloudbees.com/hc/en-us/articles/226554067-Pipeline-How-to-add-an-input-step-with-timeout-that-continues-if-timeout-is-reached-using-a-default-value
>>
>> On Thursday, 1 December 2016 13:39:33 UTC, Jonathan Hodgson wrote:
>>>
>>> Hi,
>>>
>>> Right now I'm looking at a pipelne job which has been hung on two slaves 
>>> for over two hours.
>>>
>>> Both slaves (one windows, one OSX) show as being connected, and the 
>>> slave is still running on both, but both are stalled... one on starting a 
>>> batch script, the other either in the shell script or just after it.
>>>
>>> The Job has run without issue before.
>>>
>>> This raises a couple of questions
>>>
>>> 1) What might be causing this (I've had mystery hangs before).
>>> 2) How can I investigate it
>>>
>>> and 
>>>
>>> 3) Is there a way I can implement some sort of time out? If there has 
>>> been no activity from the slave for a given period of time I'd prefer it if 
>>> the build ended and I received an email telling me there had been a 
>>> problem. As it is, I'm unaware of the problem unless I check, (which sort 
>>> of negates the point of an autobuild), and the build system is effectively 
>>> usefless until I go there and stop the build.
>>>
>>

-- 
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/beec6c69-a602-447c-9db5-dfb62db30f14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline.. sometimes slaves just hang

2016-12-02 Thread 'Peter Teichner' via Jenkins Users
You can implement timeout following this guide - this one is for user input 
but you can adapt it accordingly with a try/catch block. 
https://support.cloudbees.com/hc/en-us/articles/226554067-Pipeline-How-to-add-an-input-step-with-timeout-that-continues-if-timeout-is-reached-using-a-default-value

On Thursday, 1 December 2016 13:39:33 UTC, Jonathan Hodgson wrote:
>
> Hi,
>
> Right now I'm looking at a pipelne job which has been hung on two slaves 
> for over two hours.
>
> Both slaves (one windows, one OSX) show as being connected, and the slave 
> is still running on both, but both are stalled... one on starting a batch 
> script, the other either in the shell script or just after it.
>
> The Job has run without issue before.
>
> This raises a couple of questions
>
> 1) What might be causing this (I've had mystery hangs before).
> 2) How can I investigate it
>
> and 
>
> 3) Is there a way I can implement some sort of time out? If there has been 
> no activity from the slave for a given period of time I'd prefer it if the 
> build ended and I received an email telling me there had been a problem. As 
> it is, I'm unaware of the problem unless I check, (which sort of negates 
> the point of an autobuild), and the build system is effectively usefless 
> until I go there and stop the build.
>

-- 
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/5cd4d517-f63c-47e9-9c47-7829049607c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline as code: how to determine code change

2016-12-02 Thread 'Peter Teichner' via Jenkins Users
I'm looking for a way to figure out if there was a code change on the 
execution. I think the getCauses() isn't the way forward because the 
execution could have been started by a timer. Is there any way of 
determining from pipeline if there was an actual code change?

Thanks all

-- 
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/1c107638-808f-46c8-a16d-ce46c2a1ffaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline: How to cache downloaded (gradle) dependencies using Docker SSH Slave

2016-11-26 Thread Peter Hayes
Jumping on an old thread but I have the same need using docker based 
agents.  I was thinking of trying to write a cache plugin that achieves a 
similar caching capability that travis ci provides for arbitrary 
directories : https://docs.travis-ci.com/user/caching/#Arbitrary-directories

In the pipeline code, there would be a cache build wrapper that would 
download the cache from the master when entering the block and when the 
block completed, save the specified paths back to the master (ideally in an 
rsync style way with minimal data movement).  There would also be a maximum 
cache size so that when the cache grew too large, it would be deleted from 
the master and started fresh on the next run:

node {
  cache ([maxSize="250M", 
 paths=[
[path="${HOME}/.gradle/cache", 
   excludes=["${HOME}/.gradle/caches/modules-2/modules-2.lock", 
"${HOME}/.gradle/caches/*/plugin-resolution"]],
[path="${HOME}/.gradle/wrapper"]
 ]
  ]) {
 sh './gradlew build -s'
  }
}

Anyone aware of anything like this?

Thanks,
Pete

On Thursday, June 23, 2016 at 3:00:56 AM UTC-4, Marco Pas wrote:
>
> I was hoping that these dependencies could be cached somewhere in the 
> workspace instead or relying on Gradle specific things. We have the same 
> thing for NPM related dependencies. Continuous downloading of the related 
> dependencies is just to slow.
>
> On Thursday, June 23, 2016 at 8:48:32 AM UTC+2, Craig Rodrigues wrote:
>>
>> In 2011, this discussion thread talked about this topic: 
>> https://discuss.gradle.org/t/cache-dependencies-into-local-maven-repository-from-gradle/7525
>>  
>> and it didn't seem possible.
>>
>> However, I advise you to post your question to 
>> https://discuss.gradle.org/ , because there may be new information that 
>> can make this possible.
>>
>> --
>> Craig
>>
>>
>> On Wed, Jun 22, 2016 at 4:48 AM, Marco Pas  wrote:
>>
>>> Now that we have a first successful build using a Jenkinsfile Pipeline 
>>> we are looking on how to cache downloaded dependencies.
>>> Currently when we build our Gradle applications the dependencies are 
>>> downloaded each time the Docker Slave is executed on a remote host. Is 
>>> there a way to cache the downloaded dependencies for later reuse so we can 
>>> speedup the build process?
>>>
>>>

-- 
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/fa122935-5293-404b-9ddd-d6ca29002b70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Docker vs Docker-compose with Jenkins

2016-11-24 Thread 'Peter Teichner' via Jenkins Users
Hi!

Thanks for coming back to me: My difficulty comes from the complexity of 
the different software components.

So for example I have the application container that needs to talk to the 
mongo container. And the reason I used bind mount is so the maven image can 
resolve the application by it's host name. So in my maven container I bind 
mount my cucumber folder and the configuration for the host names are 
readily fixed to abc-host or abc-mongo-host for the cucumber execution.

I'm already running a jenkins agent on the docker host but when I try to do 
the bind mount inside of the jenkins agent I have permission problems. I 
get the feeling that I might be doing unstandard things but I'm not too 
sure what would be the correct way...

On Wednesday, 23 November 2016 21:19:03 UTC, Baptiste Mathus wrote:
>
> Ah bind-mounts... FWIW, as a general rule, bind-mounts should be avoided 
> as much as possible, though using them especially for local dev & CI usage 
> is indeed a pretty common hack (or for special things like TZ configuration 
> where you mount the host file [in ro]).
>
> Depending on how you're using your thing, you can choose different paths.
> Either run an agent on that docker host, probably the simplest.
> Or, you redesign your image to not require bind mounts. Like, for example, 
> you create an image from maven:3.3.9-jdk-8 that's able to Git clone & 
> execute the command you need directly (or you pass it as an argument, 
> anyway).
>
> 2016-11-21 11:25 GMT+01:00 'Peter Teichner' via Jenkins Users <
> jenkins...@googlegroups.com >:
>
>> Hi All,
>>
>> I'm slightly unsure whether the topic is more suitable here or on Docker 
>> forums - anyway I decided to post it here.
>>
>> I have a pipeline whereby I have a job to build my Docker images using 
>> the Docker cloud plugin ( building 2-3 images at a time, application, db, 
>> proxy)
>> In a separate job I used to run docker-compose which would start my 
>> containers and a separate container to run the test. In this setup I had my 
>> Jenkins master and Docker engine co-located on 1 server.
>>
>> version: '2'
>> services:
>>   abc:
>> image: abc
>> hostname: abc
>> links:
>>  - abc-mongo
>>   abc-mongo:
>> image: abc-mongo 
>> hostname: abc-mongo
>>   tester:
>> image: maven:3.3.9-jdk-8
>> hostname: tester
>> links:
>>  - abc
>> command: mvn -q  -f /cucumber/pom.xml clean integration-test
>> volumes:
>>  - /${PWD}/cucumber:/cucumber
>>
>>
>> Following some consideration I've decided to move Docker to a different 
>> machine and now I've got this problem where mount the cucumber folder is 
>> impossible as the machine is not the same.
>>
>> Any suggestion on this in terms of best practices and solution? 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/c6fbd512-3599-4f4c-9e05-3284b07b04df%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/c6fbd512-3599-4f4c-9e05-3284b07b04df%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/8e262b00-fd98-4b07-83a5-4155aa0cb816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Docker vs Docker-compose with Jenkins

2016-11-21 Thread 'Peter Teichner' via Jenkins Users
Hi All,

I'm slightly unsure whether the topic is more suitable here or on Docker 
forums - anyway I decided to post it here.

I have a pipeline whereby I have a job to build my Docker images using the 
Docker cloud plugin ( building 2-3 images at a time, application, db, proxy)
In a separate job I used to run docker-compose which would start my 
containers and a separate container to run the test. In this setup I had my 
Jenkins master and Docker engine co-located on 1 server.

version: '2'
services:
  abc:
image: abc
hostname: abc
links:
 - abc-mongo
  abc-mongo:
image: abc-mongo 
hostname: abc-mongo
  tester:
image: maven:3.3.9-jdk-8
hostname: tester
links:
 - abc
command: mvn -q  -f /cucumber/pom.xml clean integration-test
volumes:
 - /${PWD}/cucumber:/cucumber


Following some consideration I've decided to move Docker to a different 
machine and now I've got this problem where mount the cucumber folder is 
impossible as the machine is not the same.

Any suggestion on this in terms of best practices and solution? 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/c6fbd512-3599-4f4c-9e05-3284b07b04df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RHEL slave

2016-11-16 Thread Peter Berghold
Got it working finally.  Put the SSH slaves plugin on the master, added
some credentials and from there it worked great.

Thanks to all that replied to my original thread

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


Crafting a plugin for Jenkins

2016-11-16 Thread Peter Berghold
One of the tasks I've assigned to Jenkins is managing packages for release
to the test environment and to the production environment (two tasks?).  I
do this by creating two file trees for the packages to live in called "qa"
and "released" with their purpose being rather intuitive.   If the package
tree is being sent to the testing environment qa and released are merged
and then RSync'ed to the test environment and for production releases just
the released tree is tar-ed up and made available to operations.

I say all that to say this:  I know how to write Java code to handle file
uploads and subsequent storage in a file tree.  I've looked at a few
tutorials on writing Jenkins plugins.  What I haven't seen in my random
wanderings around is an example that would become a menu item in the left
had menu bar and manage the UI.

Is there something in github or elsewhere that I could look at that would
do something similar to what I'm after?   From a decent starting place I
can figure out the rest.

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


Re: Slave Jenkins on an RHEL box

2016-11-15 Thread Peter Berghold
wish that were the case.  Nope:  running the same command from the command
line yields the results I'm after.  Since the script runs as tomcat8 and
tomcat8 is trusted between the hosts I'm at a complete loss as to why this
is happening.

On Mon, Nov 14, 2016 at 5:45 PM Donald Morton <d1mo...@gmail.com> wrote:

> Sounds like the ssh command is failing. Maybe the password or private key
> is wrong?
>
>
> On Monday, November 14, 2016 at 10:28:20 AM UTC-6, Peter Berghold wrote:
>
> I have Jenkins running merrily on an Ubuntu box and want to set up a slave
> on an RHEL box.
>
> Created a script on the RHEL box that essentially launches a script that
> in turn launches the slave.jar.  Trying to invoke it over SSH and there's
> where things take a turn for the worse.
>
> I'm getting this:
>
> [11/14/16 16:22:37] Launching agent
> $ /usr/share/tomcat8/startSlave0
> Host key verification failed.
> ERROR: Unable to launch the agent for java.io.EOFException 
> <http://stacktrace.jenkins-ci.org/search?query=java.io.EOFException>: 
> unexpected stream termination
>   at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:365) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.ChannelBuilder.negotiate=method>
>   at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:310) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.ChannelBuilder.build=method>
>   at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:388) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.SlaveComputer.setChannel=method>
>   at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:131) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.CommandLauncher.launch=method>
>   at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.SlaveComputer$1.call=method>
>   at 
> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.util.ContextResettingExecutorService$2.call=method>
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run=method>
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker=method>
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run=method>
>   at java.lang.Thread.run(Thread.java:745) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run=method>
> ERROR: Process terminated with exit code 255
>
>
> That first line is a script on the master that does the SSH.What I'm not 
> sure about is exactly what is complaining about Host key verification.  Given 
> I can run that script by hand and it starts the jar file I'm a bit confused 
> about what's going on here.
>
>
> Has anybody gotten this to work?
>
>
> --
> 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/b9a359bf-eef0-4855-9178-515ee70acce6%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/b9a359bf-eef0-4855-9178-515ee70acce6%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/CAArvnv0AhkoJr%3DDcyyyTi74qp6iVdT%2Bo7KZmPX%2Bi0e9m-RK4Vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Slave Jenkins on an RHEL box

2016-11-14 Thread Peter Berghold
I have Jenkins running merrily on an Ubuntu box and want to set up a slave
on an RHEL box.

Created a script on the RHEL box that essentially launches a script that in
turn launches the slave.jar.  Trying to invoke it over SSH and there's
where things take a turn for the worse.

I'm getting this:

[11/14/16 16:22:37] Launching agent
$ /usr/share/tomcat8/startSlave0
Host key verification failed.
ERROR: Unable to launch the agent for java.io.EOFException
:
unexpected stream termination
at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:365)

at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:310)

at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:388)

at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:131)

at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261)

at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

ERROR: Process terminated with exit code 255


That first line is a script on the master that does the SSH.What
I'm not sure about is exactly what is complaining about Host key
verification.  Given I can run that script by hand and it starts the
jar file I'm a bit confused about what's going on here.


Has anybody gotten this to work?

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


RE: Suggestions needed

2016-10-27 Thread Teichner Peter
Just to add to that - make sure you set the timeout on the shell / ssh to 
unlimited otherwise it will time out

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of John Mellor
Sent: 27 October 2016 13:34
To: jenkinsci-users@googlegroups.com
Subject: RE: Suggestions needed

How long does the hardware testing take?  If its only a couple of hours, why 
not just run a shell step to ssh or whatever out to the hardware and test?  A 
shell step normally blocks until completed, so the job will be in-progress 
until the tests are done.

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Jeffrey Harris
Sent: October-26-16 23:03
To: Jenkins Users
Subject: Suggestions needed

I'm trying to figure out a way to automate submitting a test to our hardware 
testbed and waiting for the test to complete so that the Jenkins job can report 
its status. 

Are either of the ideas below possible?

Create a Jenkins job that submits the test (this is the easy part), waits until 
the job is informed the test is complete and then processes the results. 

The other idea I've had is to create a spool_test job that only spoils the 
test. When the test is complete it starts a complete_test job to process the 
results. 

Ultimately I'd like to have a regress_tests job that spools several tests. But 
I'm not sure with the second approach how to tell regress_tests that it's not 
done until all the complete_test jobs (that it doesn't directly start) are 
done. 

Thanks for any help,
Jeff

-- 
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/c7619784-6c20-471f-b727-de7bc57495ca%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/5aaafbbef9dd47cca4abc2d90886539f%40mbx02cmb01p.esentire.local.
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/1D7A50BF5AC1D449A7E018A3CE1D8B339DD2B94E%40CHX-EXMBX-06.hq.k.grp.
For more options, visit https://groups.google.com/d/optout.


Question about Pipeline as code vs individual jobs

2016-10-25 Thread Teichner Peter
Hi Everyone,

I've been playing with the Jenkins pipeline as code and it made me wonder: 
Should I do a POC for replacing complete build/test and deployment (to Nexus) 
individual jobs with one pipeline job which would have all steps inside it? Our 
build jobs are using mostly maven if that makes any difference. Can any of you 
give me advantage disadvantage or point me to a good review URL? 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/1D7A50BF5AC1D449A7E018A3CE1D8B339DD29351%40CHX-EXMBX-06.hq.k.grp.
For more options, visit https://groups.google.com/d/optout.


RE: Is there a way to use Apache and Matrix based security together?

2016-10-25 Thread Teichner Peter
It depends how you store your original login details for the users – is it 
coming from an LDAP server? Perhaps for you it would make sense to use apache 
as a proxy but let Jenkins do the authentication by connecting to the original 
provider.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Jonathan Hodgson
Sent: 25 October 2016 10:26
To: Jenkins Users
Subject: Is there a way to use Apache and Matrix based security together?

Hi,

I'm running an Apache server, so it makes sense to use that as a proxy for 
Jenkins, and since the people on the project already have logins and passwords 
to access other project related pages, it makes sense to me to use that 
autorization.

But within Jenkins, I'd like to be able to set up fine grained permissions, as 
per the Matrix Security plugin.

Is this possible in some way?

regards

Jon
--
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/944f0bf1-80bc-4e2a-a062-d16780bfcf3a%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/1D7A50BF5AC1D449A7E018A3CE1D8B339DD28E95%40CHX-EXMBX-06.hq.k.grp.
For more options, visit https://groups.google.com/d/optout.


Re: Integrating Jenkins with chef

2016-10-24 Thread Teichner Peter
Which plugin are you using?

Get Outlook for Android



On Mon, Oct 24, 2016 at 8:39 PM +0100, "Lavanya pujari" 
> wrote:

I am working on integrating jenkins with chef. So Inorder to communicate I need 
to fetch the nodes from chef server where I am able to establish connection 
between these two. How can I fetch the nodes?

--
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/dcf93914-b0fc-4fd1-8ffc-ca926027129b%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/631E36F203287D68.a06224ed-7791-436b-ab7f-ad217c5e9147%40mail.outlook.com.
For more options, visit https://groups.google.com/d/optout.


RE: disable/hide logging of shell script content to console log

2016-10-24 Thread Teichner Peter
You can hide your output away from the script by redirecting the output to 
/dev/null but I think this the most you can do – the commands that you write 
will still be displayed.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Bhushan Kittur
Sent: 24 October 2016 16:31
To: jenkinsci-users@googlegroups.com
Subject: disable/hide logging of shell script content to console log


Hello Everyone,



I am using "Execute shell script on remote host using SSH" under Build section 
of the Job config with lines of shell script placed there.

And see all lines from the shell script are logged into Jenkins console log 
during job's execution.

Ex:

tarted by user anonymous

[EnvInject] - Loading node environment variables.

Building in workspace ...

[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.



executing script:

target_env="dev"

var1=${target_env}

key="test123"

branchName=dev_feature1

startDeploy()



case "$var1" in



dev )



.

.

.

esac



 So is there a way to disable/hide shell script contents from logging into 
Jenkins console output of the job.



Sent from Outlook
--
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/HK2PR03MB1857371344C566364709E32FA8A90%40HK2PR03MB1857.apcprd03.prod.outlook.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/1D7A50BF5AC1D449A7E018A3CE1D8B339DD27CF5%40CHX-EXMBX-06.hq.k.grp.
For more options, visit https://groups.google.com/d/optout.


RE: plugin issue..

2016-10-20 Thread Teichner Peter
Use the plugins page if possible as there might be dependencies to install with 
the plugin

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Prasu S
Sent: 20 October 2016 15:52
To: Jenkins Users
Subject: plugin issue..

I installed workflow-step-api plugin manually by copying workflow-step-api.hpi 
version 2.0 under the Jenkins plugins directory and restarted Jenkins. But I 
don't see the plugin in Jenkins under installed tab. Did it miss anything ? 
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/c4bf912c-bbcc-4d72-99d5-ad3ab65f0f26%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/1D7A50BF5AC1D449A7E018A3CE1D8B339DD229AE%40CHX-EXMBX-06.hq.k.grp.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way to make jenkins serve up script generated pages?

2016-10-19 Thread Teichner Peter
On Linux you have a tool called xsltproc which basically does the 
transformation. Assuming your Jenkins is Windows you could get something 
similar I'm sure.

To display the HTML there is a plugin for Jenkins that will let you link in 
static pages to the job

Get Outlook for Android

From: Jonathan Hodgson
Sent: Wednesday, 19 October, 22:58
Subject: Is there a way to make jenkins serve up script generated pages?
To: Jenkins Users

Okay, so here's the situation.

I have build logs in xml format, and an sxlt file to convert them to nice 
pretty html.

Currently the way I'm doing this is with an html and js file in userContent to 
apply the xslt on the client end, so I have a ;link on my build page that is

/userContent/msbuild/MSBuildLog.html?logxml=/job/MyBuild/1043/artifact/Win32_Release_build_log.xml

MsBuildLog.Htnl being the wrapper page that loads the xml file from the 
artifact link, applies the xslt transform and displays the result.

Now this works correctly, and is usable

GOOD SIDE:

I can change the xslt file to improve the display of the log. This is important 
because at the moment the XSLT is very much a work in progress, and since I'm 
cimpletely new to XSLT I expect it to remain so for quite a while (especially 
as I'm supposed to be spending most of my time on actual deliverable code 
rather audo build stuff). Doing a one off conversion at build time and 
artifacting the generated html really isn't viable for the moment

BAD SIDE:

It's slow. Ok not unusably so, but certainly enough to be irritating and mess 
with my workflow.

So the ideal would be to do something similar on the server end. If I was 
running everything in Apache, no issue, I could use PHP, but I don't think 
that's an option here if I'm just using theJenkins server.

Is there a way to do this that anybody knows?

--
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/16e6fb5f-5385-4f04-9312-44640e781359%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/631E36F203287D68.ee514a3d-29f1-4d7a-bb50-564844d1fa08%40mail.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.24: Question about scm code change condition during build execution

2016-10-18 Thread Teichner Peter
Hi Rachel,

Thanks for your answer. No that's not it. I'm running a pipeline but it could 
be manual execution as well and basically I want the ability the say my shell 
script is conditional and should only run if there was a change in the source. 
Regardless of how the build was triggered.

Thanks,
Peter

Get Outlook for Android<https://aka.ms/ghei36>



On Tue, Oct 18, 2016 at 8:28 PM +0100, "Rachel" 
<raquel.moreno.carm...@gmail.com<mailto:raquel.moreno.carm...@gmail.com>> wrote:

Hi Teichner,

I don't know if I've understood you correctly, but I usually configure my jobs 
with:

  *   Build Triggers > Poll SCM

With this option you specify when you want to check your SCM (e.g. hourly, 
every 2 hours, ...) and a new build is executed only if changes are detected 
from the last build. Is that you're looking for?

Best regards,
Rachel

El martes, 18 de octubre de 2016, 11:22:35 (UTC+2), Teichner Peter escribió:
I’m trying to find the right solution for using a conditional multiple build 
step depending if there was a code change. I have seen a solution by checking 
ROOT_BUILD_CAUSE but that might be unreliable as the execution could be 
manually triggered but there could still be code change. I need this so I wont 
build the software unless there was an actual change in the code change. 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/631E36F203287D68.4e80c18c-c88a-4951-8451-671343570ed6%40mail.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins 2.24: Question about scm code change condition during build execution

2016-10-18 Thread Teichner Peter
I'm trying to find the right solution for using a conditional multiple build 
step depending if there was a code change. I have seen a solution by checking 
ROOT_BUILD_CAUSE but that might be unreliable as the execution could be 
manually triggered but there could still be code change. I need this so I wont 
build the software unless there was an actual change in the code change. 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/1D7A50BF5AC1D449A7E018A3CE1D8B339DD1FBDA%40CHX-EXMBX-06.hq.k.grp.
For more options, visit https://groups.google.com/d/optout.


Building RPMS from Jenkins job

2016-09-07 Thread Peter Berghold
I wonder if anybody else has had the experience that I've had.  I have
several jobs running in Jenkins right now that create an RPM file and
deliver it to a repository. What I've observed is the rpmbuild command can
error out and the build still get marked successful.

Anybody else running into this?  Any thoughts?

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


Re: UnsatisfiedLinkError on slaves after restart of master

2016-08-16 Thread Peter McEvoy
See exact same behaviour with Jenkins 2.7.1 and TFS plugin 5.0.0.0...   
Updating plugins on master which needs to restart forces me to cycle all 
Jenkins agents...  Little worried that this is almost a year later and not 
getting more attention...

On Tuesday, 22 September 2015 16:00:52 UTC+1, Stefan Drissen wrote:
>
> Jenkins: 1.627
> TFS plug-in: 4.0.0
> Java: jre1.8.0_60
>
> Intermittently multiple slaves are failing to build with:
>
> Started by user Stefan Drissen
> [EnvInject] - Loading node environment variables.
> Building remotely on  in workspace 
> c:\exact\jenkins\workspace\7.20\build 
> work
> FATAL: java.io.IOException: Remote call on  failed
> java.lang.RuntimeException: java.io.IOException: Remote call on  
> failed
>  at hudson.plugins.tfs.model.Server.execute(Server.java:110)
>  at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:
> 193)
>  at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.
> java:189)
>  at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.
> java:205)
>  at hudson.plugins.tfs.TeamFoundationServerScm.
> recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:262)
>  at hudson.plugins.tfs.TeamFoundationServerScm.checkout(
> TeamFoundationServerScm.java:211)
>  at hudson.model.AbstractProject.checkout(AbstractProject.java:1277)
>  at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(
> AbstractBuild.java:610)
>  at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
>  at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.
> java:532)
>  at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.
> run(MultiJobBuild.java:134)
>  at hudson.model.Run.execute(Run.java:1741)
>  at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.
> java:73)
>  at hudson.model.ResourceController.execute(ResourceController.java:98)
>  at hudson.model.Executor.run(Executor.java:408)
> Caused by: java.io.IOException: Remote call on  failed
>  at hudson.remoting.Channel.call(Channel.java:786)
>  at hudson.plugins.tfs.model.Server.execute(Server.java:106)
>  ... 14 more
> Caused by: java.lang.UnsatisfiedLinkError: com.microsoft.tfs.jni.internal.
> platformmisc.NativePlatformMisc.nativeGetEnvironmentVariable(Ljava/lang/
> String;)Ljava/lang/String;
>
>
>
> A restart of the slave (Windows 2008r2 - started as a Windows scheduled 
> task) solves the issue (for a while). Why?
>
> The 4.0.0 version of the TFS plug-in is supposed to be putting the tfs sdk 
> in a place available for the slave - I have to admit that after searching 
> the machine I cannot find it - but since a restart of the slave solves the 
> issue, it must be somewhere.
>
> The issue *seems* to manifest after a restart of the master Jenkins 
> service (running on Windows 8.1 x64).
>
>
> Best regards,
>
>
> Stefan
>

-- 
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/be95ce7c-bd3b-47ed-bbb3-58835974e42b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Question regarding Jenkins pipeline setup

2016-08-01 Thread Peter Wiseman
Likewise, I'm concerned about a full checkout into workspace@script.  Seems 
to be overkill if it's just to find the Jenkinsfile.  With multiple active 
branches (each 3GB), that's seemingly quite a lot of unnecessary permanent 
storage.

-- 
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/d7000c66-357e-43a0-8c8e-0b825a376583%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


configuring a plugin programmatically

2016-07-14 Thread Peter Lappo
Hi,
I'm writing an Ansible script that installs Jenkins and loads SCM config 
from git using the scm-sync-configuration-plugin. 
I've got Jenkins installed and running, pulled the config from git but I 
need to reload the Jenkins config files from SCM which is easy manually as 
there is a link on Manage Jenkins / Configure System called Reload which is 
page http:///plugin/scm-sync-configuration/reloadAllFilesFromScm. 
However, I can't figure out how to invoke this link with either curl or the 
jar-cli.
Any ideas?

My ultimate goal is to fully automate the installation and configuration of 
Jenkins so that I can start Jenkins on any machine with the last known 
configuration stored in git.

Thanks
Peter

-- 
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/80640906-42aa-4879-9c67-7e7213960afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >