Commit 7e17edca authored by Alexander Diewald's avatar Alexander Diewald
Browse files

oomph: Finalize the mylyn integration.



* Copy the mylyn repository configuration from the gitlab
  server during setup such that it is available before
  eclipse starts up. Otherwise, the repository configuration
  would be overridden, or a manual restart would be needed
  before mylyn queries could be defined (fragile approach).
* After the startup, define the queries that provide access
  to all AF3 tickets and the ones assigned to the developer.
* Reset branch information of the fortiss-std-env repo to
  the master branch (it has been adjusted for testing the feature
  branch).
* Add a dependency on the egit <--> mylyn integration to pre-configure
  commit messages.

Issue-Ref: 3406
Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent df427159
......@@ -5,12 +5,13 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
xmlns:jdt="http://www.eclipse.org/oomph/setup/jdt/1.0"
xmlns:mylyn="http://www.eclipse.org/oomph/setup/mylyn/1.0"
xmlns:predicates="http://www.eclipse.org/oomph/predicates/1.0"
xmlns:projects="http://www.eclipse.org/oomph/setup/projects/1.0"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
xmlns:setup.workingsets="http://www.eclipse.org/oomph/setup/workingsets/1.0"
xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/predicates/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/projects/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Projects.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore"
xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/mylyn/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Mylyn.ecore http://www.eclipse.org/oomph/predicates/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/projects/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Projects.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore"
name="autofocus3"
label="AutoFOCUS 3 (Developer)">
<setupTask
......@@ -75,6 +76,10 @@
<requirement
name="org.eclipse.jgit.feature.group"
versionRange="[4.7.0,4.8.0)"/>
<requirement
name="org.eclipse.egit.mylyn.feature.group"
versionRange="[4.7.0,4.8.0)"
filter=""/>
<repository
url="http://download.eclipse.org/egit/updates-4.7.1"/>
<description>Install Git support for interacting with the AF3 repositories.</description>
......@@ -200,11 +205,23 @@
encoding="UTF-8">
<description>Subclipse preference configuration for using SVNKit provider.</description>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
id="mylyn.repo"
name="Mylyn Repository Settings">
<setupTask
xsi:type="setup:ResourceCopyTask"
id="mylyn.setup"
sourceURL="https://git.fortiss.org/af3/fortiss-std-env/raw/master/oomph/mylyn-repositories.xml.zip"
targetURL="${workspace.location|uri}/.metadata/.mylyn/repositories.xml.zip">
<description>Copies the mylyn web repository configuration to the workspace.</description>
</setupTask>
<description>Copies the repository definition file to the workspace. This must be done in the bootstrap phase such that the repositories are known before queries are configured since this configuration would be overriden. An extra config file is needed as oomph does not provide a configuration task for the mylyn web connector.</description>
</setupTask>
<setupTask
xsi:type="git:GitCloneTask"
id="fortiss-std-env.git.clone"
remoteURI="https://git.fortiss.org/af3/fortiss-std-env.git"
checkoutBranch="3406_mylyn">
remoteURI="https://git.fortiss.org/af3/fortiss-std-env.git">
<description>Clones the default development enviroment settings.</description>
</setupTask>
<setupTask
......@@ -377,20 +394,6 @@
</workingSet>
<description>Standard working set definitions.</description>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
id="ws.var"
name="Variables">
<setupTask
xsi:type="setup:VariableTask"
type="PASSWORD"
name="redmine.user.password"
label="Redmine password for issues."/>
<setupTask
xsi:type="setup:VariableTask"
name="redmine.user.login"
label="Redmine login for issues."/>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
id="ws.settings"
......@@ -421,11 +424,89 @@
id="ws.mylyn"
name="Mylyn Settings">
<setupTask
xsi:type="setup:ResourceCopyTask"
id="mylyn.setup"
sourceURL="${fortiss-std-env.git.clone.location|uri}/oomph/mylyn-repositories.xml.zip"
targetURL="${workspace.location|uri}/.metadata/.mylyn/repositories.xml.zip">
<description>Copies the mylyn web repository configuration to the workspace.</description>
xsi:type="setup:CompoundTask"
id="ws.var"
name="Variables">
<setupTask
xsi:type="setup:VariableTask"
id="mylyn.tracker.api.key"
name="key"
value="${redmine.api.key}"/>
<setupTask
xsi:type="setup:VariableTask"
id="mylyn.serverUrl"
name="serverUrl"
value="https://af3-developer.fortiss.org"
defaultValue="https://af3-developer.fortiss.org"/>
<setupTask
xsi:type="setup:VariableTask"
id="mylyn.task.limit"
name="limit"
value="100"
defaultValue="100"/>
<setupTask
xsi:type="setup:VariableTask"
id="mylyn.projectId"
name="projectId"
value="af3-phoenix-release"
defaultValue="af3-phoenix-release"/>
<setupTask
xsi:type="setup:VariableTask"
id="mylyn.query.regexp"
name="regexp"
value="&lt;issue>&lt;id>({Id}\d+)&lt;\/id>.*?&lt;tracker id=&quot;\d+&quot; name=&quot;({Type}.*?)&quot;\/>&lt;status id=&quot;\d+&quot; name=&quot;({Status}.*?)&quot;\/>.*?&lt;assigned_to id=&quot;\d+&quot; name=&quot;({Owner}.*?)&quot;\/>.*?&lt;subject>({Description}.*?)&lt;\/subject>"/>
</setupTask>
<setupTask
xsi:type="mylyn:MylynQueriesTask"
id="mylyn.query.af3"
connectorKind="web"
repositoryURL="https://af3-developer.fortiss.org"
userID="">
<query
summary="AF3"
url="https://af3-developer.fortiss.org/issues.xml?key=${redmine.api.key}&amp;amp;project_id=${projectId}&amp;amp;limit=${limit}">
<attribute
key="param_key"
value="${redmine.api.key}"/>
<attribute
key="taskPrefix"
value="${serverUrl}/issues/"/>
<attribute
key="param_projectId"
value="${projectId}"/>
<attribute
key="param_limit"
value="${limit}"/>
<attribute
key="UrlTemplate"
value="${serverUrl}/issues.xml?key=${key}&amp;amp;project_id=${projectId}&amp;amp;limit=${limit}"/>
<attribute
key="Regexp"
value="${regexp}"/>
</query>
<query
summary="AF3 - mine"
url="https://af3-developer.fortiss.org/issues.xml?key=${redmine.api.key}&amp;amp;project_id=${projectId}&amp;amp;limit=${limit}&amp;amp;assigned_to=me">
<attribute
key="param_key"
value="${redmine.api.key}"/>
<attribute
key="taskPrefix"
value="${serverUrl}/issues/"/>
<attribute
key="param_projectId"
value="${projectId}"/>
<attribute
key="param_limit"
value="${limit}"/>
<attribute
key="UrlTemplate"
value="${serverUrl}/issues.xml?key=${key}&amp;amp;project_id=${projectId}&amp;amp;limit=${limit}&amp;amp;assigned_to=me"/>
<attribute
key="Regexp"
value="${regexp}"/>
</query>
<description></description>
</setupTask>
</setupTask>
<stream name="master"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment