Skip to content

This plugin allows you to configure a global groovy script with assistance of secure-script plugins, and at which condition the script will be executed.

License

Notifications You must be signed in to change notification settings

jgarciacloudbees/secure-post-script-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secure-post-script

Build Status Contributors Jenkins Plugin GitHub release Jenkins Plugin Installs

Introduction

This plugin allows you to configure a global groovy script with assistance of secure-script plugins, and at which condition the script will be executed. secure post script configuration

Variables could be used in groovy script

- All Jenkins Environment Variables are available(use `printenv` to print out).
- `out.println()` could be used to print out information on build log.

Getting started

sample code

out.println("Job: $JOB_NAME build number: $BUILD_NUMBER has been built on $NODE_NAME ")

Caution: All scripts have to be approved before it can be executed by this plugin. you could go to page https://jenkins-domain/scriptApproval to approve scripts. Otherwise, you'll see an error message: Failed to execute groovy script configured by 'secure post script' plugin. Script not yet approved for me.

Contributing

Refer to our contribution guidelines

LICENSE

Licensed under MIT, see LICENSE

About

This plugin allows you to configure a global groovy script with assistance of secure-script plugins, and at which condition the script will be executed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%