Giter VIP home page Giter VIP logo

Comments (10)

scaytrase avatar scaytrase commented on August 14, 2024

I'm not really sure how it should behave in terms of generating links, etc.

from stashnotifier-plugin.

westarne avatar westarne commented on August 14, 2024

I'd expect the plugin to link like before. I'm not sure how the links are generated right now, but all of those entries should generally link to the same build. If possible it could link to the exact build step (which is possible as far as i know for the Blue Ocean Pipeline UI).

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

If you don't care about links you can do this kind of setup by yourself by manipulating project key and description while performing notification. different project key will result in different build records

from stashnotifier-plugin.

westarne avatar westarne commented on August 14, 2024

Thank you for the advice. I think this will work as a workaround. But in the long term i would look forward to a direct parameter without the need to change build parameters back and forth.

Edit: Actually only the displayName can be overwritten. So it is not possible to fully customize the build name this way.

from stashnotifier-plugin.

westarne avatar westarne commented on August 14, 2024

Also it is not possible to overwrite currentBuild.result multiple times:

        currentBuild.result = 'SUCCESS'
        echo currentBuild.result
        currentBuild.result = 'NOT_BUILD'
        echo currentBuild.result
        currentBuild.result = 'SUCCESS'
        echo currentBuild.result
        currentBuild.result = 'NOT_BUILD'
        echo currentBuild.result
        currentBuild.result = 'FAILURE'
        echo currentBuild.result
        currentBuild.result = 'UNSTABLE'
        echo currentBuild.result
        currentBuild.result = 'FAILURE'
        echo currentBuild.result

will produce:

[Pipeline] echo
SUCCESS
[Pipeline] echo
FAILURE
[Pipeline] echo
FAILURE
[Pipeline] echo
FAILURE
[Pipeline] echo
FAILURE
[Pipeline] echo
FAILURE
[Pipeline] echo
FAILURE

This is part of the #209 issue.

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

@geralvin @westarne I would appreciate a PR for (buildName+buildKey) and\or buildState management with a BC keep. Why not if it solves user problems

from stashnotifier-plugin.

geralvin avatar geralvin commented on August 14, 2024

what is BC ?

Anyway I'll try make some changes.

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

Backward compatibility

from stashnotifier-plugin.

westarne avatar westarne commented on August 14, 2024

I've added a merge request #243

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

Fixed in #243

from stashnotifier-plugin.

Related Issues (20)

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.