Subversion Repositories DevTools

Rev

Rev 1499 | Rev 3866 | Go to most recent revision | Details | Compare with Previous | 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
13
Dim DocRepositiryLink, DocRepositiryLinkOld
14
Dim APP_ROOT, QUERIES_PATH
177 brianf 15
Dim archive_server
16
Dim dpkg_archiveURL
17
Dim deploy_archiveURL
18
Dim HTTP_PKG_ARCHIVE
1317 dpurdie 19
Dim release_archiveURL
20
Dim ACCESS_MANAGER_URL
1499 dpurdie 21
Dim strRelativePath             ' Rel Path from script to URL
1317 dpurdie 22
 
119 ghuddy 23
' -- Variable Initialisation --------------------------
24
'Set OraSession = CreateObject("OracleInProcServer.XOraSession")
25
'OraSession.CreateDatabasePool 1,2,1, TNS_NAME, DB_AUTHENTICATION, 0
26
'Set OraDatabase = OraSession.GetDatabaseFromPool(5000)
27
 
28
'Set OraSession = Application("ORA_SESSION")
131 ghuddy 29
'Set OraDatabase =    OraSession.GetDatabaseFromPool(5000)
119 ghuddy 30
Set OraSession = CreateObject("OracleInProcServer.XOraSession")
31
Set OraDatabase = OraSession.OpenDatabase( TNS_NAME, DB_AUTHENTICATION, Cint(0))
32
 
177 brianf 33
'--------------------------------------------------------------------------------------
34
'Returns the server of the package archive
35
Function Get_Archive_Server()
36
   Dim sqry: sqry = "SELECT * FROM BUILD_SERVICE_CONFIG WHERE SERVICE='ARCHIVE SERVER'"
37
   Dim rsTemp
38
   Set rsTemp = OraDatabase.DbCreateDynaset( sqry , cint(0) )
39
   Get_Archive_Server = rsTemp("config")
40
   rsTemp.Close()
41
   Set rsTemp = Nothing
42
End Function
119 ghuddy 43
 
177 brianf 44
'--------------------------------------------------------------------------------------
1499 dpurdie 45
'Return a relative path to the server base. Used for relative pathing to 'images'
2362 dpurdie 46
'Assumes server base is in a directory called Release_Manager
1499 dpurdie 47
Function GetPathToBase()
48
    Dim url,depth,rv,ii
49
    url = request.servervariables("URL")
50
    url = Mid(url,Instr(url, "Release_Manager"))
51
    depth =  len(url) - len(replace(url, "/", ""))
52
    rv = ""
53
    For ii = 2 To depth
54
        rv = rv & "../"
55
    Next
56
    GetPathToBase = rv
57
End Function
58
 
59
'--------------------------------------------------------------------------------------
60
 
