This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
/** | |
* Checks URL availability via curl | |
* @author thabet.amer@gmail.com | |
* @since Jenkins 2.204.1 | |
* @param String url | |
* @return String Zero if succeeded, error if not. | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
/** | |
* Returns an emoji from a pool based on the build status, can be used with Slack notifications | |
* @author thabet.amer@gmail.com | |
* @since Jenkins 2.204.1 | |
* @param String status default 'success' | |
* @return String emoji | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
/** | |
* Lists all enabled Jenkins jobs by name. | |
* @author thabet.amer@gmail.com | |
* @since Jenkins 2.204.1 | |
* @param Bool includeDisabled to include also disabled jobs, default false (No). | |
* @return String array of jenkins jobs names | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
/** | |
* Reads environment variables from a property file, and loads them into Jenkins ENV | |
* @author thabet.amer@gmail.com | |
* @since Jenkins 2.204.1 | |
* @param String path | |
* @return String array | |
* | |
* Example property file: |
NewerOlder