Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15341

New workflow creation should be in the form validation

    XMLWordPrintable

Details

    Description

      The current user experience in Jenkow plugin is such that.

      1. you create a new job, specifying a non-existent workflow name
      2. you run the build once, make it fail (this is when the plugin internally creates a skeleton workflow file)
      3. you checkout the newly created bpmn file, and edit it.

      This idea of inducing a failure to have it created it is bit strange, and it also has an undesirable side-effect that if you have a typo in the workflow name, you end up creating one.

      I think a better user experience is:

      1. you create a new job, specifying a non-existent workflow name
      2. form validation gives you a button/link that lets you create new template workflow files (or copy from existing one, which is likely useful, too) see Subversion plugin for how it does this, when the user types in a repository URL for which it doesn't yet have a credential.

      Attachments

        Activity

          Code changed in jenkins
          User: Max Spring
          Path:
          jenkow-plugin/src/main/java/com/cisco/step/jenkins/plugins/jenkow/JenkowBuilder.java
          http://jenkins-ci.org/commit/jenkow-plugin/ac27f4cd4ebc0f1e912dbdf717d42a30634ccb68
          Log:
          fixed JENKINS-15341

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Max Spring Path: jenkow-plugin/src/main/java/com/cisco/step/jenkins/plugins/jenkow/JenkowBuilder.java http://jenkins-ci.org/commit/jenkow-plugin/ac27f4cd4ebc0f1e912dbdf717d42a30634ccb68 Log: fixed JENKINS-15341
          m2spring Max Spring added a comment -

          Added a button to the "error" message to create the workflow.
          A non-existing workflow won't be created automatically any more.

          m2spring Max Spring added a comment - Added a button to the "error" message to create the workflow. A non-existing workflow won't be created automatically any more.
          m2spring Max Spring added a comment -

          Added a button to the "eror" message to create the workflow.
          A non-existing workflow won't be created automatically any more.

          m2spring Max Spring added a comment - Added a button to the "eror" message to create the workflow. A non-existing workflow won't be created automatically any more.

          People

            m2spring Max Spring
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: