Skip to content

Tag discovery #6

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

Merged
merged 4 commits into from
Feb 17, 2020
Merged

Tag discovery #6

merged 4 commits into from
Feb 17, 2020

Conversation

stephenc
Copy link
Member

Blocked pending go-gitea/gitea#2738 being implemented

@zopanix
Copy link

zopanix commented Mar 8, 2019

@stephenc: There is now an api to fetch the list of refs, like the tags that could be used to implement this

@stephenc
Copy link
Member Author

stephenc commented Mar 8, 2019

@zopanix I was told that I needed to wait for Gitea 1.8.x before this can be unblocked

@stephenc
Copy link
Member Author

stephenc commented Mar 8, 2019

@lafriks said:

Tag list is now implemented using refs API, still missing getting tags details

Tag details are required for implementing this feature.

Currently looking like it will be in 1.9.0 🤞

@stephenc stephenc removed the blocked label Jun 6, 2019
@sharpSteff
Copy link

looking forward to this!
1.9.0 includes the blocked issue!!!
https://github.com/go-gitea/gitea/releases/tag/v1.9.0
merged with go-gitea/gitea#7138

@finkr
Copy link

finkr commented Jan 3, 2020

I have implemented a workound in my Jenkinsfile to publish releases (docker push..) for tagged versions only:

pipeline {
    agent any

    stages {
        stage('Build') {
            steps {
                git credentialsId: '1234-1234-1234', url: 'https://gitea/foo/bar'
                script {
                    env.tag = sh(returnStdout: true, script: "git fetch --tags && git tag --points-at $GIT_COMMIT").trim()
                }
				echo "Building..."
            }
        }
        stage('Publish') {

            when {
                expression {
                    return ("${env.tag}" != "")
                }
            }
            steps {
                echo 'Publshing...'
            }
        }
    }
}

@lafriks
Copy link
Contributor

lafriks commented Jan 16, 2020

@stephenc any plans to work on this?

@stephenc
Copy link
Member Author

yes... but finding the time is trickier... I am hoping to find an excuse to try and push it over the line in the next couple of weeks

@lafriks
Copy link
Contributor

lafriks commented Jan 18, 2020

Thanks, that would be great :)

@stephenc stephenc changed the title [WIP] Tag discovery Tag discovery Feb 17, 2020
@stephenc stephenc merged commit 12c1609 into jenkinsci:master Feb 17, 2020
@stephenc stephenc deleted the tag-discovery branch February 17, 2020 11:59
justusbunsi referenced this pull request in justusbunsi/gitea-plugin Jul 3, 2021
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants