Examples of BuildData


Examples of hudson.plugins.git.util.BuildData

     * @param build
     * @return SHA1 of the las
     * @throws IOException Cannot get the info about commit ID
     */
    public static @Nonnull ObjectId getCommitSHA1(@Nonnull AbstractBuild<?, ?> build) throws IOException {
        BuildData buildData = build.getAction(BuildData.class);
        if (buildData == null) {
            throw new IOException(Messages.BuildDataHelper_NoBuildDataError());
        }
        final Revision lastBuildRevision = buildData.getLastBuiltRevision();
        final ObjectId sha1 = lastBuildRevision != null ? lastBuildRevision.getSha1() : null;
        if (sha1 == null) { // Nowhere to report => fail the build
            throw new IOException(Messages.BuildDataHelper_NoLastRevisionError());
        }
        return sha1;
View Full Code Here

Examples of org.apache.tools.ant.gui.wizard.build.BuildData

                    load.run();
                }
            }
            else {
                // We are in wizard mode. Create it.
                Wizard wiz = new Wizard(new BuildData());
                // XXX this is temporary for testing. Eventually
                // it will launch the regular antidote screen with the
                // results of the wizard.
                wiz.addWizardListener(new WizardListener() {
                    public void finished(Object model) {
                        BuildData data = (BuildData) model;
                        System.out.println(data.createProject());
                        System.exit(0);
                    }
                    public void canceled() {
                        System.exit(0);
                    }
View Full Code Here

Examples of org.apache.tools.ant.gui.wizard.build.BuildData

                    load.run();
                }
            }
            else {
                // We are in wizard mode. Create it.
                Wizard wiz = new Wizard(new BuildData());
                // XXX this is temporary for testing. Eventually
                // it will launch the regular antidote screen with the
                // results of the wizard.
                wiz.addWizardListener(new WizardListener() {
                        public void finished(Object model) {
                            BuildData data = (BuildData) model;
                            System.out.println(data.createProject());
                            System.exit(0);
                        }
                        public void canceled() {
                            System.exit(0);
                        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.