|
Playground zur Jobs DSL
|
# Build Trigger - Zeitgesteuert
TZ=Europe/Berlin
@midnight
# Pipeline - Definition Pipelinscript
node {
stage("mypocketmod"){
try {
build 'mypocketmod/master'
} catch (err) {
echo "Caught: ${err}"
}
try {
build 'rades-annotations'
} catch (err) {
echo "Caught: ${err}"
}
try {
build 'localmod'
} catch (err) {
echo "Caught: ${err}"
}
}
}
**Simple Job**
Buildstatus URL: jenkinsurl/job/jobName/lastBuild/api/json
Beispiel: http://stachel:8090/job/rades-annotations/lastBuild/api/json
**Multibranch Pipeline Plugin**
Buildstatus URL: jenkinsurl/job/repoName/job/BranchName/lastBuild/api/json
Beispiel: http://stachel:8090/job/mypocketmod/job/master/lastBuild/api/json
Im Response sind die wichtigen Felder:
* response.fullDisplayName
* response.result
{
"_class": "hudson.model.FreeStyleBuild",
"actions": [
{
"_class": "hudson.model.CauseAction",
"causes": [
{
"_class": "hudson.model.Cause$UpstreamCause",
"shortDescription": "Gestartet durch vorgelagertes Projekt „NighlyTrigger“, Build 6",
"upstreamBuild": 6,
"upstreamProject": "NighlyTrigger",
"upstreamUrl": "job/NighlyTrigger/"
}
]
},
{},
{
"_class": "hudson.plugins.git.util.BuildData",
"buildsByBranchName": {
"refs/remotes/origin/master": {
"_class": "hudson.plugins.git.util.Build",
"buildNumber": 6,
"buildResult": null,
"marked": {
"SHA1": "d68e6e7cbc7155a549e480e7354a6e64493382fa",
"branch": [
{
"SHA1": "d68e6e7cbc7155a549e480e7354a6e64493382fa",
"name": "refs/remotes/origin/master"
}
]
},
"revision": {
"SHA1": "d68e6e7cbc7155a549e480e7354a6e64493382fa",
"branch": [
{
"SHA1": "d68e6e7cbc7155a549e480e7354a6e64493382fa",
"name": "refs/remotes/origin/master"
}
]
}
}
},
"lastBuiltRevision": {
"SHA1": "d68e6e7cbc7155a549e480e7354a6e64493382fa",
"branch": [
{
"SHA1": "d68e6e7cbc7155a549e480e7354a6e64493382fa",
"name": "refs/remotes/origin/master"
}
]
},
"remoteUrls": [
"https://github.com/FunThomas424242/rades-annotations.git"
],
"scmName": ""
},
{
"_class": "hudson.plugins.git.GitTagAction"
},
{},
{},
{}
],
"artifacts": [],
"building": false,
"description": null,
"displayName": "#6",
"duration": 28582,
"estimatedDuration": 47475,
"executor": null,
"fullDisplayName": "rades-annotations #6",
"id": "6",
"keepLog": false,
"number": 6,
"queueId": 39,
"result": "SUCCESS",
"timestamp": 1568557708973,
"url": "http://stachel:8090/job/rades-annotations/6/",
"builtOn": "",
"changeSet": {
"_class": "hudson.plugins.git.GitChangeSetList",
"items": [],
"kind": "git"
},
"culprits": []
}
|
Chrome Extension
|
Nur auf Jobebene bei aktiver Authentifizierung
|
|
|
Natives Binary
|
Multi Jenkins Support mit Tray aber die Liste öffnet im extra Fenster
|
|
|
========
|
======
|
======
|
|
HudsonTracker
|
Unterstützt die Jenkins Authorisierung nicht
|
|
|
Natives Binary
|
Benötigt Download
|
pipeline { agent any triggers { cron('H /4 * 1-5') } stages { stage('Example') { steps { echo 'Hello World' } } }}``No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.