Re: Pipeline - merge and push

2017-02-08 Thread Sharan Basappa
The issues is, the files generated during testing cannot be predicted and can keep changing. Also, even if I put them in Git ignore, how would checkout still work as the files are still local to my repo branch? On 9 Feb 2017 11:17 a.m., "Indra Gunawan (ingunawa)" wrote: > I would recommend that

Re: Nexus plugins can't connect to my fresh Nexus install

2017-02-08 Thread Patrick Tchankue
Hey there, I had a similar issue and I realised that my settings were not right. I was trying to connect to a specific repo on my Nexus server. Try something that looks like this:

Re: Pipeline - merge and push

2017-02-08 Thread Indra Gunawan (ingunawa)
I would recommend that you include these files in a .gitignore so they are ignored by git. -Indra From: on behalf of Sharan Basappa Reply-To: "jenkinsci-users@googlegroups.com" Date: Wednesday, February 8, 2017 at 6:27 PM To: Jenkins Users Subject: Pipeline - merge and push I have created

Not able to generate coverage report from jenkins

2017-02-08 Thread Sukumar Reddy
Hello All I am using 1. Jenkins Jenkins ver. 1.625.18.3 (CloudBees Jenkins Enterprise 15.11) 2. scoverage plugin: SbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0") 3. sbt version sbt-0.13.9 4. sbt settings: [process_args] java_version = '1.8.0_111' #

Pipeline - merge and push

2017-02-08 Thread Sharan Basappa
I have created a pipeline script. The pipeline script runs in a 'topic' branch (e.g. my_feature). Once test stage is successful, I would like to merge this into the master branch and then push the changes to remote. However, I have some doubts. My test stage creates many intermediate files tha

pipeline steps

2017-02-08 Thread Sharan Basappa
I would like to know if I have multiple steps in my pipeline script and if any one of the steps fails then subsequent steps would not be executed and build would terminate. Is my understanding correct? -- You received this message because you are subscribed to the Google Groups "Jenkins Users

Re: Issue with pipeline

2017-02-08 Thread Sharan Basappa
folks, I was able to resolve this by using {workspace}@script to access the files in the workspace. But I would like to understand the reason behind having files in {workspace}@script rather than {workspace} ... On Wednesday, 8 February 2017 15:51:09 UTC+5:30, Sharan Basappa wrote: > Some upda

Seeking Advice on Building First CI

2017-02-08 Thread Robert Werner
I'm building a Jenkins based CI for the first time. Here are the use cases I'm considering for it: 1. Ability to run Unit Tests, Integration Tests, & Acceptance Tests in Local Dev environment (without Jenkins). 2. Ability to run Unit Tests, Integration Tests, & Acceptance Tests in

Re: [Declarative pipeline] Setting environment variable based on other environment var

2017-02-08 Thread Staffan Forsell
Yeah, found it too. I had actually read that one but it didn't stick in my mind I guess... Question: Am I supposed to be able to use groovy GStrings in the environment context when this bugs is fixed? e.g. would: environment { WSROOT = "${env.MAYBEEMPTY?: 'defaultvalue'}" } work? I'm

Re: [Declarative pipeline] Setting environment variable based on other environment var

2017-02-08 Thread Arnaud Héritier
This one : https://issues.jenkins-ci.org/browse/JENKINS-41748 On Wed, Feb 8, 2017 at 10:47 PM, Andrew Bayer wrote: > I'm on a plane right now so can't find it, but there's an open ticket for > this and we'll be looking into it shortly. > > A. > > On Feb 8, 2017 08:19, "Staffan Forsell" wrote: >

Re: [Declarative pipeline] Setting environment variable based on other environment var

