ucb_deployer 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -10,12 +10,29 @@ lib/ucb_deployer/jira_deployer.rb
10
10
  resources/confluence_cas_web.xml
11
11
  resources/jdom.jar
12
12
  resources/jira_cas_web.xml
13
+ resources/jotm-2.0.13/carol-2.0.5.jar
14
+ resources/jotm-2.0.13/commons-cli-1.0.jar
15
+ resources/jotm-2.0.13/commons-logging.jar
16
+ resources/jotm-2.0.13/connector-1_5.jar
17
+ resources/jotm-2.0.13/howl-0.1.11.jar
18
+ resources/jotm-2.0.13/jotm.jar
19
+ resources/jotm-2.0.13/jotm_iiop_stubs.jar
20
+ resources/jotm-2.0.13/jotm_jrmp_stubs.jar
21
+ resources/jotm-2.0.13/jta-spec1_0_1.jar
22
+ resources/jotm-2.0.13/jts1_0.jar
23
+ resources/jotm-2.0.13/log4j.jar
24
+ resources/jotm-2.0.13/objectweb-datasource.jar
25
+ resources/jotm-2.0.13/xapool-1.5.0.jar
13
26
  resources/soulwing-casclient-0.5.3.jar
14
27
  spec/fixtures/confluence/bad_deploy.yml
15
28
  spec/fixtures/confluence/confluence-init.properties
16
29
  spec/fixtures/confluence/deploy.yml
17
30
  spec/fixtures/confluence/seraph-config.xml
18
31
  spec/fixtures/confluence/web.xml
32
+ spec/fixtures/jira/bad_deploy.yml
33
+ spec/fixtures/jira/deploy.yml
34
+ spec/fixtures/jira/entityengine.xml
35
+ spec/fixtures/jira/seraph-config.xml
19
36
  spec/fixtures/jira/web.xml
20
37
  spec/spec_helper.rb
21
38
  spec/ucb_deployer/confluence_deployer_spec.rb
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake'
3
3
  require 'echoe'
4
4
  require 'spec/rake/spectask'
5
5
 
6
- Echoe.new('ucb_deployer', '0.1.3') do |p|
6
+ Echoe.new('ucb_deployer', '0.1.4') do |p|
7
7
  p.description = "Tool for deploying (Java/JRuby) war files to tomcat"
8
8
  p.url = "http://ucbrb.rubyforge.org"
