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

Maintenance before integrating with Jenkins plugin center #1

Merged
merged 4 commits into from
Apr 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml,
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
1 change: 0 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc
_extends: .github
tag-template: dagshub-branch-source-$NEXT_MINOR_VERSION
36 changes: 0 additions & 36 deletions .github/workflows/build-and-upload-artifact.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: cd
on:
workflow_dispatch:
check_run:
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Verify CI status
uses: jenkins-infra/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Drafter
uses: release-drafter/[email protected]
with:
name: next
tag: next
version: next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check out
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Release
uses: jenkins-infra/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/release-drafter.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.0-beta-7</version>
<version>1.2</version>
</extension>
</extensions>
1 change: 1 addition & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
buildPlugin(configurations: buildPlugin.recommendedConfigurations())
buildPlugin()
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![Discord](https://img.shields.io/discord/698874030052212737)](https://discord.com/invite/9gU36Y6)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![CI](https://github.com/dagshub/dagshub-branch-source-plugin/actions/workflows/build-and-upload-artifact.yml/badge.svg)](https://github.com/DAGsHub/dagshub-branch-source-plugin/actions/workflows/build-and-upload-artifact.yml)
[![CI](https://img.shields.io/github/checks-status/jenkinsci/dagshub-branch-source-plugin/master)](https://ci.jenkins.io/job/Plugins/job/dagshub-branch-source-plugin/)
<a href="https://twitter.com/TheRealDAGsHub" title="DAGsHub on Twitter"><img src="https://img.shields.io/twitter/follow/TheRealDAGsHub.svg?style=social"></a>

# DAGsHub Branch Source Jenkins Plugin
Expand All @@ -18,17 +18,10 @@ or pull request in your repo, if they have an existing
[Jenkinsfile](jenkins.io/doc/book/pipeline/jenkinsfile/).

## Installation
As of now, this plugin is not yet listed in the official Jenkins plugin repository (we're working on it!).

So, to install it right now, you can:
1. Go to the [latest release](https://github.com/dagshub/dagshub-branch-source-plugin/releases).
1. Download the `dagshub-branch-source.hpi` file from the release assets.
1. Go to your Jenkins' advanced plugin management screen:
https://your-jenkins-instance/pluginManager/advanced
1. Choose the "Upload Plugin" option, upload the hpi file.
Install from Jenkins Update Center. Go to Jenkins > Configure > Manage Plugins > Available and search for DAGsHub branch source plugin then select Install.

## Release notes
[See the Github releases](https://github.com/dagshub/dagshub-branch-source-plugin/releases) for release notes.
[See the Github releases](https://github.com/jenkinsci/dagshub-branch-source-plugin/releases) for release notes.

---

Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
</parent>
<groupId>io.jenkins.plugins</groupId>
<artifactId>dagshub-branch-source</artifactId>
<version>0.1</version>
<version>${changelist}</version>
<packaging>hpi</packaging>
<properties>
<revision>0.1</revision>
<changelist>-SNAPSHOT</changelist>
<changelist>9999-SNAPSHOT</changelist>
<jenkins.version>2.176.4</jenkins.version>
<java.level>8</java.level>
<jersey.version>2.33</jersey.version>
Expand Down