Coder Social home page Coder Social logo

jenext's Introduction

jenext

GitHub license LinkedIn

jenext is a python module to upload files to nextcloud(file server) from local system, it's used with jenkins.

I'm planning to create a jenkins plugin from this python module in order to push artifacts, logs and result to nextcloud which is really helpful.

NextCloud

Offers an on-premise Universal File Access and sync platform with powerful collaboration capabilities and desktop, mobile and web interfaces.

What is jenext?

This is difficult to push artifacts, results, logs,... to nextcloud without writing any code from jenkins pipeline so, I wrote a python module to do that for you in a simple way by just set some variables and call a python file.

Get started

With just 2 steps:

1- set these environments on your system or in your pipeline:

# Path to your file which like to upload on Nextcloud
export ARTIFACT_FILE_PATH="/var/jenkins_home/workspace/SAMPLE_PROJECT/target/SIMPLE.jar"

# Destination path on nextcloud (Both "PROJECT_ARTIFACTS" and "SAMPLE" directory should exist on Nextcloud)
export ARTIFACT_NEXTCLOUD_PATH="/PROJECT_ARTIFACTS/SAMPLE"

# Nextcloud url
export NEXTCLOUD_URL="http://NEXTCLOUD_SAMPLE.DOMAIN"

# Nextcloud User
export PUSH_NEXTCLOUD_USER="admin"

# Nextcloud password
export PUSH_NEXTCLOUD_PASS="qazwsx"

2- Execute python:

python jenext.py

Usage

Just create an isolate environment(optional) and install requirements then Run the code:

python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt

# set variables as explained before.

python jenext.py

Mission:

  • Create a Nextcloud plugin for Jenkins.

How to contribute?

You are able to develop any idea related to it. Copyright 2022 Hossein Yousefi [email protected]

jenext's People

Contributors

hosein-yousefii avatar

Stargazers

 avatar

Watchers

 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.