How to use Jenkins file parameter in Pipelines

2021-02-02 Thread shif...@gmail.com
My Jenkins pipeline runs on the Slave using agent { node { label 'slave_node1' } }. I use Jenkins file parameter named uploaded_file and upload a file called hello.pdf My pipeline contains the following code stage('Precheck') { steps { sh "echo ${WORKSPACE}" sh "echo ${uploaded_file}

Re: RBAC so that users can create projects but not touch other Projects?

2021-02-02 Thread Dom Dom
Did you see the video yet? they are so clear for your question Vào Th 4, 3 thg 2, 2021 vào lúc 08:38 Dom Dom đã viết: > I think you can follow up with the following video: > https://www.youtube.com/watch?v=v-AVR0UoB-c > > Vào lúc 05:31:42 UTC+7 ngày Thứ Tư, 3 tháng 2, 2021, rand...@gmail.com

Could not build image: pull access denied,We need to build image and base image from private registry

2021-02-02 Thread 幻灭
we need to build docker image from our private registry, so dockerfile need pull base image from registry, but docker-plugin don't support login? we config docker cloud use tcp://xxx.xxx.xxx.xxx:2376 to connect our docker。 === Dockerfile

Re: jenkins web page not launching when run from docker

2021-02-02 Thread Mark Waite
I think you've mistakenly mapped port 8080 on the Windows computer to port 5 in the running Docker container. I see that output if I open http://localhost:5 on a Docker container started by the Docker Desktop app on Windows 10 with port 5 mapped to 50. You need to map port 8080

Re: jenkins web page not launching when run from docker

2021-02-02 Thread Slide
What does your docker command look like? On Tue, Feb 2, 2021, 13:43 Anil <1dropafl...@gmail.com> wrote: > Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu > > I am learning Jenkins and was trying to run it in a docker image. > I started up Docker Desktop and clicked Run on jenkins:lts >

Re: RBAC so that users can create projects but not touch other Projects?

2021-02-02 Thread Dom Dom
I think you can follow up with the following video: https://www.youtube.com/watch?v=v-AVR0UoB-c Vào lúc 05:31:42 UTC+7 ngày Thứ Tư, 3 tháng 2, 2021, rand...@gmail.com đã viết: > Is this possible? I ultimately need a way for users to create a project > and have full rights to that and only that

Re: RBAC so that users can create projects but not touch other Projects?

2021-02-02 Thread Randy Rue
Is this possible? I ultimately need a way for users to create a project and have full rights to that and only that project... On Friday, January 29, 2021 at 11:08:18 AM UTC-8 Randy Rue wrote: > Hello All, > > I'm trying to set up Role Based Access Control so that users can create > a project

Re: Checkout failure on Windows

2021-02-02 Thread Mark Waite
Thanks for sharing an issue with 32 bit Java on Windows. I hadn't considered even asking if you were running 32 bit Java. I'd not heard of that problem before. I'm glad you found the solution. On Tue, Feb 2, 2021 at 3:19 PM Patrick Moran wrote: > Mark, > > I tried using the git command and

Re: Issue with master-agent communication over ssh

2021-02-02 Thread kuisathaverat
Weird, Could you share a screencapture of what you configurate? Also the whole exception those lines alone mean nothing. Know the version of Jenkins and the version of the SSH build agents plugins you use can help, the memory you have in your agents, if they are bare metal or cloud. In overall if

Re: Checkout failure on Windows

2021-02-02 Thread Patrick Moran
Mark, I tried using the git command and stopping my anti-virus as suggested but without success. I experimented some more and discovered an empty Jenkins workspace under the SysWOW64 directory. It looks like Jenkins was cloning the repo to the 64 bit directory but then calling the 'dir'

Re: Issue with master-agent communication over ssh

2021-02-02 Thread Jigar R
On Tuesday, February 2, 2021 at 12:20:19 PM UTC-5 kuisat...@gmail.com wrote: > >I have 2 different kind of jenkins agents. > >1. java web start > >2. ssh > >If the memory was issue then wouldn't it fail on both cases? > > Not necessarily, starting by the point that are different ways to >

jenkins web page not launching when run from docker

2021-02-02 Thread Anil
Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu I am learning Jenkins and was trying to run it in a docker image. I started up Docker Desktop and clicked Run on jenkins:lts However when I go to localhost:8080, this is what I see, and not the Jenkins web page. [image: Capture.PNG]

Re: Issue with master-agent communication over ssh

2021-02-02 Thread Ivan Fernandez Calvo
>I have 2 different kind of jenkins agents. >1. java web start >2. ssh >If the memory was issue then wouldn't it fail on both cases? Not necessarily, starting by the point that are different ways to establish the connection, the JNLP agents could not update the remoting jar file (depends on

RE: Environment variable - shell

2021-02-02 Thread Jérôme Godbout
Can you use withEnv([“GOOL =${params.GOOL”}]) { sh(…); } Jérôme Godbout Software / Firmware Lead C: (581) 777-0050 O: (418) 800-1073 ext.: 109 godbo...@amotus.ca [cid:image001.png@01D6F95A.14BD9530] dimonoff.com |

RE: Environment variable - shell

2021-02-02 Thread gmaxera
Hi, Jenkins does it for you if you use the “environment” block. https://www.jenkins.io/doc/book/pipeline/syntax/#environment There is an example that uses “sh” command to show how Jenkins automatically inject environment variable inside a shell. Cheers, Gianluca. From:

RE: Environment variable - shell

2021-02-02 Thread Ing. Jheison Rodriguez
Correct if I’m wrong guys, but I think you should skip the $ for \$   Jheison Rodriguez From: Elango ThiagarajanSent: Tuesday, February 2, 2021 10:58 AMTo: Jenkins UsersSubject: Environment variable - shell Hi folks, I am very new to Jenkins. Kindly help me through. I have few parameters declared

Environment variable - shell

2021-02-02 Thread Elango Thiagarajan
Hi folks, I am very new to Jenkins. Kindly help me through. I have few parameters declared in my pipeline script and i need to pass that to environment variables. i tried like below sh """ export GOOL=${params.GOOL} but while execution is throwing bad substitution exception. Any

RE: Needed suggestions for Jenkins Master/Slave architecture

2021-02-02 Thread Jérôme Godbout
Hi, there isn’T much constraint except the setup when moving from master only to master/slave. Only SSH to be setup and here you go. As for the disk space, the workspace is not automatically clean, you might want to clean the working directory before you end your pipeline (after gathering all

Re: unable to resolve class org.boon.Boon

2021-02-02 Thread Yannick Lacaute
resolved : Boon is not compatible with java 11, that is why this dependency has been removed from tag 0.80. So, instead of using Boon we can use JsonSlurper to create a valid json object jsonEditorOptions (injected later in JS) Le lundi 1 février 2021 à 21:28:52 UTC+1, Yannick Lacaute a écrit

Needed suggestions for Jenkins Master/Slave architecture

2021-02-02 Thread banthita limwilai
Hello Folks! I'm about to set up New Jenkins cluster with Master/Slave model. Actually, we already have Jenkins master-only running but it's usually faces run out of memory issue. I've read all the recommended on the official, however there are some details missing there. *1. Please suggest for