Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Juseppe

 Juseppe

Jenkins Update Site Embedded for Pluigin Publishing Easily

Avatar for Merkushev Kirill

Merkushev Kirill

May 27, 2016
Tweet

More Decks by Merkushev Kirill

Other Decks in Technology

Transcript

  1. $ docker run --name juseppe \ -v /your/plugins/dir/:/juseppe/plugins/ \ -e

    JUSEPPE_BASE_URI=http://my.company.com \ -p 80:8080 lanwen/juseppe Как получить? Как получить? 13
  2. $ docker run --name juseppe \ -v /your/plugins/dir/:/juseppe/plugins/ \ -e

    JUSEPPE_BASE_URI=http://my.company.com \ -p 80:8080 lanwen/juseppe Папка с HPI/JPI Как получить? 14
  3. $ docker run --name juseppe \ -v /your/plugins/dir/:/juseppe/plugins/ \ -e

    JUSEPPE_BASE_URI=http://my.company.com \ -p 80:8080 lanwen/juseppe Базовый URL Как получить? 15
  4. Апдейты в один клик! Как получить? 19 INFO: Obtained the

    latest update center data file for UpdateSource juseppe 2016-05-21 16:11:08 INFO RequestLog:60 - 172.17.42.1 - - [1463847068536] "GET /update-center.json?id=juseppe&version=1.642.1 HTTP/1.1" 200 7418
  5. <build> <!-- ... --> <extensions> <!-- Enabling the use of

    SSH --> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh-external</artifactId> </extension> </extensions> </build> Autodeploy Как получить? 24
  6. <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>wagon-maven-plugin</artifactId> <!—- . . . —> <goal>upload-single</goal> <!—-

    . . . —> <configuration> <fromFile>${project.build.directory}/${finalName}.hpi</fromFile> <url>scpexe://${plugin-repo}</url> </configuration> </plugin> Autodeploy Как получить? 25
  7. Как сделан? 27 HPI/JPI JAR META-INF/MANIFEST.MF Что такое HPI/JPI new

    JarFile(file).getManifest().getMainAttributes() "Plugin-Dependencies" "Hudson-Version" . . .
  8. Как сделан? 28 JUSEPPE CORE Внутри Juseppe Signer CLI Parser

    Beans File Watcher Embeded Jetty Default Servlet
  9. Ключ + Сертификат openssl genrsa -out uc.key 2048 \ &&

    openssl req -nodes -x509 -new \ -key uc.key \ -out uc.crt \ -days 1056 \ -subj "/C=EN/ST=Update-Center/L=Juseppe/O=Juseppe" Как сделан? 29
  10. Что еще? 34 Ограничения Не рекурсивно Нестабильные + стабильные в

    куче Не умеет мавен репозиторий Нет тулов и ядер Нет рекомендаций по плагинам*