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
#!/bin/bash | |
# BUILD library which contains all modules of the package | |
echo "Build package.o from module1.c and module2.c" | |
gcc -c -o module1.o module1.c | |
gcc -c -o module2.o module2.c | |
ld -o package.o -r module1.o module2.o | |
symbols=(`nm package.o`) | |
for((i=0;i<${#symbols[*]};i=i+1)) do | |
if [ "${symbols[$i]}" != "T" ]; then continue; fi |
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
properties( | |
[ | |
pipelineTriggers([cron('*/2 * * * *')]) | |
], | |
[ | |
$class : 'ParametersDefinitionProperty', | |
strategy | |
] | |
) |
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
properties([ | |
[ | |
$class : 'jenkins.model.BuildDiscarderProperty', | |
strategy: [ | |
$class : 'LogRotator', | |
numToKeepStr: '200' | |
] | |
] | |
]) |
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
properties([ | |
[ | |
$class : 'GithubProjectProperty', | |
displayName : '', | |
projectUrlStr: "${GITHUB_PROJECT_URL}" | |
] | |
]) |
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
properties( | |
[ | |
pipelineTriggers([cron('*/2 * * * *')]) | |
] | |
) |
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
=====> https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitSCM.java#L161 | |
@DataBoundConstructor | |
public GitSCM( | |
List<UserRemoteConfig> userRemoteConfigs, | |
List<BranchSpec> branches, | |
Boolean doGenerateSubmoduleConfigurations, | |
Collection<SubmoduleConfig> submoduleCfg, | |
@CheckForNull GitRepositoryBrowser browser, | |
@CheckForNull String gitTool, |
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
// Change `url` value to your own | |
def inputParams=new URL('http://maven.com/sefs/sefs-scm.txt').text | |
// Change `message` value to the message you want to display | |
// Change `description` value to the description you want | |
def selectedProperty = input( id: 'userInput', message: 'Choose properties file', | |
parameters: [ [ | |
$class: 'ChoiceParameterDefinition', | |
choices: inputParams, | |
description: 'Properties', |
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
node { | |
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'mylogin', | |
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) { | |
sh ''' | |
set +x | |
curl -u $USERNAME:$PASSWORD https://private.server/ > output | |
''' | |
} | |
} |
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.JsonSlurperClassic | |
@NonCPS | |
def jsonParse(def json) { | |
new groovy.json.JsonSlurperClassic().parseText(json) | |
} | |
node('master') { | |
def config = jsonParse(readFile("config.json")) |
OlderNewer