9
9
  p.author = "Steven Hansen"
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ bad_config: you_suck
@@ -0,0 +1,7 @@
1
+ build_dir: /path/to/build_dir/jira
2
+ deploy_dir: /path/to/deploy_dir
3
+ war_name: war_name
4
+ svn_username: runner
5
+ svn_project_url: svn.berkeley.edu/svn/ist-svn/berkeley/projects/ist/as/webapps/jira_archives/tags
6
+ cas_server_url: https://auth.berkeley.edu/cas
7
+ cas_service_url: https://wikihub.berkeley.edu
@@ -0,0 +1,114 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE entity-config PUBLIC "-//OFBiz//DTD Entity Engine Config//EN" "http://www.ofbiz.org/dtds/entity-config.dtd">
3
+ <!--
4
+ This file configures the OFBiz Entity Engine which JIRA uses to store persist data in a datasource.
5
+
6
+ For detailed configuration help see:
7
+
8
+ http://www.atlassian.com/software/jira/docs/latest/entityengine.html
9
+
10
+ Or our server specific setup guides (these take you through the setup process for each server):
11
+
12
+ http://www.atlassian.com/software/jira/docs/latest/servers/
13
+
14
+ Normally, you will only need to edit the 'field-type-name' attribute of the <datasource> tag, near the bottom of this
15
+ file.
16
+
17
+ Less commonly, you may wish to change then JNDI lookup paths for:
18
+ - the Transaction Manager (<transaction-factory> element)
19
+ - Database connection (<jndi-jdbc> element).
20
+
21
+ If you not using the 12 preconfigured DBs, you may also need to add your own field type definition
22
+ -->
23
+ <entity-config>
24
+ <resource-loader name="maincp" class="org.ofbiz.core.config.ClasspathLoader"/>
25
+
26
+ <!-- TRANSACTION FACTORY - This configures how JIRA finds the application server's transaction management.
27
+ The default ('java:comp/env/UserTransaction') is correct for Tomcat 5.5. For details on configuring for other
28
+ application servers - see:
29
+ http://www.atlassian.com/software/jira/docs/latest/entityengine.html#transactionfactory
30
+ -->
31
+ <transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory">
32
+ <user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
33
+ <transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
34
+ </transaction-factory>
35
+
36
+ <delegator name="default" entity-model-reader="main" entity-group-reader="main">
37
+ <group-map group-name="default" datasource-name="defaultDS"/>
38
+ </delegator>
39
+
40
+ <entity-model-reader name="main">
41
+ <resource loader="maincp" location="entitydefs/entitymodel.xml"/>
42
+ </entity-model-reader>
43
+
44
+ <entity-group-reader name="main" loader="maincp" location="entitydefs/entitygroup.xml"/>
45
+
46
+ <field-type name="cloudscape" loader="maincp" location="entitydefs/fieldtype-cloudscape.xml"/>
47
+ <field-type name="firebird" loader="maincp" location="entitydefs/fieldtype-firebird.xml"/>
48
+ <field-type name="hsql" loader="maincp" location="entitydefs/fieldtype-hsql18.xml"/>
49
+ <field-type name="mckoidb" loader="maincp" location="entitydefs/fieldtype-mckoidb.xml"/>
50
+ <field-type name="mysql" loader="maincp" location="entitydefs/fieldtype-mysql.xml"/>
51
+ <field-type name="mssql" loader="maincp" location="entitydefs/fieldtype-mssql.xml"/>
52
+ <!--
53
+ This field type is deprecated, and should ONLY be used with Oracle 8i.
54
+ If you are using Oracle 9i or 10g please use Oracle 10g JDBC drivers and the 'oracle10g' field type, which is specified below
55
+ -->
56
+ <field-type name="oracle" loader="maincp" location="entitydefs/fieldtype-oracle.xml"/>
57
+ <!--
58
+ Please use this field type for Oracle 9i and 10g. Please ensure that you are using Oracle 10g JDBC drivers which are compatible with Oracle 9i.
59
+ The 10g JDBC drivers can be downloaded from here: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
60
+ -->
61
+ <field-type name="oracle10g" loader="maincp" location="entitydefs/fieldtype-oracle10g.xml"/>
62
+ <field-type name="postgres" loader="maincp" location="entitydefs/fieldtype-postgres.xml"/>
63
+ <field-type name="postgres72" loader="maincp" location="entitydefs/fieldtype-postgres72.xml"/> <!-- use for postgres 7.2 and above -->
64
+ <field-type name="sapdb" loader="maincp" location="entitydefs/fieldtype-sapdb.xml"/>
65
+ <field-type name="sybase" loader="maincp" location="entitydefs/fieldtype-sybase.xml"/>
66
+ <field-type name="db2" loader="maincp" location="entitydefs/fieldtype-db2.xml"/>
67
+ <!--
68
+ JRA-4202: FrontBase has 'type' and 'position' as reserved words so make the following changes the entitymodel.xml
69
+ <field name="type" type="short-varchar"/> to <field name="type" col-name="TYPE_" type="short-varchar"/>
70
+ <field name="type" type="long-varchar"/> to <field name="type" col-name="TYPE_" type="long-varchar"/>
71
+ <field name="position" type="integer"/> to <field name="position" col-name="POSITION_" type="integer"/>
72
+ -->
73
+ <field-type name="frontbase" loader="maincp" location="entitydefs/fieldtype-frontbase.xml"/>
74
+
75
+
76
+ <!-- DATASOURCE - You will need to update this tag for your installation.
77
+
78
+ 1. Update field-type-name attribute to match your database.
79
+ Possible values include: cloudscape, db2, firebird, frontbase, hsql, mckoidb, mysql, mssql, oracle10g, oracle, postgres, postgres72, sapdb, sybase
80
+ 2. If using Orion or JBoss you will need to customize the <jndi-jdbc> tag.
81
+ See http://www.atlassian.com/software/jira/docs/latest/servers/
82
+ 3. If using Postgres 7.3+ (schema-aware), use:
83
+ field-type-name="postgres72"
84
+ and:
85
+ schema-name="public"
86
+ in the datasource attribute list below.
87
+ 4. If using DB2, add:
88
+ constraint-name-clip-length="15"
89
+ to the datasource attribute list below, and an appropriate schema-name attribute, eg:
90
+ schema-name="DB2INST1"
91
+ 5. If not using HSQLDB remove:
92
+ schema-name="PUBLIC"
93
+
94
+ PLEASE DO NOT CHANGE the datasource name from
95
+ defaultDS unless instructed to by Atlassian Support.
96
+
97
+ PLEASE DO NOT set the use-foreign-key* values to "true" as JIRA does not currently support this.
98
+ -->
99
+ <datasource name="defaultDS" field-type-name="hsql"
100
+ schema-name="PUBLIC"
101
+ helper-class="org.ofbiz.core.entity.GenericHelperDAO"
102
+ check-on-start="true"
103
+ use-foreign-keys="false"
104
+ use-foreign-key-indices="false"
105
+ check-fks-on-start="false"
106
+ check-fk-indices-on-start="false"
107
+ add-missing-on-start="true"
108
+ check-indices-on-start="true">
109
+ <jndi-jdbc jndi-server-name="default" jndi-name="java:comp/env/jdbc/JiraDS"/>
110
+ <!-- Orion format: <jndi-jdbc jndi-server-name="default" jndi-name="jdbc/JiraDS"/> -->
111
+ <!-- JBoss format: <jndi-jdbc jndi-server-name="default" jndi-name="java:/DefaultDS"/> -->
112
+ <!-- Weblogic format: <jndi-jdbc jndi-server-name="default" jndi-name="JiraDS"/> -->
113
+ </datasource>
114
+ </entity-config>
@@ -0,0 +1,105 @@
1
+ <security-config>
2
+ <parameters>
3
+ <init-param>
4
+ <!--
5
+ The login URL to redirect to when the user tries to access a protected resource (rather than clicking on
6
+ an explicit login link). Most of the time, this will be the same value as 'link.login.url'.
7
+ - if the URL is absolute (contains '://'), then redirect that URL (for SSO applications)
8
+ - else the context path will be prepended to this URL
9
+
10
+ If '${originalurl}' is present in the URL, it will be replaced with the URL that the user requested.
11
+ This gives SSO login pages the chance to redirect to the original page
12
+ -->
13
+ <param-name>login.url</param-name>
14
+ <param-value>/login.jsp?os_destination=${originalurl}</param-value>
15
+ <!--<param-value>http://sso.mycompany.com/login?redirectTo=${originalurl}</param-value>-->
16
+ </init-param>
17
+ <init-param>
18
+ <!--
19
+ the URL to redirect to when the user explicitly clicks on a login link (rather than being redirected after
20
+ trying to access a protected resource). Most of the time, this will be the same value as 'login.url'.
21
+ - same properties as login.url above
22
+ -->
23
+ <param-name>link.login.url</param-name>
24
+ <param-value>/login.jsp?os_destination=${originalurl}</param-value>
25
+ <!--<param-value>/secure/Dashboard.jspa?os_destination=${originalurl}</param-value>-->
26
+ <!--<param-value>http://sso.mycompany.com/login?redirectTo=${originalurl}</param-value>-->
27
+ </init-param>
28
+ <init-param>
29
+ <!-- URL for logging out.
30
+ - If relative, Seraph just redirects to this URL, which is responsible for calling Authenticator.logout().
31
+ - If absolute (eg. SSO applications), Seraph calls Authenticator.logout() and redirects to the URL
32
+ -->
33
+ <param-name>logout.url</param-name>
34
+ <param-value>/secure/Logout!default.jspa</param-value>
35
+ <!--<param-value>http://sso.mycompany.com/logout</param-value>-->
36
+ </init-param>
37
+ <!-- The key that the original URL is stored with in the session -->
38
+ <init-param>
39
+ <param-name>original.url.key</param-name>
40
+ <param-value>os_security_originalurl</param-value>
41
+ </init-param>
42
+ <init-param>
43
+ <param-name>login.cookie.key</param-name>
44
+ <param-value>seraph.os.cookie</param-value>
45
+ </init-param>
46
+ <!-- This property controls how your cookie is encrypted. If you truly want to secure your cookies, you need
47
+ to change this to a secure password -->
48
+ <init-param>
49
+ <param-name>cookie.encoding</param-name>
50
+ <param-value>jiracookie</param-value>
51
+ </init-param>
52
+ <!-- This property sets the default cookie timeout in seconds. It is currently set to 1 year -->
53
+ <init-param>
54
+ <param-name>autologin.cookie.age</param-name>
55
+ <param-value>31536000</param-value>
56
+ </init-param>
57
+ <!-- Basic Authentication can be enabled by passing the authentication type as a configurable url parameter.
58
+ With this example, you will need to pass http://mycompany.com/anypage?os_authType=basic in the url to enable Basic Authentication -->
59
+ <init-param>
60
+ <param-name>authentication.type</param-name>
61
+ <param-value>os_authType</param-value>
62
+ </init-param>
63
+ <!-- If this parameter is set to true, the cookie will never be set secure. This is useful if you're logging
64
+ into JIRA via https, but want to browse JIRA over http. This flag will ensure that the remember me option
65
+ works correctly.
66
+ <init-param>
67
+ <param-name>insecure.cookie</param-name>
68
+ <param-value>true</param-value>
69
+ </init-param> -->
70
+ </parameters>
71
+
72
+ <rolemapper class="com.atlassian.jira.security.JiraRoleMapper"/>
73
+
74
+ <!-- CROWD:START - If enabling Crowd SSO integration uncomment the following JIRAAuthenticator and comment out the DefaultAuthenticator below -->
75
+ <!--
76
+ <authenticator class="com.atlassian.crowd.integration.seraph.JIRAAuthenticator"/>
77
+ -->
78
+ <!-- CROWD:END -->
79
+
80
+ <!-- CROWD:START - The authenticator below here will need to be commented out for Crowd SSO integration -->
81
+ <authenticator class="com.atlassian.seraph.auth.DefaultAuthenticator"/>
82
+ <!-- CROWD:END -->
83
+
84
+ <!-- NB: the URL to redirect to is now specified by login.url above -->
85
+ <services>
86
+ <service class="com.atlassian.seraph.service.PathService">
87
+ <init-param>
88
+ <param-name>config.file</param-name>
89
+ <param-value>/seraph-paths.xml</param-value>
90
+ </init-param>
91
+ </service>
92
+
93
+ <service class="com.atlassian.seraph.service.WebworkService">
94
+ <init-param>
95
+ <param-name>action.extension</param-name>
96
+ <param-value>jspa</param-value>
97
+ </init-param>
98
+ </service>
99
+ </services>
100
+
101
+ <interceptors>
102
+ <interceptor class="com.atlassian.jira.portal.PortalPageInterceptor"/>
103
+ <interceptor class="com.atlassian.jira.user.preferences.UserPreferencesResetInterceptor"/>
104
+ </interceptors>
105
+ </security-config>
data/ucb_deployer.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ucb_deployer}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steven Hansen"]
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.email = %q{runner@berkeley.edu}
13
13
  s.executables = ["ucb_deploy"]
14
14
  s.extra_rdoc_files = ["README.txt", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb"]
15
- s.files = ["Manifest", "README.txt", "Rakefile", "TODO.txt", "bin/ucb_deploy", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb", "resources/confluence_cas_web.xml", "resources/jdom.jar", "resources/jira_cas_web.xml", "resources/soulwing-casclient-0.5.3.jar", "spec/fixtures/confluence/bad_deploy.yml", "spec/fixtures/confluence/confluence-init.properties", "spec/fixtures/confluence/deploy.yml", "spec/fixtures/confluence/seraph-config.xml", "spec/fixtures/confluence/web.xml", "spec/fixtures/jira/web.xml", "spec/spec_helper.rb", "spec/ucb_deployer/confluence_deployer_spec.rb", "spec/ucb_deployer/jira_deployer_spec.rb", "spec/ucb_deployer/ucb_deployer_spec.rb", "ucb_deployer.gemspec"]
15
+ s.files = ["Manifest", "README.txt", "Rakefile", "TODO.txt", "bin/ucb_deploy", "lib/ucb_deployer.rb", "lib/ucb_deployer/confluence_deployer.rb", "lib/ucb_deployer/deployer.rb", "lib/ucb_deployer/jira_deployer.rb", "resources/confluence_cas_web.xml", "resources/jdom.jar", "resources/jira_cas_web.xml", "resources/jotm-2.0.13/carol-2.0.5.jar", "resources/jotm-2.0.13/commons-cli-1.0.jar", "resources/jotm-2.0.13/commons-logging.jar", "resources/jotm-2.0.13/connector-1_5.jar", "resources/jotm-2.0.13/howl-0.1.11.jar", "resources/jotm-2.0.13/jotm.jar", "resources/jotm-2.0.13/jotm_iiop_stubs.jar", "resources/jotm-2.0.13/jotm_jrmp_stubs.jar", "resources/jotm-2.0.13/jta-spec1_0_1.jar", "resources/jotm-2.0.13/jts1_0.jar", "resources/jotm-2.0.13/log4j.jar", "resources/jotm-2.0.13/objectweb-datasource.jar", "resources/jotm-2.0.13/xapool-1.5.0.jar", "resources/soulwing-casclient-0.5.3.jar", "spec/fixtures/confluence/bad_deploy.yml", "spec/fixtures/confluence/confluence-init.properties", "spec/fixtures/confluence/deploy.yml", "spec/fixtures/confluence/seraph-config.xml", "spec/fixtures/confluence/web.xml", "spec/fixtures/jira/bad_deploy.yml", "spec/fixtures/jira/deploy.yml", "spec/fixtures/jira/entityengine.xml", "spec/fixtures/jira/seraph-config.xml", "spec/fixtures/jira/web.xml", "spec/spec_helper.rb", "spec/ucb_deployer/confluence_deployer_spec.rb", "spec/ucb_deployer/jira_deployer_spec.rb", "spec/ucb_deployer/ucb_deployer_spec.rb", "ucb_deployer.gemspec"]
16
16
  s.homepage = %q{http://ucbrb.rubyforge.org}
17
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ucb_deployer", "--main", "README.txt"]
18
18
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_deployer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Hansen
@@ -44,12 +44,29 @@ files:
44
44
  - resources/confluence_cas_web.xml
45
45
  - resources/jdom.jar
46
46
  - resources/jira_cas_web.xml
47
+ - resources/jotm-2.0.13/carol-2.0.5.jar
48
+ - resources/jotm-2.0.13/commons-cli-1.0.jar
49
+ - resources/jotm-2.0.13/commons-logging.jar
50
+ - resources/jotm-2.0.13/connector-1_5.jar
51
+ - resources/jotm-2.0.13/howl-0.1.11.jar
52
+ - resources/jotm-2.0.13/jotm.jar
53
+ - resources/jotm-2.0.13/jotm_iiop_stubs.jar
54
+ - resources/jotm-2.0.13/jotm_jrmp_stubs.jar
55
+ - resources/jotm-2.0.13/jta-spec1_0_1.jar
56
+ - resources/jotm-2.0.13/jts1_0.jar
57
+ - resources/jotm-2.0.13/log4j.jar
58
+ - resources/jotm-2.0.13/objectweb-datasource.jar
59
+ - resources/jotm-2.0.13/xapool-1.5.0.jar
47
60
  - resources/soulwing-casclient-0.5.3.jar
48
61
  - spec/fixtures/confluence/bad_deploy.yml
49
62
  - spec/fixtures/confluence/confluence-init.properties
50
63
  - spec/fixtures/confluence/deploy.yml
51
64
  - spec/fixtures/confluence/seraph-config.xml
52
65
  - spec/fixtures/confluence/web.xml
66
+ - spec/fixtures/jira/bad_deploy.yml
67
+ - spec/fixtures/jira/deploy.yml
68
+ - spec/fixtures/jira/entityengine.xml
69
+ - spec/fixtures/jira/seraph-config.xml
53
70
  - spec/fixtures/jira/web.xml
54
71
  - spec/spec_helper.rb
55
72
  - spec/ucb_deployer/confluence_deployer_spec.rb