GithubHelp home page GithubHelp logo

Comments (4)

jira-importer avatar jira-importer commented on June 27, 2024

bap:

I can think of a couple of ways to achieve this with the current version of the plugin

The first is to install the promoted-builds plugin
During the build, "Archive the artifacts" that you want to FTP
Create a promotion that has an action that performs the FTP
You can then easily switch between manual promotion or automatically promoting (the build can promote itself!)
This also has the advantage that any given build can be promoted (FTP'd) at any given time (eg rollback - if #34 has been sent, but is bad, #32 could easily be sent back accross by re-executing the promotion)

The other way is to use the new parameterized publishing feature
Set a parameter name in the Advanced options of the publisher, and make the build parameterized with a parameter of the same name
You can use a String parameter or choice to select between the two options below
.* will publish to all FTP servers
.+ will publish to all FTP servers that have a label (as you have not given any labels, this would mean that none would publish)
Set the default parameter value for builds that are started automatically

A skip option also feels like it should be a lot more generic than just adding to every plugin - they are all configured in the same manner, and they all loose their configs if disabled and the config saved.

Would either of the above (especially the promoted-builds solution) be acceptable?

from publish-over-ftp-plugin.

jira-importer avatar jira-importer commented on June 27, 2024

jacob_robertson:

Put yourself in my situation: I have two hundred jobs, each with an associated release job. I would like development teams to maintain their own jobs, but my team ends up providing assistance for all the jobs. The actual build steps in the jobs are already complicated (but as simple as we could make them), so we've worked really hard to try and keep all configuration down as much as possible, including writing our own in-house plugins that wrap up some configuration, etc. So, although what you described seems fine, it doesn't help me keep this simple for the development teams.

I do agree that having a generic skip would have been a nice thing for Jenkins to have built into the framework. I see it kind of like the maven skip facility - each plugin had to roll its own, and not all of them have that capability. But in retrospect, maven should have made this easy also. Meanwhile, it is what it is.

from publish-over-ftp-plugin.

jira-importer avatar jira-importer commented on June 27, 2024

bap:

Jacob,

I have just released the Flexible Publish Plugin https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin (wiki page to become useful this afternoon )

With this plugin installed, you can add the "Send build artifacts over FTP" to the "Flexible publish" Post-build Action and use the Run Condition "Always" to enable the publish.

To "skip" without losing the FTP configuration, update the Run Condition to "Never".

Please close this issue if you find my solution acceptable.

Bap.

from publish-over-ftp-plugin.

jira-importer avatar jira-importer commented on June 27, 2024

bap:

No response, assume happy

from publish-over-ftp-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.