Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
131 ghuddy 3
'               CONFIG FILE
119 ghuddy 4
'=====================================================
5
%>
6
<!--#include file="base_conf.asp"-->
7
 
8
<%
9
' -- Variable Definition ------------------------------
131 ghuddy 10
Dim OraSession, OraDatabase      ' DB connection
119 ghuddy 11
Dim scriptName
12
Dim rootPath
5251 dpurdie 13
Dim DocRepositiryLink, DocRepositiryLinkOld, DocBrowseLink
119 ghuddy 14
Dim APP_ROOT, QUERIES_PATH
177 brianf 15
Dim archive_server
16
Dim dpkg_archiveURL
17
Dim HTTP_PKG_ARCHIVE
1326 dpurdie 18
Dim release_archiveURL
19
Dim ACCESS_MANAGER_URL
4028 dpurdie 20
Dim DEPLOYMENT_MANAGER_URL
5357 dpurdie 21
Dim PRODUCTION_MANAGER_URL
22
Dim RELEASE_MANAGER_URL
2365 dpurdie 23
Dim strRelativePath             ' Rel Path from script to URL
5357 dpurdie 24
Dim managerSuiteBase            ' Url to the base of the Manager Suite
3959 dpurdie 25
Dim MAIL_SERVER
5168 dpurdie 26
Dim FAULT_EMAIL_LIST
5357 dpurdie 27
Dim FavIcon                     ' Favorite Icon
1326 dpurdie 28
 
119 ghuddy 29
' -- Variable Initialisation --------------------------
30
'Set OraSession = CreateObject("OracleInProcServer.XOraSession")
31
'OraSession.CreateDatabasePool 1,2,1, TNS_NAME, DB_AUTHENTICATION, 0
32
'Set OraDatabase = OraSession.GetDatabaseFromPool(5000)
33
 
34
'Set OraSession = Application("ORA_SESSION")
131 ghuddy 35
'Set OraDatabase =    OraSession.GetDatabaseFromPool(5000)
119 ghuddy 36
Set OraSession = CreateObject("OracleInProcServer.XOraSession")
37
Set OraDatabase = OraSession.OpenDatabase( TNS_NAME, DB_AUTHENTICATION, Cint(0))
38
 
177 brianf 39
'--------------------------------------------------------------------------------------
40
'Returns the server of the package archive
41
Function Get_Archive_Server()
42
   Dim sqry: sqry = "SELECT * FROM BUILD_SERVICE_CONFIG WHERE SERVICE='ARCHIVE SERVER'"
43
   Dim rsTemp
44
   Set rsTemp = OraDatabase.DbCreateDynaset( sqry , cint(0) )
45
   Get_Archive_Server = rsTemp("config")
46
   rsTemp.Close()
47
   Set rsTemp = Nothing
48
End Function
119 ghuddy 49
 
177 brianf 50
'--------------------------------------------------------------------------------------
3959 dpurdie 51
'Returns the server of the package archive
52
Function Get_Mail_Server()
53
   Dim sqry: sqry = "SELECT * FROM BUILD_SERVICE_CONFIG WHERE SERVICE='MAIL SERVER'"
54
   Dim rsTemp
55
   Set rsTemp = OraDatabase.DbCreateDynaset( sqry , cint(0) )
56
   Get_Mail_Server = rsTemp("config")
57
   rsTemp.Close()
58
   Set rsTemp = Nothing
59
End Function
60
 
61
'--------------------------------------------------------------------------------------
5168 dpurdie 62
'Returns the fault email list
63
Function Get_Fault_Email_List()
64
   Dim sqry: sqry = "SELECT * FROM BUILD_SERVICE_CONFIG WHERE SERVICE='FAULT EMAIL ADDRESS LIST'"
65
   Dim rsTemp
66
   Set rsTemp = OraDatabase.DbCreateDynaset( sqry , cint(0) )
67
   Get_Fault_Email_List = rsTemp("config")
68
   rsTemp.Close()
69
   Set rsTemp = Nothing
70
End Function
71
 
