Re: build status UNstable

2019-03-07 Thread RAJENDRA PRASAD
jenkins changes build status based on builid history .
[image: image.png]

[image: image.png]

In order change the build status  you need to delete the build history
Dont do this if you want to retain the build histroy for some purpose.

If you are ok o delete the build history You can use following groovy
script for that:

You can run groovy script from  Go to your Jenkins home page > Manage
Jenkins > Jenkins Script Console
Copy following Script in script console  and hit run button

def jobName = "D_GitCheckoutPipeLine"# Update the Job Name here
before executing this script
def job = Jenkins.instance.getItem(jobName)
job.getBuilds().each { it.delete() }
job.nextBuildNumber = 1
job.save()

Let me know if you have any questions







*Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in
Testing.Mobile:9008566233*


On Fri, 8 Mar 2019 at 05:28, Jagadeesh Gudavalli 
wrote:

> Build step 'Publish JUnit test result report' changed build result to 
> UNSTABLE guys i am facing this issue, can i know how can i resolve.. Thanks 
> in Advance Jagadeesh Gudavalli.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/651f768f-ae80-4a56-a0d2-a8c9c1da6573%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/CAMrg02ScP3QrX0akYm%3DxMmZ21t_R4Wv%2BoqnyXRC_V4rMG8DyAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to enable only required view when logged through different user not admin

2019-03-07 Thread RAJENDRA PRASAD
Have you  installed required plugins and configured properly?
Please recheck again

Thanks,
Rajendra

On Fri, 8 Mar, 2019, 09:37 Archana Srichandan, 
wrote:

> Hi,
>
> Have refered the same only issue when i login as separate user i am able
> to view the default view which holds all the project job,i want set
> projectwise login with projectwise view for the logged in user.
>
> Regards,
> Archana Srichandan
>
>
> On Thu, Mar 7, 2019 at 10:29 PM RAJENDRA PRASAD <
> rajendra.penuma...@gmail.com> wrote:
>
>> Following link has answer for question:
>>
>>
>> https://stackoverflow.com/questions/8323129/jenkins-restrict-view-of-jobs-per-user
>>
>> Rajendra
>>
>> On Thu, 7 Mar, 2019, 19:46 Archana Srichandan, <
>> archana.srichan...@4tigo.com> wrote:
>>
>>> Hi All,
>>> I want teams only to view there projects rather than all the projects(as
>>> in admin case),but i am able to view "All view " when i login with a
>>> different user giving the details of all the listed jobs.
>>> can i get a suggestion?
>>> Regards,
>>> Archana Srichandan
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> 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%2BU8sbVtGn7qHr3J8tt%2BniZXjn9gxgJqOV4cUwq%3D17r4D14QDg%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02SPi26BePs8BJQjXQMaxohm3vOoE5R%3Dgiggf9zE%3DMh3Vg%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02RRTS%2BNRdNvH%2BH9qnLRQO93EuOYqjcd0y1nz%3DicF%3DJT6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to enable only required view when logged through different user not admin

2019-03-07 Thread Archana Srichandan
Hi,

Have refered the same only issue when i login as separate user i am able to
view the default view which holds all the project job,i want set
projectwise login with projectwise view for the logged in user.

Regards,
Archana Srichandan


On Thu, Mar 7, 2019 at 10:29 PM RAJENDRA PRASAD <
rajendra.penuma...@gmail.com> wrote:

> Following link has answer for question:
>
>
> https://stackoverflow.com/questions/8323129/jenkins-restrict-view-of-jobs-per-user
>
> Rajendra
>
> On Thu, 7 Mar, 2019, 19:46 Archana Srichandan, <
> archana.srichan...@4tigo.com> wrote:
>
>> Hi All,
>> I want teams only to view there projects rather than all the projects(as
>> in admin case),but i am able to view "All view " when i login with a
>> different user giving the details of all the listed jobs.
>> can i get a suggestion?
>> Regards,
>> Archana Srichandan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send 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%2BU8sbVtGn7qHr3J8tt%2BniZXjn9gxgJqOV4cUwq%3D17r4D14QDg%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02SPi26BePs8BJQjXQMaxohm3vOoE5R%3Dgiggf9zE%3DMh3Vg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BU8sbXoY1PX%3DNFraKT7azCLjX%2B5%2BO4N%3DPwXk3dHaALh_hdUrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Declarative Pipeline: Lock multiple stages using NODE_NAME as resource.

