Re: Jenkins Kuberenet Plugin

2020-10-07 Thread David Foley
Am I correct that pipelines are only supported and not Freestyle?
I created a Test Pipeline, and am able to see the ansible version when I
ran "sh 'ansible --version'"
so it appears the freestyle is using the JNLP container.


On Wed, 7 Oct 2020 at 21:24, David Foley  wrote:

> Hi Nigel
>
> I'm using FreeStyle Project.
> I have selected restricted to run on Node: Ansible
>
> On Wed, 7 Oct 2020 at 20:42, Nigel Armstrong <
> nigel.armstr...@braincorp.com> wrote:
>
>> David,
>>
>> It sounds like you might not be running the step inside the
>> right container. By default steps are runin the jnlp container. You need to
>> specify `container('container-name') {` for which container to run in. See
>> the documentation: https://plugins.jenkins.io/kubernetes/
>>
>> -Nigel
>>
>> On Wed, Oct 7, 2020 at 12:20 PM David Foley  wrote:
>>
>>> When jenkins deploys the pod jnlp container along with my ansible
>>> container is created within that Pod,
>>> My docker file is using Ubuntu should I be using the jenkins/jnlp image
>>> instead.
>>>
>>> If I keep the pod after the jobs fails and execute shell a d run which
>>> ansible is shows the path
>>>
>>> On Wed 7 Oct 2020, 19:41 nigel.a...@braincorp.com, <
>>> nigel.armstr...@braincorp.com> wrote:
>>>
 David,

 Looks like your issue isn't with the dockerfile, but with ansible. The
 failure is listed as `ansible: not found`. Make sure your executor has
 ansible and its in the path. Note the user and directory jenkins is running
 the command in.

 -Nigel
 On Wednesday, October 7, 2020 at 4:09:38 AM UTC-7 Arnaud wrote:

