Questions tagged [jenkins-scriptler]

The Jenkins Scriptler Plugin allows you to store/edit groovy scripts and execute it on any of the slaves/nodes of a Jenkins instance.

The Jenkins Scriptler Plugin allows you to store/edit groovy scripts and execute it on any of the slaves/nodes of a instance.

88 questions
0
votes
1 answer

Jenkins Dynamic Parameter Plug-in

Anyone know of a replacement for the Dynamic Parameter Plug-in? I want to execute existing scriptlers. Appears that Dynamic Parameter Plug-in was removed from Jenkins plug-in site. Suggestions for other plugin that would work?
MikeC
  • 37
  • 6
0
votes
1 answer

Jenkins shell dont interpret $ variables

I am trying to deploy a nodejs app inside docker container on a prod machine using jenkins. I have this shell : ssh -tt vagrant@10.2.3.129<./Dockerfile FROM node:8 WORKDIR /usr/src/app COPY package*.json…
maroodb
  • 1,026
  • 2
  • 16
  • 28
0
votes
0 answers

Jenkins: Get build parameter from groovy script

I have a job with a text parameter called LOCAL_IP then I'm using Extensible choice parameter plugin to insert a Groovy Script, I'm trying to get the LOCAL_IP parameter with no success, anyone knows what I'm doing wrong? here is my code: import…
0
votes
1 answer

Jenkins - running a working Scriptler script in a job results in NPE

I wrote a simple Scriptler script which enables all jobs in a certain view. When I execute the script in the Scriplter view, it succeeds. However, when I run it as part of a job (Build, Scriptler script) it fails with a NPE. I understand that it…
NatanC
  • 71
  • 1
  • 5
0
votes
1 answer

Setting Up Email Notifications for Jenkins Stages: Pipeline Script

I am looking to send out an email on failure and/or list of all of the stages and their status. I have wrapped my code in a try{} and am catching any failures. On my Console output it says that the email was sent to the appropriate email but I am…
Lgalan90
  • 595
  • 2
  • 12
  • 31
0
votes
1 answer

Jenkins parameterized job that reuses old build with same parameters

Background: We have a number of Jenkins top-level jobs that uses (and shares) other jobs as sort-of subroutines. To control the overall flow we use the Jenkins Parameterized Trigger Plugin. The top-level jobs then gather test reports, build reports…
fsteff
  • 543
  • 5
  • 19
0
votes
1 answer

Jenkins Dynamic Parameter Plugin Inject Build Variable

I would like to pre-populate Jenkins Parameter with a Build Variable using the Dynamic Parameter Plug-In. I added a Groovy script under the Scriptler section of Jenkins: return $JOB_NAME JOB_NAME is Jenkins Environment Variable obtained from:…
0
votes
1 answer

Retrieve Build Environment info from Jenkins Scriptler with Groovy script

Is there any workaround that I can retrieve the Build Environment settings for every job in a groovy script ? For example I installed the 'Scriptler plugin' and the 'EnvInject plugin' and I want to find out for every job that I have if "manage…
0
votes
1 answer

How to pass string parameters in jenkins bat scripts

My jenkins projects has a parameterized build. I am trying to pass a String parameter to a bat script as ***.ps1 -param1=$param1.
0
votes
0 answers

Conditional Display of Jenkins Parameters

I am creating a jenkins job that builds multiple modules , m1,m2,m3. each one of these modules requires different parameters . for example m1 requires p1,p2,p3 and m2 requires p4,p5,p6 and m3 requires p7,p8,p9. What I want to a achieve is : I want…
0
votes
1 answer

how to get specific parameters value from 2-3 days old builds of jenkins using groovy?

I want to retrieve old build number, version number and some other variables from build of some maven project. That build happened 2-3 days before. I tried following groovy script to retrieve variables. import hudson.model.* for(item in…
0
votes
2 answers

Java not recognized when running a shell script from Jenkins

I am trying to run/invoke a java program on a Jenkins slave using Jenkins. I am getting the error Javac is not recognized. But when i invoke the same program from the jenkins slave host directly, the java program perfectly works fine. I tried…
chanukhya bachina
  • 171
  • 1
  • 3
  • 16
0
votes
0 answers

Is there a way to perform jenkins maven release build from command line

Apologies, if this is a stupid idea. I would like to check if there is a way to perform maven release build from command line. I would like to check if there is a way, even if, maven release is not meant to perform that way. I have verified…
Srini
  • 3,334
  • 6
  • 29
  • 64
0
votes
2 answers

Jenkins- How do i run a batch command on Master in a job that runs on a slave

I'm trying to a run a simple windows batch command (say copy) on Master inside a job that's set to run on a particular slave. What i'm trying to accomplish with this is that copy the build log that gets saved on a master to a shared drive that's…
0
votes
1 answer

Failed to install MStest plugin : Jenkins

I try to install the MSTest for showing the results from .trx file. As I install through Download Now and Install after Restart, My Jenkins is taking so long time to restart so I tried with Install without restart. It shows the following…
Sreevalsa E
  • 905
  • 5
  • 17
  • 39