2019-03-07 Thread Dusan Nikolov
Hi, I'm trying to lock multiple stages in a pipeline and would like to use 
NODE_NAME as the resource. Purpose is to allow multiple parallel executions 
of the pipeline on different available nodes, but to make a node 
unavailable while it's used by one running pipeline instance.
Now, the trick is that pipeline needs to be setup to run on two nodes at 
the same time (please see example below).
I've tried setting it up by using lock in options block of the surrounding 
stage, but since options gets evaluated/executed before agent is assigned 
to a stage, this fails to find NODE_NAME.

pipeline {
agent none
stages {
stage ('main') {
parallel {
stage ('server') {
agent { label 'server' }
options { lock("${NODE_NAME}")} // This doesn't work. NODE_NAME not 
available
steps {
script {
echo "${NODE_NAME}"
sleep(10)
}
}
}
stage ('client') {
agent { label 'client' }
options { lock("${NODE_NAME}")} // This doesn't work. NODE_NAME not 
available
steps {
script {
echo "${NODE_NAME}"
sleep(10)
}
}
}
}
}
}
}

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


Locking multiple stages with NODE_NAME based lock

2019-03-07 Thread Dusan Nikolov
Hi, 
I'm trying to figure out how/if it's possible to create a lock that will 
guard multiple stages of a pipeline execution, based on the NODE_NAME on 
which they are supposed to execute.

I tried putting the lock in the options block of the surrounding stage, but 
this throws an error because options block in a stage is executed/evaluated 
before agent block.
Please see the example pipeline below for reference:

pipeline {
agent none
stages {
stage ('main') {
parallel {
stage ('server') {
agent { label 'server' }
// options { lock(NODE_NAME) }
stages {
stage ('all') {
options { lock("${NODE_NAME}") } // this also seems to fail
steps {
script {
echo "${NODE_NAME}"
sleep(10)
}
}
}
}
}
stage ('client') {
agent { label 'client' }
stages {
stage ('all') {
options { lock("${NODE_NAME}") }
steps {
script {
echo "${NODE_NAME}"
sleep(10)
}
}
}
}
}
}
}
}
}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6d488fc9-333b-4d30-93f0-4fa59c7769fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


build status UNstable

2019-03-07 Thread Jagadeesh Gudavalli


Build step 'Publish JUnit test result report' changed build result to UNSTABLE 
guys i am facing this issue, can i know how can i resolve.. Thanks in Advance 
Jagadeesh Gudavalli.

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


Build Triggers - Build periodically plugins

2019-03-07 Thread Andrew Poage
Hi,

Anyone know of any plugins that can replace the cron job scheduler with 
simpler more robust scheduler. Essential looking to run jobs every 2nd and 
every 4th Saturday of the month. Since that tends to fluctuate a lot using 
the cron scheduler gets pretty dicey.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3dc3cde5-b000-49c2-ae00-9149efd8296b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a trim method in the string parameter ?

2019-03-07 Thread Victor Martinez
It seems it's solved:
- https://issues.jenkins-ci.org/browse/JENKINS-47115

What version of declarative do you 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/1f755df4-c587-4e80-8644-07a536c5dcae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Steve Garrett
Yes, for me it was that the pod wasn't defined properly in the cloud
configuration within Jenkins and all seems to be right.  I just need to
expose the jnlp ports outside the cluster so the jnlp container can
communicate with Jenkins in the other cluster.  Thanks for your help,
appreciate it

Steve


On Thu, Mar 7, 2019 at 2:32 PM Liejun Tao  wrote:

> kubectl describe pod
> would tell why the pod can't start.
> If you are using private registry, "pull image secret" is required.
> Sometimes a manual "docker logout" on the worker node help with image pull.
>
> On Thu, Mar 7, 2019 at 12:05 PM Steve Garrett 
> wrote:
>
>> Hi, was able to figure that out, thanks for your help there.  Now I get a
>> different problem.  My pod gets created now on the right cluster but it
>> seems to fail to pull the image.  When I go onto any of the worker nodes
>> I'm able to do a docker pull and it works just fine.  What am I doing wrong?
>>
>> Thanks
>>
>> Steve
>>
>>
>> On Thu, Mar 7, 2019 at 4:42 AM Carlos Sanchez  wrote:
>>
>>> are you creating pod templates in UI or in pipeline?
>>>
>>> in UI is just a matter of assigning different labels to different pod
>>> templates in different clouds
>>> in pipeline you can pass an argument "cloud" to podTemplate
>>>
>>> On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett 
>>> wrote:
>>>
 Hi,

 I'm trying to use multiple kubernetes clouds and have just a single
 jenkins I was able to get both kubernetes clusters registered as clouds and
 all the login checks work. When I run a build to the cluster where
 Jenkins is, i
 t works fine, pulls code, builds an image and all that. However, when I
 change the label to my second cluster, that doesn't have any Jenkins there
 it seems to never want to build there and always builds on the cluster
 that's local to Jenkins.

 I'm missing something stupid I'm sure of it but don't see what it is.


 Thanks for your help


 Steve

 --
 You received this message because you are subscribed to the Google
 Groups "Jenkins Users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%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/CALHFn6OXYBB0NXC%2BPZ3%2B7q-SnBxOpCausC0UNC2_JkRvdd7%2B9Q%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAAtmvvtdpyXVZ%3DSNufUEzOEPdxECaj0jjKSSfqnsMqZ0b0%3DM1Q%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thanks,
> Baibai
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAMRm5ja1A6KTGsoZrq%2BRr-nyGwz-TLDKGYi%2B7YOjZn8Lubj7hg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAAtmvvtai_Qb_i8sQ9he3NK-FgTW%3D7ZHaZtvaVMEejjUY%3DnW6g%40mail.gmail.co

Jenkins Pipelines: Use jx-release-version

2019-03-07 Thread Sverre Moe
I read the CloudBees blog on jx-release-version.
>
> x-release-version calculates the next version number based on the current 
> Git tag, or current specified version on pom.xml/Makefile

https://www.cloudbees.com/blog/automatically-versioning-your-application-jenkins-x

It looks interesting to determine next version. Is it only available for 
Jenkins X?

We use something like automatic versioning based on the number of git 
commits.
Current version v1.0.0
Add 5 commits, push and next version is v1.0.5
This is because we didn't want to make bump commits any more.
With this jx-release-version we could get the same advantage, but not get 
the next version minor as a commit count from the last.

Can this tool be used with standard Jenkins installation and our Pipeline 
scripts?

What about Gradle, automake and cmake? Is there plans to support these also?
build.gradle
version = 1.0.0-SNAPSHOT
CMakeLists.txt
project(application VERSION 1.0.0)
configure.ac
AC_INIT(application, 1.0.0)

Our projects with automake (configure.ac) and cmake (CMakeLists.txt) does 
not use the SNAPSHOT postfix on version. It is only used for Java projects 
with Maven and Gradle.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3a6af824-7b4b-4325-8824-37253ddbcf1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Liejun Tao
kubectl describe pod
would tell why the pod can't start.
If you are using private registry, "pull image secret" is required.
Sometimes a manual "docker logout" on the worker node help with image pull.

On Thu, Mar 7, 2019 at 12:05 PM Steve Garrett 
wrote:

> Hi, was able to figure that out, thanks for your help there.  Now I get a
> different problem.  My pod gets created now on the right cluster but it
> seems to fail to pull the image.  When I go onto any of the worker nodes
> I'm able to do a docker pull and it works just fine.  What am I doing wrong?
>
> Thanks
>
> Steve
>
>
> On Thu, Mar 7, 2019 at 4:42 AM Carlos Sanchez  wrote:
>
>> are you creating pod templates in UI or in pipeline?
>>
>> in UI is just a matter of assigning different labels to different pod
>> templates in different clouds
>> in pipeline you can pass an argument "cloud" to podTemplate
>>
>> On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to use multiple kubernetes clouds and have just a single
>>> jenkins I was able to get both kubernetes clusters registered as clouds and
>>> all the login checks work. When I run a build to the cluster where
>>> Jenkins is, i
>>> t works fine, pulls code, builds an image and all that. However, when I
>>> change the label to my second cluster, that doesn't have any Jenkins there
>>> it seems to never want to build there and always builds on the cluster
>>> that's local to Jenkins.
>>>
>>> I'm missing something stupid I'm sure of it but don't see what it is.
>>>
>>>
>>> Thanks for your help
>>>
>>>
>>> Steve
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%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/CALHFn6OXYBB0NXC%2BPZ3%2B7q-SnBxOpCausC0UNC2_JkRvdd7%2B9Q%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAAtmvvtdpyXVZ%3DSNufUEzOEPdxECaj0jjKSSfqnsMqZ0b0%3DM1Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Thanks,
Baibai

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMRm5ja1A6KTGsoZrq%2BRr-nyGwz-TLDKGYi%2B7YOjZn8Lubj7hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Steve Garrett
Hi, was able to figure that out, thanks for your help there.  Now I get a
different problem.  My pod gets created now on the right cluster but it
seems to fail to pull the image.  When I go onto any of the worker nodes
I'm able to do a docker pull and it works just fine.  What am I doing wrong?

