Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged eiffel-examples into eiffel repository. #38

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: python
python:
- "2.7"

script:
- python examples/validate.py
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelActivityCanceledEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ __Required:__ No
__Description:__ Any human readable information as to the reason for dequeueing.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelActivityCanceledEvent/simple.json)
* [Simple example](../examples/events/EiffelActivityCanceledEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelActivityFinishedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ __Required:__ Yes
__Description:__ The URI at which the log can be retrieved.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelActivityFinishedEvent/simple.json)
* [Simple example](../examples/events/EiffelActivityFinishedEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelActivityStartedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ __Required:__ Yes
__Description:__ The URI at which the log can be retrieved.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelActivityStartedEvent/simple.json)
* [Simple example](../examples/events/EiffelActivityStartedEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelActivityTriggeredEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ __Legal values:__ MANUAL, SEMI_AUTOMATED, AUTOMATED, OTHER
__Description:__ The type of execution (often related to, but ultimately separate from, __data.trigger.type__).

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelActivityTriggeredEvent/simple.json)
* [Simple example](../examples/events/EiffelActivityTriggeredEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelArtifactCreatedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ __Required:__ No
__Description:__ The command used to build the artifact within the identified environment. Used for reproducability purposes.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelArtifactCreatedEvent/simple.json)
* [Simple example](../examples/events/EiffelArtifactCreatedEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelArtifactPublishedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ __Required:__ Yes
__Description:__ The URI at which the artifact can be retrieved.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelArtifactPublishedEvent/simple.json)
* [Simple example](../examples/events/EiffelArtifactPublishedEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelCompositionDefinedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ __Required:__ No
__Description:__ The version of the composition, if any. This is in a sense redundant, as relationships between compositions can be tracked via the __PREVIOUS_VERSION__ link type, but can be used for improved clarity and semantics.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelCompositionDefinedEvent/simple.json)
* [Simple example](../examples/events/EiffelCompositionDefinedEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelConfidenceLevelModifiedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ __Required:__ No
__Description:__ Any group, such as a development team, committee or test group, to which the issuer belongs.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelConfidenceLevelModifiedEvent/simple.json)
* [Simple example](../examples/events/EiffelConfidenceLevelModifiedEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelFlowContextDefinedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ __Required:__ No
__Description:__ A version context which other events can relate to. This member SHOULD be used in tandem with one of the other optional members - a version by itself is not very informative.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelFlowContextDefinedEvent/simple.json)
* [Simple example](../examples/events/EiffelFlowContextDefinedEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelSourceChangeCreatedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ __Required:__ Yes
__Description:__ The URI of the repo.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelSourceChangeCreatedEvent/simple.json)
* [Simple example](../examples/events/EiffelSourceChangeCreatedEvent/simple.json)
2 changes: 1 addition & 1 deletion eiffel-vocabulary/EiffelSourceChangeSubmittedEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ __Required:__ Yes
__Description:__ The URI of the repo.

