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
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
import com.cloudbees.plugins.credentials.impl.*; | |
import com.cloudbees.plugins.credentials.*; | |
import com.cloudbees.plugins.credentials.domains.*; | |
import org.jenkinsci.plugins.plaincredentials.* | |
import org.jenkinsci.plugins.plaincredentials.impl.* | |
import hudson.util.Secret |
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
module.exports = { | |
"title": "Nice website title", | |
"description": "My website description", | |
"rootUrl" : "https://website.net", | |
"disqusShortname" : "myDisqusShortname", | |
} |
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
<div id="disqus_thread"></div> | |
<script> | |
var disqus_config = function () { | |
this.page.url = "{{site.rootUrl}}{{ page.url }}"; // Replace PAGE_URL with your page's canonical URL variable | |
this.page.identifier = "{{ page.fileSlug }}"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable | |
}; | |
(function() { // DON'T EDIT BELOW THIS LINE | |
var d = document, s = d.createElement('script'); | |
s.src = 'https://{{ site.disqusShortname }}.disqus.com/embed.js'; |
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
<li class="list-inline-item pr-2"> | |
<a href="{{ defaultURL | url }}" class="white-text"><i class="fa fa-comments pr-1"></i> | |
{# little tricks to allow disqus count to work locally #} | |
<object><a href="{{ site.rootUrl + defaultURL | url }}#disqus_thread" class="white-text">0</a></object> | |
</a></li> | |
</li> |
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
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
import hudson.model.Result | |
import hudson.model.Run | |
import jenkins.model.CauseOfInterruption.UserInterruption | |
/* | |
Jenkins version: 2.150.2 | |
Github API version: v3 |
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
/* | |
This is used as part of a dynamic Jenkins pipeline configuration. | |
You can reference to this Gist for more details: | |
https://gist.github.com/JD10NN3/7796639e4d427d474c172d5e6b0fa49a | |
*/ | |
this.map = [ | |
/** | |
* Sandbox1 mapping | |
* |
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
/* | |
This is used as part of a dynamic Jenkins pipeline configuration. | |
You can reference to this Gist for more details: | |
https://gist.github.com/JD10NN3/7796639e4d427d474c172d5e6b0fa49a | |
*/ | |
// If you need some libraries, feel free to import them here. | |
// import groovy.json.JsonOutput | |
this.triggersMapping = [ |
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
/* | |
This is used as part of a dynamic Jenkins pipeline configuration. | |
You can reference to this Gist for more details: | |
https://gist.github.com/JD10NN3/7796639e4d427d474c172d5e6b0fa49a | |
*/ | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurperClassic | |
import javax.mail.Address | |
import javax.mail.Session |