-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fde26a4
commit 910a77d
Showing
23 changed files
with
198 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...-git/src/main/java/net/nemerosa/ontrack/extension/git/branching/BranchingModelProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package net.nemerosa.ontrack.extension.git.branching | ||
|
||
import net.nemerosa.ontrack.model.annotations.APIDescription | ||
import net.nemerosa.ontrack.model.support.NameValue | ||
|
||
class BranchingModelProperty( | ||
val patterns: List<NameValue> | ||
@APIDescription("List of branch patterns (name & value). The name is the category of branch and the value is a regular expression on the SCM branch.") | ||
val patterns: List<NameValue> | ||
) |
39 changes: 22 additions & 17 deletions
39
...c/main/java/net/nemerosa/ontrack/extension/git/property/GitBranchConfigurationProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
package net.nemerosa.ontrack.extension.git.property | ||
|
||
import net.nemerosa.ontrack.model.annotations.APIDescription | ||
import net.nemerosa.ontrack.model.docs.DocumentationField | ||
import net.nemerosa.ontrack.model.structure.ServiceConfiguration | ||
|
||
class GitBranchConfigurationProperty( | ||
|
||
/** | ||
* Git branch or pull request ID | ||
*/ | ||
val branch: String, | ||
/** | ||
* Git branch or pull request ID | ||
*/ | ||
@APIDescription("Git branch or pull request ID") | ||
val branch: String, | ||
|
||
/** | ||
* Build link | ||
*/ | ||
@DocumentationField | ||
val buildCommitLink: ServiceConfiguration?, | ||
/** | ||
* Build link | ||
*/ | ||
@DocumentationField | ||
@APIDescription("How builds are linked to their Git commit") | ||
val buildCommitLink: ServiceConfiguration?, | ||
|
||
/** | ||
* Build overriding policy when synchronizing | ||
*/ | ||
val isOverride: Boolean, | ||
/** | ||
* Build overriding policy when synchronizing | ||
*/ | ||
@APIDescription("Build overriding policy when synchronizing") | ||
val isOverride: Boolean, | ||
|
||
/** | ||
* Interval in minutes for build/tag synchronization | ||
*/ | ||
val buildTagInterval: Int | ||
/** | ||
* Interval in minutes for build/tag synchronization | ||
*/ | ||
@APIDescription("Interval in minutes for build/tag synchronization") | ||
val buildTagInterval: Int | ||
|
||
) |
3 changes: 3 additions & 0 deletions
3
...ension-git/src/main/java/net/nemerosa/ontrack/extension/git/property/GitCommitProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package net.nemerosa.ontrack.extension.git.property | ||
|
||
import net.nemerosa.ontrack.model.annotations.APIDescription | ||
|
||
class GitCommitProperty( | ||
@APIDescription("Commit hash") | ||
val commit: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...et.nemerosa.ontrack.extension.github.workflow.BuildGitHubWorkflowRunPropertyType.tpl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
<a href="{{property.value.url}}">{{ property.value.name }}#{{ property.value.runNumber }}</a> <code>{{ property.value.event }}</code> | ||
<span ng-if="property.value.running"><em>(running)</em></span> | ||
<p ng-repeat="workflow in property.value.workflows"> | ||
<a href="{{workflow.url}}">{{ workflow.name }}#{{ workflow.runNumber }}</a> <code>{{ workflow.event }}</code> | ||
<span ng-if="workflow.running"><em>(running)</em></span> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...-web-core/components/framework/properties/general.BuildLinkDisplayPropertyType/Display.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {Descriptions, Space, Tag, Typography} from "antd"; | ||
import TimestampText from "@components/common/TimestampText"; | ||
import YesNo from "@components/common/YesNo"; | ||
|
||
export default function Display({property}) { | ||
return ( | ||
<Space> | ||
<Typography.Text>Use label:</Typography.Text> | ||
<YesNo strong={true} value={property.value.useLabel}/> | ||
</Space> | ||
) | ||
} |
5 changes: 5 additions & 0 deletions
5
...ack-web-core/components/framework/properties/general.BuildLinkDisplayPropertyType/Icon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {FaTag} from "react-icons/fa"; | ||
|
||
export default function Icon() { | ||
return <FaTag/> | ||
} |
17 changes: 17 additions & 0 deletions
17
...-core/components/framework/properties/git.branching.BranchingModelPropertyType/Display.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {Descriptions, Typography} from "antd"; | ||
|
||
export default function Display({property}) { | ||
|
||
const items = property.value.patterns.map((pattern) => ({ | ||
key: pattern.name, | ||
label: pattern.name, | ||
children: <Typography.Text code>{pattern.value}</Typography.Text>, | ||
span: 12, | ||
})) | ||
|
||
return ( | ||
<> | ||
<Descriptions items={items} column={12}/> | ||
</> | ||
) | ||
} |
5 changes: 5 additions & 0 deletions
5
...web-core/components/framework/properties/git.branching.BranchingModelPropertyType/Icon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {FaCodeBranch} from "react-icons/fa"; | ||
|
||
export default function Icon() { | ||
return <FaCodeBranch/> | ||
} |
32 changes: 32 additions & 0 deletions
32
...onents/framework/properties/github.workflow.BuildGitHubWorkflowRunPropertyType/Display.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import {Space, Spin, Typography} from "antd"; | ||
import Link from "next/link"; | ||
import {FaGithub} from "react-icons/fa"; | ||
|
||
export default function Display({property}) { | ||
|
||
return ( | ||
<> | ||
<Space direction="vertical"> | ||
{ | ||
property.value.workflows.map(workflow => ( | ||
<> | ||
<Space key={workflow.runId}> | ||
<FaGithub/> | ||
<Link href={workflow.url}> | ||
{workflow.name}#{workflow.runNumber} | ||
</Link> | ||
{workflow.event && <Typography.Text code>{workflow.event}</Typography.Text>} | ||
{ | ||
workflow.running && <> | ||
<Spin size="small"/> | ||
Running | ||
</> | ||
} | ||
</Space> | ||
</> | ||
)) | ||
} | ||
</Space> | ||
</> | ||
) | ||
} |
5 changes: 5 additions & 0 deletions
5
...omponents/framework/properties/github.workflow.BuildGitHubWorkflowRunPropertyType/Icon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {FaGithub} from "react-icons/fa"; | ||
|
||
export default function Icon() { | ||
return <FaGithub/> | ||
} |
25 changes: 25 additions & 0 deletions
25
...ramework/properties/github.workflow.ValidationRunGitHubWorkflowJobPropertyType/Display.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import {Space, Spin, Typography} from "antd"; | ||
import Link from "next/link"; | ||
import {FaGithub} from "react-icons/fa"; | ||
|
||
export default function Display({property}) { | ||
|
||
return ( | ||
<> | ||
<Space key={property.value.runId}> | ||
<FaGithub/> | ||
<Link href={property.value.url}> | ||
{property.value.name}#{property.value.runNumber} | ||
</Link> | ||
<Typography.Text code>{property.value.job}</Typography.Text> | ||
{property.value.event && <Typography.Text code>{property.value.event}</Typography.Text>} | ||
{ | ||
property.value.running && <> | ||
<Spin size="small"/> | ||
Running | ||
</> | ||
} | ||
</Space> | ||
</> | ||
) | ||
} |
5 changes: 5 additions & 0 deletions
5
...s/framework/properties/github.workflow.ValidationRunGitHubWorkflowJobPropertyType/Icon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {FaGithub} from "react-icons/fa"; | ||
|
||
export default function Icon() { | ||
return <FaGithub/> | ||
} |
15 changes: 15 additions & 0 deletions
15
ontrack-web-core/components/framework/properties/jira.JIRAFollowLinksPropertyType/Display.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {Tag} from "antd"; | ||
|
||
export default function Display({property}) { | ||
return ( | ||
<> | ||
{ | ||
property.value.linkNames.map(link => ( | ||
<> | ||
<Tag key={link}>{link}</Tag> | ||
</> | ||
)) | ||
} | ||
</> | ||
) | ||
} |
5 changes: 5 additions & 0 deletions
5
ontrack-web-core/components/framework/properties/jira.JIRAFollowLinksPropertyType/Icon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {FaJira} from "react-icons/fa"; | ||
|
||
export default function Icon() { | ||
return <FaJira/> | ||
} |