This file contains hidden or 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
| //The global script scope | |
| def ctx = context(scope: scriptScope()) | |
| //What things can be on the script scope | |
| contributor(ctx) { | |
| method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
| property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
| property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') | |
| property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder') | |
| property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar') |
This file contains hidden or 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
| #include <iostream> | |
| #include <string> | |
| #include <cstdio> | |
| #include <curl/curl.h> | |
| // James Glenn <thedonkdonk@gmail.com> | |
| // 2018-03-30 | |
| static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) { | |
| ((std::string*)userp)->append((char*)contents, size * nmemb); |
This file contains hidden or 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
| # | Source : http://sed.sourceforge.net/sed1line.txt | |
| # | ------------------------------------------------------------------------- | |
| # | USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
| # | Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
| # | | |
| # | Latest version of this file (in English) is usually at: | |
| # | http://sed.sourceforge.net/sed1line.txt | |
| # | http://www.pement.org/sed/sed1line.txt | |
| # | | |
| # | This file will also available in other languages: |
This file contains hidden or 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
| // cypress/support/hooks.js | |
| // Cypress does not support listening to the fetch method | |
| // Therefore, as a workaround we polyfill `fetch` with traditional XHR which | |
| // are supported. See: https://github.com/cypress-io/cypress/issues/687 | |
| enableFetchWorkaround() | |
| // private helpers | |
| function enableFetchWorkaround() { | |
| let polyfill |
This file contains hidden or 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 bash | |
| current_branch=$(git rev-parse --abbrev-ref HEAD) | |
| target_branch=$1 | |
| if [ -z "$target_branch" ] | |
| then | |
| target_branch=$current_branch | |
| fi | |
| response="DECIDE" |
OlderNewer