Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KnowHow] Jenkins工作流打包 #48

Open
unknowIfGuestInDream opened this issue May 19, 2024 · 5 comments
Open

[KnowHow] Jenkins工作流打包 #48

unknowIfGuestInDream opened this issue May 19, 2024 · 5 comments
Assignees

Comments

@unknowIfGuestInDream
Copy link
Owner

Describe the knowHow

https://wiki.eclipse.org/Tycho/Packaging_Types

@unknowIfGuestInDream unknowIfGuestInDream self-assigned this May 19, 2024
@unknowIfGuestInDream
Copy link
Owner Author

unknowIfGuestInDream commented May 22, 2024

https://www.cnblogs.com/hibou/p/7763927.html

在你写了一个Eclipse插件之后,也许你就会想如何把它变成一个P2的项目或者是一个Java App让大家可以安装到自己的Eclipse上,dangdangdang~~ 这是你就可以利用maven-tycho插件构建你的RCP应用了。 下面是Step by step的教程: Eclipse Tych

@unknowIfGuestInDream
Copy link
Owner Author

unknowIfGuestInDream commented May 23, 2024

https://blog.csdn.net/qq_57581439/article/details/126281020
https://zhuanlan.zhihu.com/p/583812704

知乎专栏
一、什么是流水线jenkins 有 2 种流水线分为声明式流水线与脚本化流水线,脚本化流水线是 jenkins 旧版本使用的流水线脚本,新版本 Jenkins 推荐使用声明式流水线。文档只介绍声明流水线。 1.1 声明式流水线在声明…

@unknowIfGuestInDream
Copy link
Owner Author

<project 
  xmlns="http://maven.apache.org/POM/4.0.0" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.xxx.releng</groupId>
    <artifactId>xxx-releng</artifactId>
    <version>8.3.0-SNAPSHOT</version>
  </parent>
  <groupId>com.xxx.releng</groupId>
  <artifactId>com.xxx.rcp</artifactId>
  <version>2.2.0-SNAPSHOT</version>
  <packaging>eclipse-repository</packaging>
  <repositories>
    <repository>
      <id>${id.prefix.p2deps}_justj</id>
      <url>${xxx-justj-p2-repo.url}</url>
      <layout>p2</layout>
    </repository>
    <repository>
      <id>babel</id>
      <url>${eclipse-babel-p2-repo.url}</url>
      <layout>p2</layout>
    </repository>
  </repositories>
  <build>
    <finalName>com.xxx.rcp</finalName>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-packaging-plugin</artifactId>
        <configuration>
          <format>'${buildId}'</format>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <configuration>
          <resolver>p2</resolver>
          <pomDependencies>consider</pomDependencies>
          <environments>
            <environment>
              <os>win32</os>
              <ws>win32</ws>
              <arch>x86_64</arch>
            </environment>
          </environments>
          <!--Needed for JustJ-->
          <executionEnvironment>none</executionEnvironment>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-repository-plugin</artifactId>
        <configuration>
          <includeAllDependencies>true</includeAllDependencies>
          <compress>true</compress>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.6</version>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <configuration>
              <outputDirectory>${project.build.directory}</outputDirectory>
              <overwrite>true</overwrite>
              <resources>
                <resource>
                  <directory>${basedir}</directory>
                  <includes>
                    <include>build_info.properties</include>
                  </includes>
                  <filtering>true</filtering>
                </resource>
              </resources>
            </configuration>
            <goals>
              <goal>copy-resources</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-director-plugin</artifactId>
        <executions>
          <execution>
            <id>create-distributions</id>
            <goals>
              <goal>materialize-products</goal>
              <goal>archive-products</goal>
            </goals>
            <configuration>
              <products>
                <product>
                  <id>comxxx.product</id>
                  <rootFolder>eclipse</rootFolder>
                </product>
              </products>
              <formats>
                <win32>zip</win32>
                <linux>tar.gz</linux>
                <macosx>tar.gz</macosx>
              </formats>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant