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
14
votes
3 answers

Working with jenkins credentials

I want to know how to Create the credentials that can be used by Jenkins and by jobs running in Jenkins to connect to 3rd party services.
RCBian
  • 1,080
  • 2
  • 20
  • 31
9
votes
3 answers

How can I create parameterized Jenkins job?

I want to use same job in different machine. But I don't want to change the configuration of the job each time. Can I pass the machine name label as parameter and run the job in different machine ? (Not simultaneously). I want to pass parameters…
Sreevalsa E
  • 905
  • 5
  • 17
  • 39
9
votes
3 answers

Disable all Jenkins jobs from a given Jenkins View / Tab

I have around 100-120 jobs in one of the view called "Gradle Deploys" that I created in Jenkins. How can I disable all the jobs from Jenkins only from a given View / tab. I tried the following groovy syntax to first just show all the jobs in a given…
AKS
  • 16,482
  • 43
  • 166
  • 258
7
votes
0 answers

How to import libraries into Groovy scriptler scripts?

I would like to import a 3rd party library that is not packaged with jenkins into a Scriptler script. What do I need to do to make the packages within the jar available to jenkins? Do I need to add the jar to the CLASSPATH - or some other way - so…
GuyMatz
  • 661
  • 6
  • 8
7
votes
2 answers

How do I get a list of jobs with longest build time in Jenkins

I need to generate a weekly report on our Jenkins build cluster. One of the reports is to display a list of jobs that have the longest build time. The solution I can come up with is to parse the "Build history" page on each slave (also master) and…
Jifeng Zhang
  • 5,037
  • 4
  • 30
  • 43
6
votes
1 answer

How to increase jenkins build number automatically?

How to increase jenkins build number automatically or by using shell script?? For now i am doing the same using configure option, and increasing manually. i want to do it automatically.
KP_JavaDev
  • 222
  • 2
  • 4
  • 11
6
votes
4 answers

Jenkins: identify trigger type

Is there a way I can identify the trigger for the current build during execution. What I want is to identify if the trigger was an SCM change, cron trigger or user trigger. I have multiple triggers defined for a job and want to use trigger type as a…
dOps
  • 730
  • 2
  • 7
  • 16
5
votes
2 answers

Replacement for Jenkins Scriptler plugin?

It looks like the Jenkins Scriptler plugin is no longer available, due to security reasons: https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin "Distribution of This Plugin Has Been Suspended" Is there a similar plugin that I could use to…
twasbrillig
  • 17,084
  • 9
  • 43
  • 67
5
votes
2 answers

how can I add git submodule into git repo as normal directory?

Let's see what it is Create two git repo sub & test mkdir test sub cd test && git init && touch README && git add README && git commit -m "initialize the git repo" && cd .. cd sub && git init && touch README && git add README && git commit -m…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
5
votes
4 answers

How can I get the project details which has triggered the specific job?

I am triggering a job (child job) in 'Server B' from a job (parent job) in 'Server A' through a python script. I have 2-3 parent jobs. So I want to know which parent job is triggered the child job. How can I know which parent job triggered child…
Sreevalsa E
  • 905
  • 5
  • 17
  • 39
5
votes
2 answers

Jenkins - Copy build log from master to a shared drive

Can someone direct me here? I have a simple job configured in Jenkins on a WINDOWS environment (master and all slaves running on windows) and the job is supposed to run on a particular slave. When you build the job, the build log ( log.log) gets…
5
votes
1 answer

create email list of all users

On occasion I need to email all Jenkins users, for example warning them Jenkins will be offline for maintenance. The script below gives me email addresses for all people that Jenkins knows about, but it includes people that don’t have accounts,…
Marc Tompkins
  • 73
  • 1
  • 7
5
votes
2 answers

How to use Extended Choice Parameter plugin for check box

Currently I am using Choice parameter to input the hostname in a drop-down like below. server1 server2 server3 I am include the selected value in property. Server=%Hostname% Also I am invoking the same in post build actions-->Email…
Arjun
  • 51
  • 1
  • 1
  • 2
5
votes
4 answers

Exception in GroovyHookScript while starting the Jenkins server

Facing issue with starting the Jenkins instance.. here is the log, I am using 1.542 (also tried with previous releases but no success) Anybody is facing this kind of issue? It looked very similar to https://issues.jenkins-ci.org/browse/JENKINS-20609…
Rishi
  • 5,869
  • 7
  • 34
  • 45
5
votes
1 answer

Jenkins: How can I populate parameters from database to parameterized job?

I need to pull values from database and show parameters as dropdown in Jenkins parameterized job. Is there any available plugin to achieve this? Help would be appreciated :)
Kiran
  • 20,167
  • 11
  • 67
  • 99
1
2 3 4 5 6