プロジェクト

全般

プロフィール

Defect #878

未完了

Plugin cannot trigger a parameterized build

Nicolas Bachschmidt さんが12年以上前に追加. 10年以上前に更新.

ステータス:
新規(New)
優先度:
通常(Normal)
担当者:
-
対象バージョン:
-
開始日:
2011/11/21
期日:
進捗率:

0%

予定工数:

説明

When a job is configured to perform parameterized builds, the plugin fails to trigger a build.

The request uses the 'build' action that returns the list of the parameters with HTTP status 405. Parameterized builds can be triggered with the 'buildWithParameters' action (which, unfortunately doesn't work with non-parameterized builds).

Unless Hudson/Jenkins teams provide a single action to launch both parameterized and non-parameterized builds, the plugin should be able to use the right action.

Toshiyuki Ando さんがほぼ12年前に更新

how to build with parameters => Parameterized Build - Jenkins - Jenkins Wiki

  • All parameters need to be properly URL-escaped. To use with wget, quote the URL on the command line too.
  • The parameter delay=0sec can be added to start the build immediately.
  • To use a Run Parameter, the value should be in the format jobname#buildNumber (eg. "&MyRunParam=foo-job#123")
  • If you are using an authorization token to trigger the builds (Job -> Configure -> 'Build Triggers' -> 'Trigger builds remotely (e.g., from scripts)'), you can access:

what is Run Parameter ?

Toshiyuki Ando さんがほぼ12年前に更新

sample of config.xml is below.

<properties>
  <hudson.model.ParametersDefinitionProperty>
    <parameterDefinitions>
      <hudson.model.StringParameterDefinition>
        <name>StringItem</name>
        <description/>
        <defaultValue>default_string</defaultValue>
      </hudson.model.StringParameterDefinition>
      <hudson.model.TextParameterDefinition>
        <name>TextItem</name>
        <description/>
        <defaultValue>default_text</defaultValue>
      </hudson.model.TextParameterDefinition>
    </parameterDefinitions>
  </hudson.model.ParametersDefinitionProperty></properties>

it is too many types for first step.... ;<

cforce cforce さんが10年以上前に更新

Whts is the solution? DI i put the paremtrized ULR in the plugins ULR filed in settings?

cforce cforce さんが10年以上前に更新

How do i make the redmine hudson plugin to call another urls than just "/jenkins/job/myjob/build" whejn i click on the Run button in the redmine hudson job ???
Where can i configure http parameters?

What is the solution , i don't understand your comments towards a solution to be able to have a one click job start from redmine hudson plugin..?

He is my erro when i click the Run Button on a paramterized build job

Build fehlgeschlagen. - Tool_Trunk
server errror
NG: HudsonApiError: HudsonJob::request_build 'ZBV_Tool_Trunk' - Unknown Fehler incorrect header check

他の形式にエクスポート: Atom PDF