## Examples
* [Simple example](https://github.com/Ericsson/eiffel-examples/blob/master/events/EiffelSourceChangeSubmittedEvent/simple.json)
* [Simple example](../examples/events/EiffelSourceChangeSubmittedEvent/simple.json)
22 changes: 22 additions & 0 deletions examples/events/EiffelActivityCanceledEvent/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"meta": {
"type": "EiffelActivityCanceledEvent",
"version": "1.0",
"time": 1234567890,
"domainId": "example.domain",
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee0"
},
"data": {
"reason": "Made irrelevant by newly scheduled execution."
},
"links": [
{
"type": "ACTIVITY_EXECUTION",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
},
{
"type": "CAUSE",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee2"
}
]
}
31 changes: 31 additions & 0 deletions examples/events/EiffelActivityFinishedEvent/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"meta": {
"type": "EiffelActivityFinishedEvent",
"version": "1.0",
"time": 1234567890,
"domainId": "example.domain",
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee0"
},
"data": {
"outcome": {
"verdict": "TIMEOUT",
"description": "Compilation timed out."
},
"persistentLogs": [
{
"name": "firstLog",
"uri": "http://myHost.com/firstLog"
},
{
"name": "otherLog",
"uri": "isbn:0-486-27557-4"
}
]
},
"links": [
{
"type": "ACTIVITY_EXECUTION",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
}
]
}
28 changes: 28 additions & 0 deletions examples/events/EiffelActivityStartedEvent/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"meta": {
"type": "EiffelActivityStartedEvent",
"version": "1.0",
"time": 1234567890,
"domainId": "example.domain",
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee0"
},
"data": {
"executionUri": "https://my.jenkins.host/myJob/43",
"liveLogs": [
{
"name": "My build log",
"uri": "file:///tmp/logs/data.log"
}
]
},
"links": [
{
"type": "ACTIVITY_EXECUTION",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
},
{
"type": "PREVIOUS_ACTIVITY_EXECUTION",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee2"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"meta": {
"domainId": "domainId-test",
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee0",
"type": "EiffelActivityTriggeredEvent",
"version": "1.0",
"time": 1234567890
},
"data": {
"name": "Component X Build",
"category": "Component Build",
"triggers": [
{
"type": "MANUAL",
"description": "Triggered by EiffelArtifactPublishedEvent"
}
],
"executionType": "AUTOMATED",
"customData" : [
{
"key":"key1",
"value": "value1"
},
{
"key":"key2",
"value": [1,2,3]
}
]
},
"links": [
{
"type": "CAUSE",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
}
]
}
26 changes: 26 additions & 0 deletions examples/events/EiffelActivityTriggeredEvent/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"meta": {
"domainId": "domainId-test",
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee0",
"type": "EiffelActivityTriggeredEvent",
"version": "1.0",
"time": 1234567890
},
"data": {
"name": "Component X Build",
"category": "Component Build",
"triggers": [
{
"type": "MANUAL",
"description": "Triggered by EiffelArtifactPublishedEvent"
}
],
"executionType": "AUTOMATED"
},
"links": [
{
"type": "CAUSE",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
}
]
}
49 changes: 49 additions & 0 deletions examples/events/EiffelArtifactCreatedEvent/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"meta": {
"type": "EiffelArtifactCreatedEvent",
"version": "1.0",
"time": 1234567890,
"domainId": "example.domain",
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee0"
},
"data": {
"gav": {
"groupId": "com.mycompany.myproduct",
"artifactId": "artifact-name",
"version": "2.1.7"
},
"fileInformation": [
{
"classifier": "debug",
"extension": "jar"
},
{
"classifier": "test",
"extension": ""
},
{
"classifier": "",
"extension": "exe"
}
],
"buildCommand": "/my/build/command with arguments"
},
"links": [
{
"type": "CAUSE",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
},
{
"type": "PREVIOUS_VERSION",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee2"
},
{
"type": "COMPOSITION",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
},
{
"type": "ENVIRONMENT",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee3"
}
]
}
31 changes: 31 additions & 0 deletions examples/events/EiffelArtifactPublishedEvent/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"meta": {
"type": "EiffelArtifactPublishedEvent",
"version": "1.0",
"time": 1234567890,
"domainId": "example.domain",
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee0"
},
"data": {
"locations": [
{
"type": "ARTIFACTORY",
"uri": "https://one.place"
},
{
"type": "PLAIN",
"uri": "http://another.com"
}
]
},
"links": [
{
"type": "CONTEXT",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
},
{
"type": "ARTIFACT",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee2"
}
]
}
35 changes: 35 additions & 0 deletions examples/events/EiffelCompositionDefinedEvent/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"meta": {
"type": "EiffelCompositionDefinedEvent",
"version": "1.0",
"time": 1234567890,
"domainId": "example.domain",
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee0"
},
"data": {
"name": "myCompositionName",
"version": "42.0.7"
},
"links": [
{
"type": "ELEMENT",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1"
},
{
"type": "ELEMENT",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee2"
},
{
"type": "ELEMENT",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee3"
},
{
"type": "ELEMENT",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee4"
},
{
"type": "PREVIOUS_VERSION",
"target": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee5"
}
]
}