Public | Automated Build

Last pushed: 2 days ago
Short Description
Jenkins
Full Description

docker build --force-rm --no-cache --tag=dtulyakov/jenkins:latest . \
  && docker create --restart=always \
     --network=host \
     --name=Jenkins \
     --env=TRY_UPGRADE_IF_NO_MARKER=true \
     -v $(readlink -f /var/run/docker.sock):$(readlink -f /var/run/docker.sock) \
     -v $(which docker):$(which docker) \
     -v jenkins_home:/var/jenkins_home \
     dtulyakov/jenkins \
  && docker start Jenkins

Выдрать установленные плагины

JENKINS_HOST=username:password@jenkinshost:port
curl -sSL "http://$JENKINS_HOST/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins" | perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)()(<\/\w+>)+/\1 \2\n/g'|sed 's/ /:/'

Ещё полезные плагины:

  • ansible
  • blueocean
  • xunit
  • parameterized-trigger
  • simple-theme-plugin
Docker Pull Command
Owner
dtulyakov
Source Repository