72
'--------------------------------------------------------------------------------------
2365 dpurdie 73
'Return a relative path to the server base. Used for relative pathing to 'images'
5357 dpurdie 74
'Assumes server base is two directores below the web serve root (ManageSuite/Release_Manager)
2365 dpurdie 75
Function GetPathToBase()
76
    Dim url,depth,rv,ii
77
    url = request.servervariables("URL")
78
    depth =  len(url) - len(replace(url, "/", ""))
79
    rv = ""
5357 dpurdie 80
    For ii = 4 To depth
2365 dpurdie 81
        rv = rv & "../"
82
    Next
83
    GetPathToBase = rv
84
End Function
85
 
5357 dpurdie 86
' Return a URL to the base of the Manager suite
87
' Assumes this is one directory down from the web server root
88
Function GetManagerSuiteBase
89
    Dim data
90
    data = Split(request.servervariables("URL"),"/")
91
    GetManagerSuiteBase =  "/" & data(1)
92
End Function
93
 
2365 dpurdie 94
'--------------------------------------------------------------------------------------
5143 dpurdie 95
' Determine if a variable or Const exists and is not empty
96
'   Use to check if a vbscript variable has been declared and contains a non-empty value
97
Function isDefined( var)
98
    If (not IsEmpty(Eval(var))) AND Eval(var & " <> """"") Then
99
        isDefined = TRUE
100
    Else
101
        isDefined = FALSE
102
   End If
103
End Function
2365 dpurdie 104
 
5143 dpurdie 105
'--------------------------------------------------------------------------------------
177 brianf 106
archive_server = Get_Archive_Server()
3959 dpurdie 107
MAIL_SERVER = Get_Mail_Server()
5168 dpurdie 108
FAULT_EMAIL_LIST = Get_Fault_Email_List()
2365 dpurdie 109
strRelativePath = GetPathToBase()
5357 dpurdie 110
managerSuiteBase = GetManagerSuiteBase()
119 ghuddy 111
APP_ROOT = Server.MapPath(".")
112
QUERIES_PATH = APP_ROOT &"\queries"
113
scriptName = Mid(Request.ServerVariables("SCRIPT_NAME"), InStrRev(Request.ServerVariables("SCRIPT_NAME"), "/") + 1 )
114
rootPath = Left( Server.MapPath( scriptName ), InStrRev(Server.MapPath( scriptName ), "\") )
115
DocRepositiryLink = DOC_REPOSITORY_URL & "docLinkTo.asp?docnum="
116
DocRepositiryLinkOld = DOC_REPOSITORY_URL & "docLinkTo.asp?old=1&fileid="
5251 dpurdie 117
DocBrowseLink = DOC_REPOSITORY_URL & "docbrowse.asp"
5369 dpurdie 118
FavIcon = strRelativePath & "favicons/RM" & Application("FavIconSuffix") & ".png"
119 ghuddy 119
 
120
' -- Constants ----------------------------------------
5357 dpurdie 121
HTTP_PKG_ARCHIVE        = "http://" & archive_server
122
dpkg_archiveURL         = HTTP_PKG_ARCHIVE & "/dpkg_archive/"
123
release_archiveURL      = HTTP_PKG_ARCHIVE & "/releases/"
124
ACCESS_MANAGER_URL      = ManagerSuiteBase & "/Access_Manager"
125
DEPLOYMENT_MANAGER_URL  = ManagerSuiteBase & "/Deployment_Manager"
126
PRODUCTION_MANAGER_URL  = ManagerSuiteBase & "/Production_Manager"
127
RELEASE_MANAGER_URL     = ManagerSuiteBase & "/Release_Manager"
119 ghuddy 128
%>
129
<%
130
'-- ERROR MESSAGES ---------------------------
131 ghuddy 131
Const enum_MSG_ERROR    = "msg_error.asp"
132
Const enum_WMSG_ERROR   = "wmsg_error.asp"
133
 
134
Const enum_MSG_SELECTED_PACKAGES_NOW_OFFICIAL               = "msg_selected_packages_now_official.asp"
135
Const enum_MSG_PACKAGES_NOT_MADE_OFFICIAL                   = "msg_packages_not_made_official.asp"
136
Const enum_MSG_PACKAGE_NOT_MADE_OFFICIAL                    = "msg_package_not_made_official.asp"
137
Const enum_MSG_PACKAGE_NOT_MADE_OFFICIAL_2                  = "msg_package_not_made_official_2.asp"
138
Const enum_MSG_UNOFFICIAL_DEPENDENCIES                      = "msg_unofficial_dependencies.asp"
139
Const enum_MSG_PACKAGE_CHANGETYPE_INCOMPLETE                = "msg_change_type_incomplete.asp"
140
Const enum_MSG_PACKAGE_SBOMPRIORITY_INCOMPLETE              = "msg_sbom_priority_incomplete.asp"
141
Const enum_MSG_VERSION_EXISTS                               = "msg_version_exists.asp"
142
Const enum_DUPLICATE_RUNTIME_DEPENDENCY                     = "msg_duplicate_runtime_dependency.asp"
143
Const enum_DUPLICATE_BUILD_DEPENDENCIES_IGNORED             = "msg_duplicate_build_dependencies_ignored.asp"
144
Const enum_MSG_BROKEN_DEPENDENCIES_FOUND                    = "msg_broken_dependencies_found.asp"
145
Const enum_MSG_MISSING_DEPENDENCIES                         = "msg_missing_dependencies.asp"
146
Const enum_MSG_UNOFFICIAL_DEPENDENCIES_FOUND                = "msg_unofficial_dependencies_found.asp"
147
Const enum_MSG_RELEASE_IS_NOW_OFFICIAL                      = "msg_release_is_now_official.asp"
148
Const enum_MSG_NEW_UNOFFICIAL_RELEASE_CREATED               = "msg_new_unofficial_release_created.asp"
149
Const enum_MSG_DUPLICATE_AN                                 = "msg_duplicate_an.asp"
150
Const enum_MSG_DUPLICATE_UT                                 = "msg_duplicate_ut.asp"
151
Const enum_MSG_PACKAGE_INFORMATION_INCOMPLETE               = "msg_package_information_incomplete.asp"
1376 dpurdie 152
Const enum_MSG_VCS_INFORMATION_INCOMPLETE                   = "msg_vcs_information_incomplete.asp"
2365 dpurdie 153
Const enum_MSG_VCS_SUBVERSION_CC_MIX                        = "msg_vcs_subversion_cc_mix.asp"
1376 dpurdie 154
Const enum_MSG_VCS_SVN_NOT_PEGGED                           = "msg_vcs_svn_not_pegged.asp"
131 ghuddy 155
Const enum_MSG_AUTOBUILD_PACKAGE_IS_UNCONTROLLED            = "msg_autobuild_package_is_uncontrolled.asp"
129 ghuddy 156
Const enum_MSG_AUTOBUILD_PACKAGE_REQUIRES_BUILD_STD_AND_ENV = "msg_autobuild_package_requires_build_std_and_env.asp"
131 ghuddy 157
Const enum_MSG_UNIT_TESTS_NOT_SUPPLIED                      = "msg_unit_tests_not_supplied.asp"
158
Const enum_MSG_REASON_FOR_THIS_VERSION_NOT_SUPLIED          = "msg_reason_for_this_version_not_suplied.asp"
159
Const enum_MSG_CANNOT_REMOVE_PACKAGE                        = "msg_cannot_remove_package.asp"
160
Const enum_MSG_PACKAGE_IN_USE                               = "msg_package_in_use.asp"
161
Const enum_MSG_PROCESS_EXISTS                               = "msg_process_exists.asp"
162
Const enum_MSG_LICENCE_EXISTS                               = "msg_licence_exists.asp"
163
Const enum_MSG_NO_LICENCES_EXIST                            = "msg_no_licences.asp"
164
Const enum_MSG_PACKAGE_VERSION_EXISTS                       = "msg_package_version_exists.asp"
165
Const enum_MSG_PACKAGE_WIP_EXISTS                           = "msg_package_wip_exists.asp"
166
Const enum_MSG_PACKAGE_VERSION_INVALID                      = "msg_package_version_invalid.asp"
167
Const enum_MSG_CANNOT_AUTO_GENERATE_COTS_PKG                = "msg_cannot_auto_generate_cots_pkg.asp"
168
Const enum_MSG_VCS_EXISTS                                   = "msg_vcs_exists.asp"
151 ghuddy 169
Const enum_MSG_PACKAGE_WIP_EXISTS_BULK_RELEASE              = "msg_package_wip_exists_bulk_release.asp"
170
Const enum_MSG_PERMISSION_PROBLEMS_BULK_RELEASE             = "msg_permission_problems_bulk_release.asp"
119 ghuddy 171
'---------------------------------------------
172
%>
173
<%
174
'-- ICONS ------------------------------------
131 ghuddy 175
Const enum_imgBlank               = "<img src='images/h_trsp_dot.gif' width='19' height='17' border='0'>"
183 brianf 176
Const enum_imgCritical            = "<img src='images/s_critical.gif' width='19' height='17' border='0' title='Not ready to be built.  Dependent packages, with a major or minor version, require building'>"
177
Const enum_imgDeprecated          = "<img src='images/bomb.gif' width='19' height='17' border='0' title='Deprecated'>"
178
Const enum_imgProductRejected     = "<img src='icons/i_product_rejected.gif' width='19' height='17' border='0' title='Rejected'>"
179
Const enum_imgDeprecatedDependent = "<img src='images/bomb_dependant.gif' width='19' height='17' border='0' title='Dependent deprecated'>"
180
Const enum_imgCReady              = "<img src='images/s_update_critical.gif' width='19' height='17' border='0' title='Ready to build, however at least one dependency has been superseded with a major or minor version'>"
181
Const enum_imgAR                  = "<img src='images/i_advisory_ripple.gif' width='19' height='17' border='0' title='Marked as advisory ripple'>"
182
Const enum_imgARD                 = "<img src='images/s_advisory_ripple_dependant.png' width='19' height='17' border='0' title='Dependent marked as advisory ripple'>"
183
Const enum_imgWarning             = "<img src='images/s_warning.gif' width='19' height='17' border='0' title='Not ready to be built.  Dependent packages, with a patch version, require building'>"
184
Const enum_imgWReady              = "<img src='images/s_update_warning.gif' width='19' height='17' border='0' title='Ready to build, however at least one dependency has been superseded with a patch version'>"
185 brianf 185
Const enum_imgBuilding            = "<img src='images/s_gear.gif' width='19' height='17' border='0' title='Work in progress'>"
183 brianf 186
Const enum_imgNotFound            = "<img src='images/s_not_found.gif' width='19' height='17' border='0' title='Not found'>"
131 ghuddy 187
Const enum_imgIgnoring            = "<img src='images/s_ignoring.gif' width='15' height='15' border='0' title='Latest version is ignored'>"
188
Const enum_imgPatchIgnoring       = "<img src='images/s_patch_ignoring.gif' width='19' height='17' border='0' title='Latest version is included in a patch'>"
189
Const enum_imgPatchAvailable      = "<img src='images/s_patch_available.gif' width='19' height='17' border='0' title='New patch is required'>"
190
Const enum_imgPatch               = "<img src='images/i_patch.gif' width='18' height='23' border='0' align='absmiddle' hspace='5' title='This is a patch'>"
191
Const enum_imgPatchObsolete       = "<img src='images/i_patch_obsolete.gif' width='18' height='23' border='0' align='absmiddle' hspace='5' title='Patch is obsolete'>"
183 brianf 192
Const enum_imgUser                = "<img src='images/i_user.gif' width='10' height='13' hspace='2' border='0' align='absmiddle' title='User'>"
193
Const enum_imgGreenPin            = "<img src='images/i_green_pin.gif' width='19' height='17' border='0' title='Pegged to prevent it being ripple built'>"
194
Const enum_imgPending             = "<img src='icons/i_pending.gif' width='12' height='14' border='0' title='Package Pending'>"
4390 dpurdie 195
Const enum_imgReleasedLocked      = "<img src='images/i_locked.gif' width='13' height='15' border='0' title='Released and locked'>"
196
Const enum_imgReleasedUnlocked    = "<img src='images/i_unlocked.gif' width='16' height='15' border='0' title='Released and unlocked'>"
4710 dpurdie 197
Const enum_imgNotInArchive        = "<img src='images/s_package_not_present.gif' width='16' height='15' border='0' title='Not found in archive'>"
4764 dpurdie 198
Const enum_imgNotInRelease        = "<img src='images/s_not_inrelease.gif' width='16' height='15' border='0' title='This Version is not a member of this Release'>"
5080 dpurdie 199
Const enum_imgSdkImport           = "<img src='images/i_sdkpkg.png' width='15' height='15' border='0' title='This version imported via an SDK'>"
200
Const enum_imgSdkDep              = "<img src='images/i_sdkdep.png' width='15' height='15' border='0' title='Not Found. Is a dependency only of the SDK and not required to be in this release.'>"
131 ghuddy 201
 
4390 dpurdie 202
 
119 ghuddy 203
'-- ICONS SMALL ------------------------------
131 ghuddy 204
Const enum_SMALL_imgOK           = "<img src='images/si_ok.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
205
Const enum_SMALL_imgCritical     = "<img src='images/si_critical.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
206
Const enum_SMALL_imgCReady       = "<img src='images/si_update_critical.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
207
Const enum_SMALL_imgWarning      = "<img src='images/si_warning.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
208
Const enum_SMALL_imgWReady       = "<img src='images/si_update_warning.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
209
Const enum_SMALL_imgBuilding     = "<img src='images/si_gear.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
210
Const enum_SMALL_imgNotFound     = "<img src='images/si_not_found.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
129 ghuddy 211
'-- VERSION CONTROL CONSTANTS ------------------------------
131 ghuddy 212
Const enum_VCS_UNCONTROLLED_TAG  = "UC"
213
Const enum_VCS_CLEARCASE_TAG     = "CC"
214
Const enum_VCS_SUBVERSION_TAG    = "SVN"
139 ghuddy 215
Const enum_VCS_CVS_TAG           = "CVS"
149 ghuddy 216
 
147 ghuddy 217
'-- OP CODES for DAEMON INSTRUCTIONS, both in terms of strings and integers -------------------------------------------
149 ghuddy 218
'
219
'-- When adding to these, always update daemon_instructions.asp accordingly.
220
'-- Sometimes it might be necessary to update wAddDaemonInstruction.asp as well.
221
 
222
'-- human readable string names
147 ghuddy 223
Const OP_CODE_0_STR = "Ripple Build Package"          ' Corresponds to OP_CODE_0_RIPPLE_BUILD_PACKAGE
149 ghuddy 224
Const OP_CODE_1_STR = "Test Build Package"            ' Corresponds to OP_CODE_1_TEST_BUILD_PACKAGE
147 ghuddy 225
 
149 ghuddy 226
'-- equivalent integer values for use in query strings
147 ghuddy 227
Const OP_CODE_0_RIPPLE_BUILD_PACKAGE = "0"
149 ghuddy 228
Const OP_CODE_1_TEST_BUILD_PACKAGE   = "1"
147 ghuddy 229
 
167 brianf 230
'-- PACKAGE AREA CONSTANTS ------------------------------
231
Const enum_PKG_AREA_WIP = 0
232
Const enum_PKG_AREA_PLANNED = 1
233
Const enum_PKG_AREA_RELEASED = 2
234
 
171 brianf 235
'-- BUILD DAEMON STATE CONSTANTS ------------------------------
236
Const enum_DAEMON_ENABLE = NULL
237
Const enum_DAEMON_PAUSE = 1
238
Const enum_DAEMON_DISABLE = 2
239
 
5168 dpurdie 240
'-- Windows event logger types --------------------------------
241
' Used in Raise_Event
242
Const enumEVENT_SUCCESS = 0
243
Const enumEVENT_ERROR = 1
244
Const enumEVENT_WARNING = 2
245
Const enumEVENT_INFORMATION = 4
246
 
119 ghuddy 247
%>