Giter Site home page Giter Site logo

jenkinsci / aliyun-oss-uploader-plugin Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 19.0 137 KB

Aliyun/AliCloud OSS uploader

Home Page: https://plugins.jenkins.io/aliyun-oss-uploader/

License: MIT License

Java 84.31% HTML 15.69%
jenkins jenkins-plugin aliyun-oss

aliyun-oss-uploader-plugin's Introduction

jenkins阿里云OSS上传插件

使用

1.下载源码&编译

git clone https://github.com/jenkinsci/aliyun-oss-uploader-plugin.git
cd aliyun-oss-uploader-plugin
mvn package -DskipTests

2.在plugins管理页面上传target下的hpi文件并安装,重启jenkins

3.修改项目,增加构建后操作,选择阿里云OSS上传

4.填写阿里云OSS配置信息

本地路径为相对于workspace的路径,例如填写为/abc,则本地路径为${WORKSPACE}/abc 本地路径可以设置为文件或目录。如果设置为文件则上传单个文件,设置为目录上传整个目录

构建

  1. 修改${USER}/.m2/settings.xml中的maven配置文件

mirrors节点中增加

<mirror>
  <id>repo.jenkins-ci.org</id>
  <url>https://repo.jenkins-ci.org/public/</url>
  <mirrorOf>m.g.o-public</mirrorOf>
</mirror>

pluginGroups节点中增加

<pluginGroup>org.jenkins-ci.tools</pluginGroup>

profiles节点中增加

<profile>
  <id>jenkins</id>
  <activation>
    <activeByDefault>true</activeByDefault>
  </activation>
  <repositories>
    <repository>
      <id>repo.jenkins-ci.org</id>
      <url>https://repo.jenkins-ci.org/public/</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>repo.jenkins-ci.org</id>
      <url>https://repo.jenkins-ci.org/public/</url>
    </pluginRepository>
  </pluginRepositories>
</profile>
  1. 打包
mvn clean package -DskipTests
  1. 运行
mvn clean hpi:run

aliyun-oss-uploader-plugin's People

Contributors

raylax avatar seanchan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.