Thanks

Steve


On Thu, Mar 7, 2019 at 4:42 AM Carlos Sanchez  wrote:

> are you creating pod templates in UI or in pipeline?
>
> in UI is just a matter of assigning different labels to different pod
> templates in different clouds
> in pipeline you can pass an argument "cloud" to podTemplate
>
> On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett 
> wrote:
>
>> Hi,
>>
>> I'm trying to use multiple kubernetes clouds and have just a single
>> jenkins I was able to get both kubernetes clusters registered as clouds and
>> all the login checks work. When I run a build to the cluster where
>> Jenkins is, i
>> t works fine, pulls code, builds an image and all that. However, when I
>> change the label to my second cluster, that doesn't have any Jenkins there
>> it seems to never want to build there and always builds on the cluster
>> that's local to Jenkins.
>>
>> I'm missing something stupid I'm sure of it but don't see what it is.
>>
>>
>> Thanks for your help
>>
>>
>> Steve
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%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/CALHFn6OXYBB0NXC%2BPZ3%2B7q-SnBxOpCausC0UNC2_JkRvdd7%2B9Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Steve Garrett

Hi,

in the podTemplate, I'm using scripted jenkinsfiles so does that still 
apply?  I've never seen a cloud parameter before.

Thanks,

Steve

On Thursday, March 7, 2019 at 4:42:24 AM UTC-5, Carlos Sanchez wrote:
>
> are you creating pod templates in UI or in pipeline?
>
> in UI is just a matter of assigning different labels to different pod 
> templates in different clouds
> in pipeline you can pass an argument "cloud" to podTemplate
>
> On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett  > wrote:
>
>> Hi,
>>
>> I'm trying to use multiple kubernetes clouds and have just a single 
>> jenkins I was able to get both kubernetes clusters registered as clouds and 
>> all the login checks work. When I run a build to the cluster where 
>> Jenkins is, i
>> t works fine, pulls code, builds an image and all that. However, when I 
>> change the label to my second cluster, that doesn't have any Jenkins there 
>> it seems to never want to build there and always builds on the cluster 
>> that's local to Jenkins.
>>
>> I'm missing something stupid I'm sure of it but don't see what it is.
>>
>>
>> Thanks for your help
>>
>>
>> Steve
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%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/960fa5b1-165c-4d05-947d-792f5638445d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to enable only required view when logged through different user not admin

2019-03-07 Thread RAJENDRA PRASAD
Following link has answer for question:

https://stackoverflow.com/questions/8323129/jenkins-restrict-view-of-jobs-per-user

Rajendra

On Thu, 7 Mar, 2019, 19:46 Archana Srichandan, 
wrote:

> Hi All,
> I want teams only to view there projects rather than all the projects(as
> in admin case),but i am able to view "All view " when i login with a
> different user giving the details of all the listed jobs.
> can i get a suggestion?
> Regards,
> Archana Srichandan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send 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%2BU8sbVtGn7qHr3J8tt%2BniZXjn9gxgJqOV4cUwq%3D17r4D14QDg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Unable to ssh and tail device logs from the Jenkins

2019-03-07 Thread Darin Duphorn
I figured out the issue.

I wasn't using the full path in my command.  Once I updated that Jenkins
was able tail the logs.





