Managed Script Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID managed-scripts Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
1.2.1 (archives)
May 18, 2015
1.532
config-file-provider (version:2.0)
token-macro (version:1.6)
Source Code
Issue Tracking
Pull Requests
Maintainer(s)
GitHub
Open Issues
Pull Requests
Dominik Bartholdi (id: imod)
Usage Installations 2014-Jul 1210
2014-Aug 1240
2014-Sep 1332
2014-Oct 1373
2014-Nov 1375
2014-Dec 1421
2015-Jan 1517
2015-Feb 1570
2015-Mar 1697
2015-Apr 1777
2015-May 1808
2015-Jun 1889


Managed scripts are shell scripts which are managed centrally by an administrator and can be referenced as a build step within jobs.

Description

The scripts are managed by the Config File Provider Plugin, go to the "Manage Jenkins" screen and click on the "Managed files" item.

After installing the "Managed Scripts" plugin, you have a new option to create a managed script in the type list.

Now you get to the screen to create your script. You're able to give it a name and a small description. In addition, you have the option to define a list of arguments you want to inform the users about. These arguments will be shown to the user as a hint and within the script you're able to reference these as if you would pass in arguments on the command line ($1, $2,...). Every environment variable from within a build will be visible to the script, too. 

Within the job, a user is able to select the required script from a drop-down menu. The defined parameters are shown in respect to the selected script. The link enables the user to have a read-only look at the script.

Version History

1.2.1 (May 18, 2015)

  • add support for tokenizing of shell script arguments; allows decomposing the given value of each argument into multiple arguments by splitting via whitespace.

1.2 (May 11, 2015)

  • add support for PowerShell PR #5

1.1.2 (July 18, 2014)

  • integrate PR #4  set codemirror mode based on shebang line (thanks to domruf)
  • integrate PR #3 correct spelling mistake (thanks to stevehollaar)

1.1.1 (Dec. 12, 2013)

  • integrate pull #2: show script argument labels (thanks to Ann Campbell)

1.1 (May 19, 2013)

1.0.2 (March 10, 2013)

1.0.1 (Oct 11, 2012)

  • fix issue when Jenkins is running with a different root context - details of scripts could not be opened

1.0 (15. April 2012)

  • New Feature JENKINS-12365: Add support for managed .bat scripts for Windows

0.2.0 (20. Jan. 2012)

0.1.0 (31. Dec. 2011)

0.0.1 (10. Nov. 2011)

  • initial

Help and Support


For Help and support please use the Jenkins Users mailing list.
The comment list below is not monitored.

Labels

Edit
plugin-builder plugin-builder Delete
file-provider file-provider Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment