Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhengyouwei
9 years ago
Commit
9a2d8dfe3db6d2e9a7c3efde6b8d9de1251f729f
1 parent
dc504d99
update user
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
monitor-ui-ctrl/src/main/java/com/ui/ctrl/ProjectBuildCtrl.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/ProjectBuildCtrl.java
View file @
9a2d8df
...
...
@@ -119,8 +119,8 @@ public class ProjectBuildCtrl {
@ResponseBody
public
String
build
(
@RequestBody
BuildRequest
request
,
HttpSession
session
)
{
try
{
String
user
=
String
.
valueOf
(
session
.
getAttribute
(
"user"
));
request
.
setUser
(
user
);
User
user
=
(
User
)
session
.
getAttribute
(
"user"
);
request
.
setUser
(
user
.
getName
());
return
httpRestClient
.
post
(
ProjectEnvironment
.
getUrl
(
request
.
getEnvironment
())
+
"build"
,
request
,
String
.
class
);
}
catch
(
Exception
ex
)
{
return
"failed"
;
...
...
Please
register
or
login
to post a comment