On Thu, Mar 7, 2019 at 10:50 AM Darin Duphorn 
wrote:

>
> Hello, It's my first day in the "Jenkins Users" group.
>
> I've been struggling with tailing device logs when executing a Jenkins
> build.
>
> My code works through Maven, but the tail returns null when executing the
> same test from Jenkins.
>
> Is there a plug in that will help me with this?
>
> Flow:  Jenkins -> Maven -> Eclipse (Java) -> TestNG -> Selenium
>
> I need to figure this out because I push a command to a device, and the
> device screen changes.  In-order for me to know the change happened I need
> to scan the device logs for a specific log event.
>
> Also, if I add the command to the Pre Steps section -> Execute shell, it
> works, but it doesn't help because I can on trigger the command as needed.
>
> Thanks for any help you can provide.
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/0b51c330-2bad-40fa-be88-0fe98c499953%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/CABY1U6HPVVNrjZ%2B-G7uN0SqARwengxvRGdR26MzY%2BAkoWWAz%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Redirect 8080 request 443

2019-03-07 Thread Raghav
HI All,
I am new tjenkins. 
1. Currently my Jenkins applicaiton running on port 8080 default port.
2. Apached installed and configured for jenkins which is running on 443

Right now i am able to access jenkins on both 8080 and 443 port.  but 8080 
port is not secure.
Please hlep me how to redirect all the traffic from 8080 to 443 port. 

##Note : 8080 port is not configured in Apache.


Raghav

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


Unable to ssh and tail device logs from the Jenkins

2019-03-07 Thread Darin Duphorn

Hello, It's my first day in the "Jenkins Users" group.

I've been struggling with tailing device logs when executing a Jenkins 
build.

My code works through Maven, but the tail returns null when executing the 
same test from Jenkins.

Is there a plug in that will help me with this?

Flow:  Jenkins -> Maven -> Eclipse (Java) -> TestNG -> Selenium

I need to figure this out because I push a command to a device, and the 
device screen changes.  In-order for me to know the change happened I need 
to scan the device logs for a specific log event.

Also, if I add the command to the Pre Steps section -> Execute shell, it 
works, but it doesn't help because I can on trigger the command as needed.

Thanks for any help you can provide.







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


Re: Warnings Next Generation Plugin with CodeWarrior

2019-03-07 Thread Ullrich Hafner