2017-02-08 Thread Andrew Bayer
I'm on a plane right now so can't find it, but there's an open ticket for this and we'll be looking into it shortly. A. On Feb 8, 2017 08:19, "Staffan Forsell" wrote: > Using the following declarative pipeline: > > pipeline { > agent any > environment { > WSROOT = "${env.WORKSPACE}" >

Set up a new Jenkins parameters weather or not to send an email notification

2017-02-08 Thread siva . datladba
Hello all, I am new to jenkins I have a jenkins build running on a groovy script which sends out an email notification with build status. I also have another jenkins build where we don't want to use groovy syntax to send notifications so we are going with parameter where I have set a way in dro

ssh-agent plugin do not actually switch job cridentials

2017-02-08 Thread Moshe Zuisman
Hi. I am using ssh-agent plugin to define cridentials for my job(node is defined with user "ec2-user" but I want to run build script under different user - ctmacc1) I have defined such user on EC2 linux node , with same ssh key as ec2-user. When I connect to machine manually (putty) with ctmacc1 -

[Declarative pipeline] Setting environment variable based on other environment var

2017-02-08 Thread Staffan Forsell
Using the following declarative pipeline: pipeline { agent any environment { WSROOT = "${env.WORKSPACE}" } stages { stage("Echo world") { steps { echo "Hello world! WSROOT: $WSROOT WSROOTenv: ${env.WSROOTenv} WORKSPACE: ${env.WORKSPACE} " } } } } The ou

Different user in Jenkins node configuration and job.

2017-02-08 Thread Moshe Zuisman
Hi. I am using Jenkins with EC2 plugin. Problem is aas follows. In Jenkins configuration I created definition of EC2 Linux node, with user "ec2-user". Initialisation script of thosenode instalal several packages and creates my aplicative user ("appuser"), under which I actually want to my applicati

Build failed post-build email adds ?page=changes parameter instead of redirect to the detailed build ID

2017-02-08 Thread Enoch
Hi everybody! noticed recently that some (most!) URLs in Jenkins v2.44 mails suffixes "?page=changes" which is not what we want and is not how it was sometime before. Does somebody know where we can configure such behavior? Problem: See

Re: Jenkins Default Anonymous Permissions

2017-02-08 Thread dane0542 via Jenkins Users
Well it must be a bug then because I am on Jenkins version 2.45 and it is freshly installed. I will try to reproduce. Am Mittwoch, 8. Februar 2017 15:58:50 UTC+1 schrieb Daniel Beck: > > > > On 08.02.2017, at 11:03, dane0542 via Jenkins Users < > jenkins...@googlegroups.com > wrote: > > > > At

Re: Force result change in Groovy

2017-02-08 Thread Daniel Beck
> On 08.02.2017, at 15:48, 'Maciej Jaros' via Jenkins Users > wrote: > > But that throws `cannot change build result while in COMPLETED`. So can I > somehow force the result? While there's probably a way to accomplish that, it's likely other things will break as a result of this as (obviousl

Re: Jenkins Default Anonymous Permissions

2017-02-08 Thread Daniel Beck
> On 08.02.2017, at 11:03, dane0542 via Jenkins Users > wrote: > > At the moment the default access for anonymous is read which allows everyone > to see executed jobs … Is there a reason why default access is not set to > allow nothing and let the Administrator or User itself decide Since Je

Force result change in Groovy

2017-02-08 Thread 'Maciej Jaros' via Jenkins Users
Hi. I wanted to manully change last build from stable to unstable. Is it possible? I tried using Groovy def job = Jenkins.instance.getItem("GOPAC-build-alfa"); def build = job.getLastStableBuild(); build.setResult(Result.UNSTABLE); But that throws `cannot change build result while in COMPLETE

Re: Jenkins node selection

2017-02-08 Thread Kristian
This also works in a multibranch pipeline job. Just do it like David wrote: * node("some_slave_label") { ... } * 2017-02-07 21:50 GMT+01:00 David Karr : > On Tuesday, February 7, 2017 at 12:36:59 PM UTC-8, Tejinder Kaur Gill wrote: >> >> How can we specify the node on which Jenkins mu

Re: Error with weblogic12.1.3 Integration with jenkins

2017-02-08 Thread Allen Geer
>From best I can tell you have a WebLogic Plugin Descriptor (weblogic.xml) that has pointed to a class type of "domain" which does not exist. I would do a search of "weblogic.xml" for the word domain and see if what you pull up. On Wednesday, February 8, 2017 at 1:08:29 AM UTC-7, Indra Gunawan

Jenkins Multibranch Pipeline and checkout of subversion

2017-02-08 Thread Kristian
Hey, I think there is something odd with Multibranch plugin or I have done something wrong. I have a repository: > http://svnserver/some/svn/repo This repo has a trunk path and some branches like this: - http://svnserver/some/svn/repo/trunk - - http://svnserver/some/svn/repo/branch/1.0 - - http

Re: Jenkins git supports subtree?

2017-02-08 Thread Mark Waite
I'm not aware of any support to update a remote Git repository from pipeline yet. I thunk there may be one pull request pending to add GitPublisher support to pipeline, but I have not evaluated it yet. Mark Waite On Tue, Feb 7, 2017, 6:58 AM Witold Konior <948...@gmail.com> wrote: > Hi, > > I ha

Unable to launch opensack windows instance successfully from Jenkins

2017-02-08 Thread kvimal0123
Hi, I have configured Jenkins on my Windows machine with all relevant plugins to integrate openstack windows images to Jenkins, so that will be able to automate the Instance launching and validation of that image. But now the problem is,I was trying to launch an instance from Jenkins , I can

Trigger job even if there is no changes in repository.

2017-02-08 Thread Witold Konior
Hi, Scenario: I have two repositories. First one is real code repository which build is triggered by Poll SCM. Second repository is set to make post processing after first one is done. Second repository contains only pipeline description (I want to keep track of pipeline on GIT). What I'm expe

Re: Issue with pipeline

2017-02-08 Thread Sharan Basappa
Some updates from the experiments I tried out. I directly logged into the Linux machine where Jenkins is installed. I cd'ed into the workspace and listed the files. My scripts are not listed. I also found additional directories with @scripts suffix to the directories. There the files are listed. P

Jenkins Default Anonymous Permissions

2017-02-08 Thread dane0542 via Jenkins Users
Hi Guys, At the moment the default access for anonymous is read which allows everyone to see executed jobs and the output of those which may contain sensitive data as URLs usernames etc. without login by just knowing the URL of jenkins if reachable from the Internet. Is there a reason why defaul

Re: How to set global quiet period automatically on Jenkins startup

2017-02-08 Thread Barry Laffoy
By digging into the source code, I found an answer myself. import jenkins.model.Jenkins instance = Jenkins.getInstance() instance.setQuietPeriod(0) As always, I'm left to wonder if this is how it's supposed to be done, or have I just completely misunderstood Jenkins? On Wednesday, 8 February 20

MultiJob plugin - execute sequence job not in order

2017-02-08 Thread Stefano
Hello, i have a problem whit multiob plugin, i need start two jobs not in parallel but in exact sequence, but seems the sequence is randomly sometimes it works, sometimes not... Attach an image of configuration;

How to set global quiet period automatically on Jenkins startup

2017-02-08 Thread Barry Laffoy
In my never-ending quest to create a deployment script for Jenkins (why is this so difficult?), I would like to be able to configure the quiet period on startup, *without needing to configure it through the UI*. Is there a way of configuring this through groovy? Ideally I would like to place a

Re: Error with weblogic12.1.3 Integration with jenkins

2017-02-08 Thread Indra Gunawan (ingunawa)
What is that you are trying to accomplish? Please provide the steps-by-steps that led to the Java Stack Trace. Have you googled the issue to see if there is already a reported Jira issue for this weblogic deployer plugin? From: on behalf of mukul jha Reply-To: "jenkinsci-users@googlegroups.