Skip to content

Commit

Permalink
#1275 Jenkins build property
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Jul 27, 2024
1 parent f3f2079 commit 4d593df
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import {Form, Input, InputNumber} from "antd";
import {prefixedFormName} from "@components/form/formUtils";

export default function PropertyForm({prefix}) {
return (
<>
<Form.Item
label="Configuration"
extra="Name of the Jenkins configuration in Ontrack"
name={prefixedFormName(prefix, ['configuration', 'name'])}
>
<Input/>
</Form.Item>
<Form.Item
label="Job"
extra="Path to the job in Jenkins"
name={prefixedFormName(prefix, 'job')}
>
<Input/>
</Form.Item>
<Form.Item
label="Build"
extra="Build number"
name={prefixedFormName(prefix, 'build')}
>
<InputNumber min={1}/>
</Form.Item>
</>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default function JenkinsBuildPropertyTypeFormPrepare(value) {
return {
...value,
configuration: value?.configuration?.name,
}
}

0 comments on commit 4d593df

Please sign in to comment.