> Am 07.03.2019 um 13:10 schrieb Gavin Nottage :
> 
> I started to work on adding the help text as suggested, but have got very 
> confused. I'm an embedded C programmer and while Java is mostly 
> understandable, I haven't found a suitable guide for contributing to existing 
> plugins. I have some experience with git, but Maven is all new to me. 
> Whatever I try to do I get errors that mean nothing to me like:
> 
> mvn hpi:run
> [INFO] Scanning for projects...
> [WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:2.7 is 
> missing, no dependency information available
> [WARNING] Failed to build parent project for 
> io.jenkins.plugins:warnings-ng:hpi:4.0.0-SNAPSHOT


I’ll add something to the Contributing document. I’m currently preparing a 
docker-based development environment for my plugin for one of my university 
courses. Hopefully, this will work for contributors as well.
  
> 
> I think I know the code change to make, but cannot build or test it. The 
> addition I think is needed is as below, and I've attached the complete file. 
> If this is good then it can be added...
> 
> Thanks for all the efforts of the developers, if a good webpage could walk 
> though going from nothing to building and testing a plugin, that would be 
> really helpful.
> 
> @Override
> public String getHelp() {
> return "Ensure that the output from the CodeWarrior build 
> tools is in the expected format. If there are warnings present, but they are 
> not found, then it is likely that the format is incorrect. The mwccarm 
> compiler and mwldarm linker tools may support a configurable message style. 
> This can be used to enforce the expected output format, which may be 
> different from Metrowerks CodeWarrior (and thus require a different tool). 
> For example the following could be appended to the build flags:"
> + "-msgstyle gcc -nowraplines";
> }
> 

Thank!

Committed as 
https://github.com/jenkinsci/warnings-ng-plugin/commit/2d3c402fc477fea0b0e95ea5ba0ecc3e633fb8e9

> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/580f12cb-1ded-4ea8-8b90-fec5f27cbc1c%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/55A5F975-1CBC-4A29-AD47-506F4132A07D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


how to enable only required view when logged through different user not admin

2019-03-07 Thread Archana Srichandan
Hi All,
I want teams only to view there projects rather than all the projects(as in
admin case),but i am able to view "All view " when i login with a different
user giving the details of all the listed jobs.
can i get a suggestion?
Regards,
Archana Srichandan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send 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%2BU8sbVtGn7qHr3J8tt%2BniZXjn9gxgJqOV4cUwq%3D17r4D14QDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Warnings Next Generation Plugin with CodeWarrior

2019-03-07 Thread Gavin Nottage
I started to work on adding the help text as suggested, but have got very 
confused. I'm an embedded C programmer and while Java is mostly 
understandable, I haven't found a suitable guide for contributing to 
existing plugins. I have some experience with git, but Maven is all new to 
me. Whatever I try to do I get errors that mean nothing to me like:

mvn hpi:run
[INFO] Scanning for projects...
[WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:2.7 is 
missing, no dependency information available
[WARNING] Failed to build parent project for 
io.jenkins.plugins:warnings-ng:hpi:4.0.0-SNAPSHOT

I think I know the code change to make, but cannot build or test it. The 
addition I think is needed is as below, and I've attached the complete 
file. If this is good then it can be added...

Thanks for all the efforts of the developers, if a good webpage could walk 
though going from nothing to building and testing a plugin, that would be 
really helpful.

@Override
public String getHelp() {
return "Ensure that the output from the CodeWarrior build 
tools is in the expected format. If there are warnings present, but they 
are not found, then it is likely that the format is incorrect. The mwccarm 
compiler and mwldarm linker tools may support a configurable message style. 
This can be used to enforce the expected output format, which may be 
different from Metrowerks CodeWarrior (and thus require a different tool). 
For example the following could be appended to the build flags:"
+ "-msgstyle gcc -nowraplines";
}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/580f12cb-1ded-4ea8-8b90-fec5f27cbc1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
package io.jenkins.plugins.analysis.warnings;

import java.util.Collection;

import edu.hm.hafner.analysis.IssueParser;
import edu.hm.hafner.analysis.parser.MetrowerksCwCompilerParser;
import edu.hm.hafner.analysis.parser.MetrowerksCwLinkerParser;
import edu.umd.cs.findbugs.annotations.NonNull;

import org.kohsuke.stapler.DataBoundConstructor;
import org.jenkinsci.Symbol;
import hudson.Extension;

import io.jenkins.plugins.analysis.core.model.ReportScanningToolSuite;

/**
 * Provides a parser and customized messages for the Metrowerks CodeWarrior compiler and linker.
 *
 * @author Aykut Yilmaz
 */
public class MetrowerksCodeWarrior extends ReportScanningToolSuite {
private static final long serialVersionUID = 4315389958099766339L;
static final String ID = "metrowerks";

/** Creates a new instance of {@link MetrowerksCodeWarrior}. */
@DataBoundConstructor
public MetrowerksCodeWarrior() {
super();
// empty constructor required for stapler
}

@Override
protected Collection getParsers() {
return asList(new MetrowerksCwCompilerParser(), new MetrowerksCwLinkerParser());
}

/** Descriptor for this static analysis tool. */
@Symbol("metrowerksCodeWarrior")
@Extension
public static class Descriptor extends ReportScanningToolDescriptor {
/** Creates the descriptor instance. */
public Descriptor() {
super(ID);
}

   	@Override
public String getHelp() {
return "Ensure that the output from the CodeWarrior build tools is in the expected format. If there are warnings present, but they are not found, then it is likely that the format is incorrect. The mwccarm compiler and mwldarm linker tools may support a configurable message style. This can be used to enforce the expected output format, which may be different from Metrowerks CodeWarrior (and thus require a different tool). For example the following could be appended to the build flags:"
+ "-msgstyle gcc -nowraplines";
}

@NonNull
@Override
public String getDisplayName() {
return Messages.Warnings_MetrowerksCodeWarrior_ParserName();
}
}
}



Re: admin password issuee

2019-03-07 Thread P Peterse
Then Theresia are no credentials in Jenkins anymore. You have time setup
the credentials again.

Op do 7 mrt. 2019 06:15 schreef Archana Srichandan <
archana.srichan...@4tigo.com>:

> have tried the same after that when how do i login to UI and what should
> be my login credeantial??
>
> Regards,
> Archana Srichandan
>
>
> On Thu, Mar 7, 2019 at 10:37 AM RAJENDRA PRASAD <
> rajendra.penuma...@gmail.com> wrote:
>
>> GO to Jenkins home directory
>> Open config.xml file
>> Search for following line
>> true> Change as follows
>> false> Save it
>> Restart Jenkins
>>
>>
>> On Thu, 7 Mar, 2019, 10:29 Archana Srichandan, <
>> archana.srichan...@4tigo.com> wrote:
>>
>>> Hi All,
>>>
>>> I am unable to login with admin password it shows username password
>>> incorrect ,how can i reset admin password and view my same old builds and
>>> pipeline project
>>> Regards,
>>> Archana Srichandan
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> 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%2BU8sbVxGhpho27jwuzs_cDNj7LW3kgR-e%3DMBkBAnjUVYzcuSg%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02TWHsSSo3KUfPUtdNUX88qKG8rA%3DwKucyg%2BYAiWYG9org%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CA%2BU8sbWzEiMbgixZVzn5rE9hwTckGuObnZfEe_bg3cG4QsN_sw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAJquGhSbQEFXg%2BBbVg7P1y1Y%3DJ48JB4Zkfdmv-dJKbNZRykycQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Different values for Run Parameter collapse in the same job execution

2019-03-07 Thread Joan Tomàs-Buliart
Hi,

we are using Run Parameter in some of our jobs and we are migrating them to 
declarative pipeline. We have noticed that, when we trigger the job with 
different run parameter, all the jobs on the queue are collapsed to just 
one. I assume that Jenkins, in order to decide if 2 jobs could be collapsed 
in just 1 run, it compares the parameters object $params. The problem is 
that for Run Parameters, $params.RUN_PARAM_NAME is null and this is why it 
is not considered. Just to give a little bit off context:

- we are using Jenkins 2.94
- the test jenkins file is this:

> pipeline {
> agent { node { label 'docker' } }
> parameters {
> run description: 'test', filter: 'STABLE', name: 'TEST_PARAMETER', 
> projectName: 'UpstreamJob'
> }
> stages {
> stage('Docker build and start') {
> steps {
> sh "env"
> sh 'sleep 5'
> sh "echo ${params.TEST_PARAMETER}"
> }
> }
> }
> options {
> disableConcurrentBuilds()
> }
> }
>

Mainly, 2 main questions appears:
- it is something that it is not well configured or it is a bug?
- Any workaround to manage it?

Many thanks in advance,

Joan

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


Re: One Jenkins, Multiple Kubernetes Clusters

2019-03-07 Thread Carlos Sanchez
are you creating pod templates in UI or in pipeline?

in UI is just a matter of assigning different labels to different pod
templates in different clouds
in pipeline you can pass an argument "cloud" to podTemplate

On Wed, Mar 6, 2019 at 8:23 PM Steve Garrett 
wrote:

> Hi,
>
> I'm trying to use multiple kubernetes clouds and have just a single
> jenkins I was able to get both kubernetes clusters registered as clouds and
> all the login checks work. When I run a build to the cluster where
> Jenkins is, i
> t works fine, pulls code, builds an image and all that. However, when I
> change the label to my second cluster, that doesn't have any Jenkins there
> it seems to never want to build there and always builds on the cluster
> that's local to Jenkins.
>
> I'm missing something stupid I'm sure of it but don't see what it is.
>
>
> Thanks for your help
>
>
> Steve
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/51ef6954-78a9-44cf-a4f0-0848fb0f5547%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/CALHFn6OXYBB0NXC%2BPZ3%2B7q-SnBxOpCausC0UNC2_JkRvdd7%2B9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Able to view builds and configuration without being login as any specific user or admin

2019-03-07 Thread Archana Srichandan
 Hi All,

i am able to login as admin ,i can also see the jobs and builds without
being login with any user.
Is it possible in jenkins??
Regards,
Archana Srichandan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send 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%2BU8sbWy%2BChtfAy1%2BkiStBr8sHwBQ09HY8MhfkjghuU8uRn5Hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.