177 brianf 61
archive_server = Get_Archive_Server()
1499 dpurdie 62
strRelativePath = GetPathToBase()
119 ghuddy 63
APP_ROOT = Server.MapPath(".")
64
QUERIES_PATH = APP_ROOT &"\queries"
65
scriptName = Mid(Request.ServerVariables("SCRIPT_NAME"), InStrRev(Request.ServerVariables("SCRIPT_NAME"), "/") + 1 )
66
rootPath = Left( Server.MapPath( scriptName ), InStrRev(Server.MapPath( scriptName ), "\") )
67
DocRepositiryLink = DOC_REPOSITORY_URL & "docLinkTo.asp?docnum="
68
DocRepositiryLinkOld = DOC_REPOSITORY_URL & "docLinkTo.asp?old=1&fileid="
69
 
70
' -- Constants ----------------------------------------
1317 dpurdie 71
Const domainName   = "VIX"
72
HTTP_PKG_ARCHIVE   = "http://" & archive_server
73
dpkg_archiveURL    = HTTP_PKG_ARCHIVE & "/dpkg_archive/"
74
deploy_archiveURL  = HTTP_PKG_ARCHIVE & "/deploy_archive/"
75
release_archiveURL = HTTP_PKG_ARCHIVE & "/releases/"
76
ACCESS_MANAGER_URL = "http://" & Request.ServerVariables("HTTP_HOST") & "/Access_Manager"
77
' Const ACCESS_MANAGER_URL = "http://bms:8002/ManagerSuite/Access_Manager"
78
' Const RELEASE_MANAGER_URL = "http://bms:8002/ManagerSuite/Release_Manager"
119 ghuddy 79
 
80
' -- User Roles ---------------------------------------
81
' S -> System Admin ( Full access to system for data alteration )
82
' A -> Administrator (Full access to data manipulation)
83
' P -> Power User (Ability to make release official, no access to ADMIN menu)
84
%>
85
<%
86
'-- ERROR MESSAGES ---------------------------
131 ghuddy 87
Const enum_MSG_ERROR    = "msg_error.asp"
88
Const enum_WMSG_ERROR   = "wmsg_error.asp"
89
 
90
Const enum_MSG_SELECTED_PACKAGES_NOW_OFFICIAL               = "msg_selected_packages_now_official.asp"
91
Const enum_MSG_PACKAGES_NOT_MADE_OFFICIAL                   = "msg_packages_not_made_official.asp"
92
Const enum_MSG_PACKAGE_NOT_MADE_OFFICIAL                    = "msg_package_not_made_official.asp"
93
Const enum_MSG_PACKAGE_NOT_MADE_OFFICIAL_2                  = "msg_package_not_made_official_2.asp"
94
Const enum_MSG_UNOFFICIAL_DEPENDENCIES                      = "msg_unofficial_dependencies.asp"
95
Const enum_MSG_PACKAGE_CHANGETYPE_INCOMPLETE                = "msg_change_type_incomplete.asp"
96
Const enum_MSG_PACKAGE_SBOMPRIORITY_INCOMPLETE              = "msg_sbom_priority_incomplete.asp"
97
Const enum_MSG_VERSION_EXISTS                               = "msg_version_exists.asp"
98
Const enum_DUPLICATE_RUNTIME_DEPENDENCY                     = "msg_duplicate_runtime_dependency.asp"
99
Const enum_DUPLICATE_BUILD_DEPENDENCIES_IGNORED             = "msg_duplicate_build_dependencies_ignored.asp"
100
Const enum_MSG_BROKEN_DEPENDENCIES_FOUND                    = "msg_broken_dependencies_found.asp"
101
Const enum_MSG_MISSING_DEPENDENCIES                         = "msg_missing_dependencies.asp"
102
Const enum_MSG_UNOFFICIAL_DEPENDENCIES_FOUND                = "msg_unofficial_dependencies_found.asp"
103
Const enum_MSG_RELEASE_IS_NOW_OFFICIAL                      = "msg_release_is_now_official.asp"
104
Const enum_MSG_RELEASE_IS_NOW_LOCKED                        = "msg_release_is_now_locked.asp"
105
Const enum_MSG_RELEASE_IS_UNLOCKED                          = "msg_release_is_unlocked.asp"
106
Const enum_MSG_NEW_UNOFFICIAL_RELEASE_CREATED               = "msg_new_unofficial_release_created.asp"
107
Const enum_MSG_DUPLICATE_AN                                 = "msg_duplicate_an.asp"
108
Const enum_MSG_DUPLICATE_UT                                 = "msg_duplicate_ut.asp"
109
Const enum_MSG_PACKAGE_INFORMATION_INCOMPLETE               = "msg_package_information_incomplete.asp"
1339 dpurdie 110
Const enum_MSG_VCS_INFORMATION_INCOMPLETE                   = "msg_vcs_information_incomplete.asp"
2362 dpurdie 111
Const enum_MSG_VCS_SUBVERSION_CC_MIX                        = "msg_vcs_subversion_cc_mix.asp"
1372 dpurdie 112
Const enum_MSG_VCS_SVN_NOT_PEGGED                           = "msg_vcs_svn_not_pegged.asp"
131 ghuddy 113
Const enum_MSG_AUTOBUILD_PACKAGE_IS_UNCONTROLLED            = "msg_autobuild_package_is_uncontrolled.asp"
129 ghuddy 114
Const enum_MSG_AUTOBUILD_PACKAGE_REQUIRES_BUILD_STD_AND_ENV = "msg_autobuild_package_requires_build_std_and_env.asp"
131 ghuddy 115
Const enum_MSG_UNIT_TESTS_NOT_SUPPLIED                      = "msg_unit_tests_not_supplied.asp"
116
Const enum_MSG_REASON_FOR_THIS_VERSION_NOT_SUPLIED          = "msg_reason_for_this_version_not_suplied.asp"
117
Const enum_MSG_CANNOT_REMOVE_PACKAGE                        = "msg_cannot_remove_package.asp"
118
Const enum_MSG_PACKAGE_IN_USE                               = "msg_package_in_use.asp"
119
Const enum_MSG_RELEASE_IS_IN_OPEN_MODE                      = "msg_release_is_in_open_mode.asp"
120
Const enum_MSG_RELEASE_IS_IN_RESTRICTIVE_MODE               = "msg_release_is_in_restrictive_mode.asp"
121
Const enum_MSG_RELEASE_IS_IN_CLOSED_MODE                    = "msg_release_is_in_closed_mode.asp"
122
Const enum_MSG_PROCESS_EXISTS                               = "msg_process_exists.asp"
123
Const enum_MSG_GBE_MACHTYPE_EXISTS                          = "msg_machtype_exists.asp"
124
Const enum_MSG_LICENCE_EXISTS                               = "msg_licence_exists.asp"
125
Const enum_MSG_NO_LICENCES_EXIST                            = "msg_no_licences.asp"
126
Const enum_MSG_PACKAGE_VERSION_EXISTS                       = "msg_package_version_exists.asp"
127
Const enum_MSG_PACKAGE_WIP_EXISTS                           = "msg_package_wip_exists.asp"
128
Const enum_MSG_PACKAGE_VERSION_INVALID                      = "msg_package_version_invalid.asp"
129
Const enum_MSG_CANNOT_AUTO_GENERATE_COTS_PKG                = "msg_cannot_auto_generate_cots_pkg.asp"
130
Const enum_MSG_VCS_EXISTS                                   = "msg_vcs_exists.asp"
151 ghuddy 131
Const enum_MSG_PACKAGE_WIP_EXISTS_BULK_RELEASE              = "msg_package_wip_exists_bulk_release.asp"
132
Const enum_MSG_PERMISSION_PROBLEMS_BULK_RELEASE             = "msg_permission_problems_bulk_release.asp"
119 ghuddy 133
'---------------------------------------------
134
%>
135
<%
136
'-- ICONS ------------------------------------
131 ghuddy 137
Const enum_imgBlank               = "<img src='images/h_trsp_dot.gif' width='19' height='17' border='0'>"
183 brianf 138
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'>"
139
Const enum_imgDeprecated          = "<img src='images/bomb.gif' width='19' height='17' border='0' title='Deprecated'>"
140
Const enum_imgProductRejected     = "<img src='icons/i_product_rejected.gif' width='19' height='17' border='0' title='Rejected'>"
141
Const enum_imgDeprecatedDependent = "<img src='images/bomb_dependant.gif' width='19' height='17' border='0' title='Dependent deprecated'>"
142
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'>"
143
Const enum_imgAR                  = "<img src='images/i_advisory_ripple.gif' width='19' height='17' border='0' title='Marked as advisory ripple'>"
144
Const enum_imgARD                 = "<img src='images/s_advisory_ripple_dependant.png' width='19' height='17' border='0' title='Dependent marked as advisory ripple'>"
145
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'>"
146
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 147
Const enum_imgBuilding            = "<img src='images/s_gear.gif' width='19' height='17' border='0' title='Work in progress'>"
183 brianf 148
Const enum_imgNotFound            = "<img src='images/s_not_found.gif' width='19' height='17' border='0' title='Not found'>"
131 ghuddy 149
Const enum_imgIgnoring            = "<img src='images/s_ignoring.gif' width='15' height='15' border='0' title='Latest version is ignored'>"
150
Const enum_imgPatchIgnoring       = "<img src='images/s_patch_ignoring.gif' width='19' height='17' border='0' title='Latest version is included in a patch'>"
151
Const enum_imgPatchAvailable      = "<img src='images/s_patch_available.gif' width='19' height='17' border='0' title='New patch is required'>"
152
Const enum_imgPatch               = "<img src='images/i_patch.gif' width='18' height='23' border='0' align='absmiddle' hspace='5' title='This is a patch'>"
153
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 154
Const enum_imgUser                = "<img src='images/i_user.gif' width='10' height='13' hspace='2' border='0' align='absmiddle' title='User'>"
155
Const enum_imgGreenPin            = "<img src='images/i_green_pin.gif' width='19' height='17' border='0' title='Pegged to prevent it being ripple built'>"
156
Const enum_imgPending             = "<img src='icons/i_pending.gif' width='12' height='14' border='0' title='Package Pending'>"
131 ghuddy 157
 
119 ghuddy 158
'-- ICONS SMALL ------------------------------
131 ghuddy 159
Const enum_SMALL_imgOK           = "<img src='images/si_ok.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
160
Const enum_SMALL_imgCritical     = "<img src='images/si_critical.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
161
Const enum_SMALL_imgCReady       = "<img src='images/si_update_critical.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
162
Const enum_SMALL_imgWarning      = "<img src='images/si_warning.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
163
Const enum_SMALL_imgWReady       = "<img src='images/si_update_warning.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
164
Const enum_SMALL_imgBuilding     = "<img src='images/si_gear.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
165
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 166
'-- VERSION CONTROL CONSTANTS ------------------------------
131 ghuddy 167
Const enum_VCS_UNCONTROLLED_TAG  = "UC"
168
Const enum_VCS_CLEARCASE_TAG     = "CC"
169
Const enum_VCS_SUBVERSION_TAG    = "SVN"
139 ghuddy 170
Const enum_VCS_CVS_TAG           = "CVS"
149 ghuddy 171
 
147 ghuddy 172
'-- OP CODES for DAEMON INSTRUCTIONS, both in terms of strings and integers -------------------------------------------
149 ghuddy 173
'
174
'-- When adding to these, always update daemon_instructions.asp accordingly.
175
'-- Sometimes it might be necessary to update wAddDaemonInstruction.asp as well.
176
 
177
'-- human readable string names
147 ghuddy 178
Const OP_CODE_0_STR = "Ripple Build Package"          ' Corresponds to OP_CODE_0_RIPPLE_BUILD_PACKAGE
149 ghuddy 179
Const OP_CODE_1_STR = "Test Build Package"            ' Corresponds to OP_CODE_1_TEST_BUILD_PACKAGE
147 ghuddy 180
 
149 ghuddy 181
'-- equivalent integer values for use in query strings
147 ghuddy 182
Const OP_CODE_0_RIPPLE_BUILD_PACKAGE = "0"
149 ghuddy 183
Const OP_CODE_1_TEST_BUILD_PACKAGE   = "1"
147 ghuddy 184
 
167 brianf 185
'-- PACKAGE AREA CONSTANTS ------------------------------
186
Const enum_PKG_AREA_WIP = 0
187
Const enum_PKG_AREA_PLANNED = 1
188
Const enum_PKG_AREA_RELEASED = 2
189
 
171 brianf 190
'-- BUILD DAEMON STATE CONSTANTS ------------------------------
191
Const enum_DAEMON_ENABLE = NULL
192
Const enum_DAEMON_PAUSE = 1
193
Const enum_DAEMON_DISABLE = 2
194
 
119 ghuddy 195
%>