Instantly share code, notes, and snippets.

Embed
What would you like to do?
List Jenkins Plugins
# PowerShell Core 6.0.2
$cred = Get-Credential
$data = Invoke-RestMethod http://jenkinsserver/pluginManager/api/xml?depth=1 -Credential $cred -AllowUnencryptedAuthentication -Authentication Basic
$data.localPluginManager.plugin
active : true
bundled : false
deleted : false
dependency :
downgradable : false
enabled : true
hasUpdate : false
longName : Pipeline: SCM Step
pinned : false
requiredCoreVersion : 2.60
shortName : workflow-scm-step
supportsDynamicLoad : MAYBE
url : https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+SCM+Step+Plugin
version : 2.6
active : true
bundled : false
deleted : false
dependency : {, }
downgradable : false
enabled : true
hasUpdate : true
longName : Pipeline: Step API
pinned : false
requiredCoreVersion : 1.642.3
shortName : workflow-step-api
supportsDynamicLoad : YES
url : https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Step+API+Plugin
version : 2.13
active : true
bundled : false
deleted : false
dependency : {, , , }
downgradable : false
enabled : true
hasUpdate : true
longName : Pipeline: Supporting APIs
pinned : false
requiredCoreVersion : 2.60.2
shortName : workflow-support
supportsDynamicLoad : MAYBE
url : https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Supporting+APIs+Plugin
version : 2.15
..........
# To specifically get what's needed for plugins.txt
$data.localPluginManager.plugin | Select-Object -ExpandProperty ShortName
ace-editor
ant
antisamy-markup-formatter
apache-httpcomponents-client-4-api
authentication-tokens
bouncycastle-api
branch-api
build-pipeline-plugin
cloudbees-folder
conditional-buildstep
config-file-provider
credentials-binding
credentials
.......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment