Re: Scripting in Jenkins

2017-10-17 Thread dandeliondodgeball
Or maybe move what you have in the file, into Jenkinsfile? Making use of "script" feature. (Hopefully I am not misunderstanding the script feature.) pipeline { agent any stages { stage ('...') { steps { script { ...

Re: Not clear how to set up Windows node, and where to get "secret" from

2017-10-17 Thread dandeliondodgeball
> Enable the JNLP agent port on the security configuration form. That did it. This blog has nice screen shots of that. Thanks. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this

Re: Not clear how to set up Windows node, and where to get "secret" from

2017-10-17 Thread dandeliondodgeball
I think one reason I keep getting off track, is that I don't get the second bullet "Run from Agent command line", as shown in your screen shot. All I get is the "Launch" button and I keep trying to make that work. With no luck so far. AWS linux for Jenkins master AWS Windows server

Re: can i use variable to specify the agent label in my declarative pipeline ?

2017-10-17 Thread dandeliondodgeball
I think it is here: https://stackoverflow.com/questions/46630168/in-a-declarative-jenkins-pipeline-can-i-set-the-agent-label-dynamically -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

Jenkins wiki login/create account issues appear to have been fixed

2017-10-16 Thread dandeliondodgeball
Thanks. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: Not clear how to set up Windows node, and where to get "secret" from

2017-10-16 Thread dandeliondodgeball
> I think that the answer to your problem is to use the steps I listed rather than the steps that you listed. Fair. Let me back up. > 4. Downloaded the slave.jar from that web page Can you give more detail on this step? Or is this the “Launch agent” button action? -- You received

Re: How to setup Jenkins slave in jenkins 2.73.2 version?

2017-10-16 Thread dandeliondodgeball
https://www.jenkins.io/user-handbook.pdf -- 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

Re: How to setup Jenkins slave in jenkins 2.73.2 version?

2017-10-16 Thread dandeliondodgeball
(down vote) -- 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

Re: Not clear how to set up Windows node, and where to get "secret" from

2017-10-16 Thread dandeliondodgeball
I was wrong, about not being able to reply to the last post. So let me continue. 1. Jenkins master on aws linux 2. Manually copied slave.jar to aws windows server 2012 3. Added a node through the Jenkins master web pages 1. Host set to public ip of aws windows server 2012

Re: Not clear how to set up Windows node, and where to get "secret" from

2017-10-16 Thread dandeliondodgeball
Not able to reply to the last post in this thread. Tried different browsers, so don't think it is me. Problem looks aws windows server 2012 specific, so starting a new thread. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe

Re: Not clear how to set up Windows node, and where to get "secret" from

2017-10-13 Thread dandeliondodgeball
Is it the contents of this file? /var/lib/jenkins/secret.key? -- 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

Re: Not clear how to set up Windows node, and where to get "secret" from

2017-10-13 Thread dandeliondodgeball
I am running Jenkins master on AWS linux, and am trying to set up a node on AWS windows. -- 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

Not clear how to set up Windows node, and where to get "secret" from

2017-10-13 Thread dandeliondodgeball
I just keep going around in circles, with all the old and out of date information I am finding on the web. It is recommended to not try and use the Java Web Start and Launch button. (I tried that and it doesn't work.) But when I try and use the "java -jar slave.jar -jnlpUrl ... " solution I

Re: The first line of the Jenkinsfile should be "!#/usr/bin/env groovy", is that correct?

2017-10-11 Thread dandeliondodgeball
My life is full of typos, so yes #! /usr/bin/env groovy Oh, it is only to make my IDE life a better place. I understand now. Thanks. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

The first line of the Jenkinsfile should be "!#/usr/bin/env groovy", is that correct?

2017-10-11 Thread dandeliondodgeball
I just noticed this comment in the Jenkins User Handbook [https://jenkins.io/user-handbook.pdf]. -- 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

Re: unable to reset password

2017-10-11 Thread dandeliondodgeball
Ya, no contact information on the web page. Not clear that I would want to come here to complain about this. Thanks. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Can't sign up at accounts.jenkins.io

2017-10-11 Thread dandeliondodgeball
Ok, but, I ran into the same issue when creating a new account. So I don't think this is purely a password reset issue. Thanks. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from

Re: try/catch in a pipeline?

2017-10-10 Thread dandeliondodgeball
On this page https://jenkins.io/doc/book/pipeline/jenkinsfile/#syntax there is a Handling Failures section which might help you. -- 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

Re: Is there a way of cloning the repo an additional layer down?

2017-10-06 Thread dandeliondodgeball
Did this two different ways in the same workspace. ../workspace/Pipeline01/Artifact/my.zip ../workspace/Pipeline01/clonedRepo/ One for the artifact I needed. For this I used an attribute in the CopyArtifact plugin, like this (declarative pipeline): stages { stage('Copy Archive') {

Re: Trying to use CopyArtifact in declarative pipeline

2017-10-06 Thread dandeliondodgeball
Took me a while to find this, so posting it to make it easier to find. CopyArtifact syntax (ok, maybe syntax isn't the correct word for this, but you get the idea) step ([$class: 'CopyArtifact', projectName: "${jobname}", filter: "dist/${platform}/${targets}", selector: [

Re: Trying to use CopyArtifact in declarative pipeline

2017-10-05 Thread dandeliondodgeball
Ok, finally got it. This worked. script { step ([$class: 'CopyArtifact', projectName: 'Create_Infrastructure_archive']); } -- 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,

Re: “Copy artifacts from another project” and Jenkinsfiles are exclusive, correct?

2017-10-05 Thread dandeliondodgeball
Moved this to new post https://groups.google.com/forum/#!topic/jenkinsci-users/OU8Kzl6CJXk -- 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

Trying to use CopyArtifact in declarative pipeline

2017-10-05 Thread dandeliondodgeball
Original post: https://groups.google.com/forum/#!topic/jenkinsci-users/n1oqnnW1A98 So this worked (scripted) node { step ([$class: 'CopyArtifact', projectName: 'Create_Infrastructure_archive']); This doesn't break, but nothing happens (declarative). pipeline { agent any

Re: Is there any difference between "shell" and "sh"?

2017-10-04 Thread dandeliondodgeball
Sorry, meant "script" and "sh". -- 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

Re: Is there any difference between "shell" and "sh"?

2017-10-04 Thread dandeliondodgeball
Sorry, as I sort of have an online conversation with myself. I guess "shell" isn't the same as running something from the command line. pipeline { agent any stages { stage('ViewArchive') { steps { // Works sh 'unzip -l

Is there any difference between "shell" and "sh"?

2017-10-04 Thread dandeliondodgeball
Is one preferred / better? -- 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

Re: Stages which are not Build, Test, or Deploy

2017-10-04 Thread dandeliondodgeball
Tested again, and wasn't able to recreate the issue. Seeing stages with other names in Jenkins now. Thanks. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: “Copy artifacts from another project” and Jenkinsfiles are exclusive, correct?

2017-10-04 Thread dandeliondodgeball
So this worked (scripted) node { step ([$class: 'CopyArtifact', projectName: 'Create_Infrastructure_archive']); This doesn't break, but nothing happens (declarative). pipeline { agent any stages { stage('Build') { steps { script {

Re: “Copy artifacts from another project” and Jenkinsfiles are exclusive, correct?

2017-10-04 Thread dandeliondodgeball
Helpful, thanks. So there is only a scripted pipeline solution, no support for declarative, correct? -- 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

“Copy artifacts from another project” and Jenkinsfiles are exclusive, correct?

2017-10-03 Thread dandeliondodgeball
I discovered the Copy Artifact plugin and was all happy when it worked for me. But when I went back to my configuration which makes use of a Jenkinsfile that option wasn’t available. There is no Build section in the configuration. The first one is a “freestyle” configuration and the

Stages which are not Build, Test, or Deploy

2017-10-03 Thread dandeliondodgeball
I see lots of examples which use stage names which are not Build, Test, or Deploy. "Pre-Build" being one example. I tried doing this, but there are not represented in the Jenkins build window. And I missing something? Can I use other stage names and have them show up in Jenkins?

Re: Github Organization Plugin - Multiple Jenkins File

2017-10-02 Thread dandeliondodgeball
I think the most common solution is to have one Jenkinsfile (per branch), and manage everything from that. -- 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

Re: Github Organization Plugin - Multiple Jenkins File

2017-10-02 Thread dandeliondodgeball
I think you can have a "build" variable (https://jenkins.io/doc/pipeline/tour/environment/), or parameter (below), and use the value assigned to that. Using parameters in a Jenkinsfile. When this runs you will get an interactive window. pipeline { agent any parameters {

Is there a way of cloning the repo an additional layer down?

2017-10-02 Thread dandeliondodgeball
Default: ../workspace/Pipeline01/ Desired: ../workspace/Pipeline01/repo01code/ Why do I want to do this? The scripts to build the code, can't live at the same level as the code. I can have the scripts live some place other then the Pipeline01 workspace, but then Jenkins doesn't "know" about

Re: Why do some pipelines not let me view Workspace?

2017-10-02 Thread dandeliondodgeball
I doing this manually, no Jenkinsfiles are involved. -- 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

Why do some pipelines not let me view Workspace?

2017-09-29 Thread dandeliondodgeball
Pipeline 1 just runs a script, and has the "Workspace" icon. Pipeline 2 runs a Jenkinsfile and doesn't have the "Workspace" icon. What I mean by "Workspace" icon.

Re: Trying to use the shared library feature, unsuccessfully.

2017-09-29 Thread dandeliondodgeball
Maybe I am not understanding shared libraries. I have another repo, in which there are python scripts I need to call to be able to build the repo for which I have the pipeline created. So I make pipeline A for repo B, but I need to call scripts in repo C to build. It looked like shared

Trying to use the shared library feature, unsuccessfully.

2017-09-28 Thread dandeliondodgeball
ERROR: Library XYZ expected to contain at least one of src or vars directories org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed I created a new repo, and a "src" directory. And added "Wipe out repo and force clone",

The IRC just told me "permanent agent" is the new name for "dumb slave", so you don't need to post my question from 10 mins ago.

2017-09-24 Thread dandeliondodgeball
Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

Not able to find choice to create “dumb slaves”.

2017-09-24 Thread dandeliondodgeball
Using AWS Linux with Jenkins 2.79 When I attempt to create a node I only have the choice of “permanent agent”. Watching this video [ https://www.youtube.com/watch?v=zEQUuo5nWbo] it shows creating “dumb slaves”. Are there steps left out? Plugins which I wouldn’t have by default? Or maybe