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
1
vote
1 answer

jenkins remoting callable on slave using groovy

I was trying the remoting code to communicate with a jenkins node via the groovy shell. Here is the bare code which I ran: import java.io.IOException; import java.lang.String; import hudson.remoting.*; import java.io.Serializable; …
Sparsh Gupta
  • 51
  • 11
1
vote
1 answer

jenkins cli with checkout Subversion using groovy script

Is there a way to check out any Subversion project using Jenkins-Cli by executing a groovy script on the master? I can get to the point of creating SVN client manager[org.tmatesoft.svn.core.wc.SVNClientManager], but can't really understand how to…
1
vote
2 answers

Cannot invoke method getNodeName() on null object

I am executing simple groovy script using scriptler jenkins plugin. import hudson.model.Computer import hudson.model.Node println Computer.currentComputer().getNodeName() If I execute this on master or any slave, giving me…
rohitkadam19
  • 1,734
  • 5
  • 21
  • 39
1
vote
1 answer

Running groovy script on slave nodes

How do we configure running groovy scripts on slave nodes? am able to get groovy installation from manage jenkins section, but the scripts fail to run. I am having a job with execute groovy steps and this job is supposed to run on "slave" nodes. The…
user3066515
  • 107
  • 1
  • 10
1
vote
2 answers

inhouse build tool to Jenkins

I am working on to migrate inhouse written java based build tools to Jenkins. The inhouse build tools has more than 1000 jobs for various products and their respective release and each job has 10+ steps and each step has some lines of code to…
1
vote
3 answers

Disabling a jenkins job for x number of hours

I am looking to disable a jenkins job for some amount of time like 4 hours from now. For eg I want to disable a job for 4 hours starting from 11 am, could you please let me know whether it is possible?
Hari
  • 237
  • 1
  • 10
  • 23
1
vote
2 answers

Is it possible to get Jenkins password in build job

I am not sure if this was already asked/ discussed before. In my Jenkins, I have setup LDAP authentication and that password is required in one of my jobs to remotely login to a different server using that password and execute some tasks there…
1
vote
1 answer

jenkins hide certain build parameters from general users

I have a project based security enabled for my jobs. And based on user being admin / non-admin would like to show / hide certain build parameters. Can anyone suggest an approach to tackle this requirements or are there any plugins for…
user2669295
  • 13
  • 1
  • 5
1
vote
2 answers

Jenkins Job Views with different Job names

I have a requirement in Jenkins wherein, We have, for example, 10 jobs in view ABC with specific configuration. Now, I need to create a new view in Jenkins XYZ and clone all the jobs in ABC with different name and change the configuration, for…
Jninja
  • 149
  • 1
  • 3
  • 13
1
vote
3 answers

How can I edit the content of .properties file?

I am using Jenkins server with perforce. My build get stored in a local repo path in ".zip" format which contains all the file including (say) abc.properties. This file contains data: #Thu Jun 09 12:13:14 MSD…
vicky
  • 29
  • 1
  • 3
  • 9
0
votes
0 answers

Jenkins - scriptler scripts require admin approval, how to auto-approve scripts?

I have scripts in Scriptler plugin that require approval from administrator. I'm running Jenkins in K8S and I'm adding scripts into /var/jenkins_home/scriptler/scripts. How do I auto approve new scripts or disable the request to approve? Things I…
EilonA
  • 361
  • 5
  • 17
0
votes
1 answer

I have Job A and B in Jenkins. How can I always execute a file in the most recent build of A in the build steps in job B

I have these Jenkins jobs A and B. Job A Builds a bunch of Files for my project. In Job B i wanna execute a command to run a file in the most recent build of job A. My execution even works fine, but only because I have hard coded the build number…
0
votes
0 answers

Configure job-dsl using scriptler

I'm going to write a freestyle job using job-dsl. job should build the scriptler script. I have experience writing a similar job for a pipeline. I don't know what it should look like for a job building scripter script . pipelineJob('test') { …
0
votes
1 answer

How to execute scriptler script in jenkins remotely / via REST API?

In Jenkins, I would like to execute my scriptler script via REST API from bash and curl. According to documentation it should work, but there isn't any working example. I have created simple script testScr, which is just one liner: println "OK". I'm…
LiborStefek
  • 400
  • 4
  • 16
0
votes
1 answer

How to comment Jenkins scheduled build scripts

I have Jenkins schedule scripts to trigger commands on certain days of the week. H 6 * * 1 MY_CMD1 H 6 * * 2 MY_CMD2 H 6 * * 3 MY_CMD3 H 6 * * 4 MY_CMD4 this will trigger the respective command on a respective day at 6 AM. I want to skip H 6 * * 3…
A.Shenoy
  • 328
  • 2
  • 8