> Hi,
>
> Could I suggest you to install at least Python 3.6 and not 3.3?
>
> Arnaud
>
> Le mar. 6 oct. 2020 à 23:05, david...@mycit.ie  a
> écrit :
>
>> Hi All,
>>
>> Could do with some help with this one, I'm currently trying to use
>> Kubernetes to build containers for jobs that will run within Jenkins. I'm
>> currently having the issue where my Docker File  has Ansible installed 
>> but,
>> for some reason,it's not able to run if the Container is built with 
>> Jenkins
>>
>> FROM ubuntu:18.04
>>
>> RUN apt update -y && \
>>
>> apt install python3.3 python3-dev gcc libpng-dev g++ build-essential 
>> libssl-dev libffi-dev curl wget unzip nano -y
>>
>>
>> RUN apt install python3-pip libpython2.7-stdlib install python-pip -y && 
>> \
>> pip3 install wheel && \
>> pip3 install --upgrade setuptools
>>
>> RUN apt update && \
>> apt install software-properties-common -y && \
>> apt-add-repository --yes --update ppa:ansible/ansible && \
>> apt install ansible -y
>>
>> RUN apt update && \
>> apt install -y software-properties-common && \
>> rm -rf /var/lib/apt/lists/*
>>
>> RUN apt update && \
>> apt install git openssh-server -y && \
>>
>> sed -i 's|session required pam_loginuid.so|sessionoptional   
>>   pam_loginuid.so|g' /etc/pam.d/sshd && \
>> mkdir -p /var/run/sshd
>>
>> RUN apt install openjdk-8-jdk maven -y && \
>> adduser --quiet  && \
>> echo ":" | chpasswd && \
>> mkdir /home/jenkins/.m2
>>
>> RUN pip3 install --upgrade pyvmomi && \
>> pip install --upgrade pyvmomi
>>
>> RUN service ssh start
>> EXPOSE 22
>> CMD ["/usr/sbin/sshd", "-D"]
>>
>> Building remotely on ansible-wwtrw
>> 
>> (ansible) in workspace /home/jenkins/agent/workspace/test[Checks API] No
>> suitable checks publisher found. [test] $ /bin/sh -xe
>> /tmp/jenkins813336478250655019.sh + whoami root + ansible --version
>> /tmp/jenkins813336478250655019.sh: 3: /tmp/jenkins813336478250655019.sh:
>> ansible: not found Build step 'Execute shell' marked build as failure
>>
>> --
>> You received this message because you are 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/1bf82f20-6e80-4863-84b0-df86db9e4419n%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/1f2e4118-8f60-4f6f-9407-2ed626aa3656n%40googlegroups.com
 

Re: Jenkins Kuberenet Plugin

2020-10-07 Thread David Foley
Hi Nigel

I'm using FreeStyle Project.
I have selected restricted to run on Node: Ansible

On Wed, 7 Oct 2020 at 20:42, Nigel Armstrong 
wrote:

> David,
>
> It sounds like you might not be running the step inside the
> right container. By default steps are runin the jnlp container. You need to
> specify `container('container-name') {` for which container to run in. See
> the documentation: https://plugins.jenkins.io/kubernetes/
>
> -Nigel
>
> On Wed, Oct 7, 2020 at 12:20 PM David Foley  wrote:
>
>> When jenkins deploys the pod jnlp container along with my ansible
>> container is created within that Pod,
>> My docker file is using Ubuntu should I be using the jenkins/jnlp image
>> instead.
>>
>> If I keep the pod after the jobs fails and execute shell a d run which
>> ansible is shows the path
>>
>> On Wed 7 Oct 2020, 19:41 nigel.a...@braincorp.com, <
>> nigel.armstr...@braincorp.com> wrote:
>>
>>> David,
>>>
>>> Looks like your issue isn't with the dockerfile, but with ansible. The
>>> failure is listed as `ansible: not found`. Make sure your executor has
>>> ansible and its in the path. Note the user and directory jenkins is running
>>> the command in.
>>>
>>> -Nigel
>>> On Wednesday, October 7, 2020 at 4:09:38 AM UTC-7 Arnaud wrote:
>>>
 Hi,

 Could I suggest you to install at least Python 3.6 and not 3.3?

 Arnaud

 Le mar. 6 oct. 2020 à 23:05, david...@mycit.ie  a
 écrit :

> Hi All,
>
> Could do with some help with this one, I'm currently trying to use
> Kubernetes to build containers for jobs that will run within Jenkins. I'm
> currently having the issue where my Docker File  has Ansible installed 
> but,
> for some reason,it's not able to run if the Container is built with 
> Jenkins
>
> FROM ubuntu:18.04
>
> RUN apt update -y && \
>
> apt install python3.3 python3-dev gcc libpng-dev g++ build-essential 
> libssl-dev libffi-dev curl wget unzip nano -y
>
>
> RUN apt install python3-pip libpython2.7-stdlib install python-pip -y && \
> pip3 install wheel && \
> pip3 install --upgrade setuptools
>
> RUN apt update && \
> apt install software-properties-common -y && \
> apt-add-repository --yes --update ppa:ansible/ansible && \
> apt install ansible -y
>
> RUN apt update && \
> apt install -y software-properties-common && \
> rm -rf /var/lib/apt/lists/*
>
> RUN apt update && \
> apt install git openssh-server -y && \
>
> sed -i 's|session required pam_loginuid.so|sessionoptional
>  pam_loginuid.so|g' /etc/pam.d/sshd && \
> mkdir -p /var/run/sshd
>
> RUN apt install openjdk-8-jdk maven -y && \
> adduser --quiet  && \
> echo ":" | chpasswd && \
> mkdir /home/jenkins/.m2
>
> RUN pip3 install --upgrade pyvmomi && \
> pip install --upgrade pyvmomi
>
> RUN service ssh start
> EXPOSE 22
> CMD ["/usr/sbin/sshd", "-D"]
>
> Building remotely on ansible-wwtrw
> 
> (ansible) in workspace /home/jenkins/agent/workspace/test[Checks API] No
> suitable checks publisher found. [test] $ /bin/sh -xe
> /tmp/jenkins813336478250655019.sh + whoami root + ansible --version
> /tmp/jenkins813336478250655019.sh: 3: /tmp/jenkins813336478250655019.sh:
> ansible: not found Build step 'Execute shell' marked build as failure
>
> --
> You received this message because you are 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/1bf82f20-6e80-4863-84b0-df86db9e4419n%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/1f2e4118-8f60-4f6f-9407-2ed626aa3656n%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jenkinsci-users/FwKy_J2Afgo/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an e

Re: Jenkins Kuberenet Plugin

2020-10-07 Thread Nigel Armstrong
David,

It sounds like you might not be running the step inside the
right container. By default steps are runin the jnlp container. You need to
specify `container('container-name') {` for which container to run in. See
the documentation: https://plugins.jenkins.io/kubernetes/

-Nigel

On Wed, Oct 7, 2020 at 12:20 PM David Foley  wrote:

> When jenkins deploys the pod jnlp container along with my ansible
> container is created within that Pod,
> My docker file is using Ubuntu should I be using the jenkins/jnlp image
> instead.
>
> If I keep the pod after the jobs fails and execute shell a d run which
> ansible is shows the path
>
> On Wed 7 Oct 2020, 19:41 nigel.a...@braincorp.com, <
> nigel.armstr...@braincorp.com> wrote:
>
>> David,
>>
>> Looks like your issue isn't with the dockerfile, but with ansible. The
>> failure is listed as `ansible: not found`. Make sure your executor has
>> ansible and its in the path. Note the user and directory jenkins is running
>> the command in.
>>
>> -Nigel
>> On Wednesday, October 7, 2020 at 4:09:38 AM UTC-7 Arnaud wrote:
>>
>>> Hi,
>>>
>>> Could I suggest you to install at least Python 3.6 and not 3.3?
>>>
>>> Arnaud
>>>
>>> Le mar. 6 oct. 2020 à 23:05, david...@mycit.ie  a
>>> écrit :
>>>
 Hi All,

 Could do with some help with this one, I'm currently trying to use
 Kubernetes to build containers for jobs that will run within Jenkins. I'm
 currently having the issue where my Docker File  has Ansible installed but,
 for some reason,it's not able to run if the Container is built with Jenkins

 FROM ubuntu:18.04

 RUN apt update -y && \

 apt install python3.3 python3-dev gcc libpng-dev g++ build-essential 
 libssl-dev libffi-dev curl wget unzip nano -y


 RUN apt install python3-pip libpython2.7-stdlib install python-pip -y && \
 pip3 install wheel && \
 pip3 install --upgrade setuptools

 RUN apt update && \
 apt install software-properties-common -y && \
 apt-add-repository --yes --update ppa:ansible/ansible && \
 apt install ansible -y

 RUN apt update && \
 apt install -y software-properties-common && \
 rm -rf /var/lib/apt/lists/*

 RUN apt update && \
 apt install git openssh-server -y && \

 sed -i 's|session required pam_loginuid.so|sessionoptional 
 pam_loginuid.so|g' /etc/pam.d/sshd && \
 mkdir -p /var/run/sshd

 RUN apt install openjdk-8-jdk maven -y && \
 adduser --quiet  && \
 echo ":" | chpasswd && \
 mkdir /home/jenkins/.m2

 RUN pip3 install --upgrade pyvmomi && \
 pip install --upgrade pyvmomi

 RUN service ssh start
 EXPOSE 22
 CMD ["/usr/sbin/sshd", "-D"]

 Building remotely on ansible-wwtrw
 
 (ansible) in workspace /home/jenkins/agent/workspace/test[Checks API] No
 suitable checks publisher found. [test] $ /bin/sh -xe
 /tmp/jenkins813336478250655019.sh + whoami root + ansible --version
 /tmp/jenkins813336478250655019.sh: 3: /tmp/jenkins813336478250655019.sh:
 ansible: not found Build step 'Execute shell' marked build as failure

 --
 You received this message because you are 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/1bf82f20-6e80-4863-84b0-df86db9e4419n%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/1f2e4118-8f60-4f6f-9407-2ed626aa3656n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/FwKy_J2Afgo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAJUZ6v4UKN07WDBk19fsCHfGa26Rn90uMWNRwQ8axXTW9ycrvA%40mail.gmail.com
> 

How to get failed stage name during parallel run of stages?

2020-10-07 Thread Gajanan Mahajan
I've a pipeline where multiple stages run in parallel but if any of the 
stages fails, I want to get its name to show failed stage. With following 
code, even if it fails in first stage ie `Checking Redmine access`, it 
always show last stage as failed i.e. `Checking Reviewers list`. This is 
because it runs in parallel and latest assigned value is picked up.

pipeline {
agent {
label {
label ""
customWorkspace 
"workspace/RedmineAndReviewboardProject/SVNCheckoutTest"
}
}
stages {
stage('Verify inputs') {

parallel {
stage('Checking Redmine access') {
steps {
script {
FAILED_STAGE = env.STAGE_NAME
echo "Redmine"
sh'''hello'''
}
}
}
stage('Checking SVN access') {
steps {
script {
FAILED_STAGE = env.STAGE_NAME
echo "SVN"
}
}

}
stage('Checking Reviewers list') {
steps {
script {
FAILED_STAGE = env.STAGE_NAME
echo "Reviewer"
}
}
}

}

}
}
post {
failure {
script {
echo "Failed stage is " + FAILED_STAGE
}
}
}
}

Is there any way I can get exactly failed stage of parallel running stages? 
or it will be also ok with me if parent stage name is returned as failed 
stage.

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


Run jenkins jobs as different user or switch user during the execution

2020-10-07 Thread Amit Chettri
Hello,

I have a requirement where I need to switch user in between in the pipeline 
run
:
:
steps
  {
script
{
   
sh """
  sudo su - testuser
  whoami
"""
:
: 
:
}
 }

but during the pipeline run user is not switch and its still the jenkins 
user

+ sudo su - testuser

Last
 
login: Thu Oct 8 00:35:26 IST 2020 

+
 
whoami 


jenkins

*how can I run the job as a different user or switch user to testuser 
without making any change to **$ sudo vim /etc/sysconfig/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/f40da188-c4c2-4bf3-99a3-134ca4f65180n%40googlegroups.com.


Re: Jenkins Kuberenet Plugin

2020-10-07 Thread David Foley
When jenkins deploys the pod jnlp container along with my ansible container
is created within that Pod,
My docker file is using Ubuntu should I be using the jenkins/jnlp image
instead.

If I keep the pod after the jobs fails and execute shell a d run which
ansible is shows the path

On Wed 7 Oct 2020, 19:41 nigel.a...@braincorp.com, <
nigel.armstr...@braincorp.com> wrote:

> David,
>
> Looks like your issue isn't with the dockerfile, but with ansible. The
> failure is listed as `ansible: not found`. Make sure your executor has
> ansible and its in the path. Note the user and directory jenkins is running
> the command in.
>
> -Nigel
> On Wednesday, October 7, 2020 at 4:09:38 AM UTC-7 Arnaud wrote:
>
>> Hi,
>>
>> Could I suggest you to install at least Python 3.6 and not 3.3?
>>
>> Arnaud
>>
>> Le mar. 6 oct. 2020 à 23:05, david...@mycit.ie  a
>> écrit :
>>
>>> Hi All,
>>>
>>> Could do with some help with this one, I'm currently trying to use
>>> Kubernetes to build containers for jobs that will run within Jenkins. I'm
>>> currently having the issue where my Docker File  has Ansible installed but,
>>> for some reason,it's not able to run if the Container is built with Jenkins
>>>
>>> FROM ubuntu:18.04
>>>
>>> RUN apt update -y && \
>>>
>>> apt install python3.3 python3-dev gcc libpng-dev g++ build-essential 
>>> libssl-dev libffi-dev curl wget unzip nano -y
>>>
>>>
>>> RUN apt install python3-pip libpython2.7-stdlib install python-pip -y && \
>>> pip3 install wheel && \
>>> pip3 install --upgrade setuptools
>>>
>>> RUN apt update && \
>>> apt install software-properties-common -y && \
>>> apt-add-repository --yes --update ppa:ansible/ansible && \
>>> apt install ansible -y
>>>
>>> RUN apt update && \
>>> apt install -y software-properties-common && \
>>> rm -rf /var/lib/apt/lists/*
>>>
>>> RUN apt update && \
>>> apt install git openssh-server -y && \
>>>
>>> sed -i 's|session required pam_loginuid.so|sessionoptional 
>>> pam_loginuid.so|g' /etc/pam.d/sshd && \
>>> mkdir -p /var/run/sshd
>>>
>>> RUN apt install openjdk-8-jdk maven -y && \
>>> adduser --quiet  && \
>>> echo ":" | chpasswd && \
>>> mkdir /home/jenkins/.m2
>>>
>>> RUN pip3 install --upgrade pyvmomi && \
>>> pip install --upgrade pyvmomi
>>>
>>> RUN service ssh start
>>> EXPOSE 22
>>> CMD ["/usr/sbin/sshd", "-D"]
>>>
>>> Building remotely on ansible-wwtrw
>>> 
>>> (ansible) in workspace /home/jenkins/agent/workspace/test[Checks API] No
>>> suitable checks publisher found. [test] $ /bin/sh -xe
>>> /tmp/jenkins813336478250655019.sh + whoami root + ansible --version
>>> /tmp/jenkins813336478250655019.sh: 3: /tmp/jenkins813336478250655019.sh:
>>> ansible: not found Build step 'Execute shell' marked build as failure
>>>
>>> --
>>> You received this message because you are 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/1bf82f20-6e80-4863-84b0-df86db9e4419n%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/1f2e4118-8f60-4f6f-9407-2ed626aa3656n%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/CAJUZ6v4UKN07WDBk19fsCHfGa26Rn90uMWNRwQ8axXTW9ycrvA%40mail.gmail.com.


Re: Jenkins Kuberenet Plugin

2020-10-07 Thread nigel.a...@braincorp.com
David,

Looks like your issue isn't with the dockerfile, but with ansible. The 
failure is listed as `ansible: not found`. Make sure your executor has 
ansible and its in the path. Note the user and directory jenkins is running 
the command in.

-Nigel
On Wednesday, October 7, 2020 at 4:09:38 AM UTC-7 Arnaud wrote:

> Hi,
>
> Could I suggest you to install at least Python 3.6 and not 3.3?
>
> Arnaud
>
> Le mar. 6 oct. 2020 à 23:05, david...@mycit.ie  a 
> écrit :
>
>> Hi All,
>>
>> Could do with some help with this one, I'm currently trying to use 
>> Kubernetes to build containers for jobs that will run within Jenkins. I'm 
>> currently having the issue where my Docker File  has Ansible installed but, 
>> for some reason,it's not able to run if the Container is built with Jenkins 
>>
>> FROM ubuntu:18.04
>>
>> RUN apt update -y && \
>>
>> apt install python3.3 python3-dev gcc libpng-dev g++ build-essential 
>> libssl-dev libffi-dev curl wget unzip nano -y
>>
>> RUN apt install python3-pip libpython2.7-stdlib install python-pip -y && \
>> pip3 install wheel && \
>> pip3 install --upgrade setuptools
>>
>> RUN apt update && \
>> apt install software-properties-common -y && \
>> apt-add-repository --yes --update ppa:ansible/ansible && \
>> apt install ansible -y 
>>
>> RUN apt update && \
>> apt install -y software-properties-common && \
>> rm -rf /var/lib/apt/lists/*
>>
>> RUN apt update && \
>> apt install git openssh-server -y && \
>>
>> sed -i 's|session required pam_loginuid.so|sessionoptional 
>> pam_loginuid.so|g' /etc/pam.d/sshd && \
>> mkdir -p /var/run/sshd
>>
>> RUN apt install openjdk-8-jdk maven -y && \
>> adduser --quiet  && \
>> echo ":" | chpasswd && \
>> mkdir /home/jenkins/.m2
>>
>> RUN pip3 install --upgrade pyvmomi && \
>> pip install --upgrade pyvmomi
>> 
>> RUN service ssh start
>> EXPOSE 22
>> CMD ["/usr/sbin/sshd", "-D"]
>>
>> Building remotely on ansible-wwtrw 
>>  
>> (ansible) in workspace /home/jenkins/agent/workspace/test[Checks API] No 
>> suitable checks publisher found. [test] $ /bin/sh -xe 
>> /tmp/jenkins813336478250655019.sh + whoami root + ansible --version 
>> /tmp/jenkins813336478250655019.sh: 3: /tmp/jenkins813336478250655019.sh: 
>> ansible: not found Build step 'Execute shell' marked build as failure  
>>
>> -- 
>> You received this message because you are 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/1bf82f20-6e80-4863-84b0-df86db9e4419n%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/1f2e4118-8f60-4f6f-9407-2ed626aa3656n%40googlegroups.com.


Re: Jenkins Kuberenet Plugin

2020-10-07 Thread Arnaud bourree
Hi,

Could I suggest you to install at least Python 3.6 and not 3.3?

Arnaud

Le mar. 6 oct. 2020 à 23:05, david...@mycit.ie  a
écrit :

> Hi All,
>
> Could do with some help with this one, I'm currently trying to use
> Kubernetes to build containers for jobs that will run within Jenkins. I'm
> currently having the issue where my Docker File  has Ansible installed but,
> for some reason,it's not able to run if the Container is built with Jenkins
>
> FROM ubuntu:18.04
>
> RUN apt update -y && \
>
> apt install python3.3 python3-dev gcc libpng-dev g++ build-essential 
> libssl-dev libffi-dev curl wget unzip nano -y
>
> RUN apt install python3-pip libpython2.7-stdlib install python-pip -y && \
> pip3 install wheel && \
> pip3 install --upgrade setuptools
>
> RUN apt update && \
> apt install software-properties-common -y && \
> apt-add-repository --yes --update ppa:ansible/ansible && \
> apt install ansible -y
>
> RUN apt update && \
> apt install -y software-properties-common && \
> rm -rf /var/lib/apt/lists/*
>
> RUN apt update && \
> apt install git openssh-server -y && \
>
> sed -i 's|session required pam_loginuid.so|sessionoptional 
> pam_loginuid.so|g' /etc/pam.d/sshd && \
> mkdir -p /var/run/sshd
>
> RUN apt install openjdk-8-jdk maven -y && \
> adduser --quiet  && \
> echo ":" | chpasswd && \
> mkdir /home/jenkins/.m2
>
> RUN pip3 install --upgrade pyvmomi && \
> pip install --upgrade pyvmomi
>
> RUN service ssh start
> EXPOSE 22
> CMD ["/usr/sbin/sshd", "-D"]
>
> Building remotely on ansible-wwtrw
> 
> (ansible) in workspace /home/jenkins/agent/workspace/test[Checks API] No
> suitable checks publisher found. [test] $ /bin/sh -xe
> /tmp/jenkins813336478250655019.sh + whoami root + ansible --version
> /tmp/jenkins813336478250655019.sh: 3: /tmp/jenkins813336478250655019.sh:
> ansible: not found Build step 'Execute shell' marked build as failure
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/1bf82f20-6e80-4863-84b0-df86db9e4419n%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/CAESUf_C%2BTq%3Dj6o-s0A%3DFA3UEgdvWhBa%2BKKQuT85J-07b%2BrL70g%40mail.gmail.com.


Re: Declarative Pipeline to trigger Job in Post-build actions if condition satisfies

2020-10-07 Thread Ven H
Yes. You can, but remember to put your if condition inside a script element.

Regards,
Venkatesh


On Wed, Oct 7, 2020 at 1:15 PM john levin  wrote:

> Hello Team,
>
> Shall we put a if condition in post build actions to trigger other jobs if
> condition matches.
>
> Say for example
>
> If date matches Wednesday, trigger the other job in post build actions.
>
> /John
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAGJXh7rapeQOcK_NuW1UYpre%3DM5kE%3DKaG0bX47LsTwBz_M_WNg%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/CAPp28erU4%2B9gwuD1PKzLQM_8OjJM_F9rACRCOYh2XowQv154tg%40mail.gmail.com.


Declarative Pipeline to trigger Job in Post-build actions if condition satisfies

2020-10-07 Thread john levin
Hello Team,

Shall we put a if condition in post build actions to trigger other jobs if
condition matches.

Say for example

If date matches Wednesday, trigger the other job in post build actions.

/John

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