Jump to content

manish

Members
  • Posts

    18
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1,098 profile views

manish's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello @manu, just curious on any update for this? We had very useful server side commit triggers for our local plastic server. We moved to the cloud repo a couple of months ago and are missing those utilities. We would love to see server side triggers (even just the server side commit triggers) in the cloud! Or an equivalent to allow for emails/slack posts/etc upon commit. Thanks!
  2. manish

    Plastic 6

    @manu Just an update I was finally able to successfully port over to the new server from linux plastic 5.4 to windows plastic 6. I just set up replication from one to the other then switched everyone to point to the new one. This post helped greatly to get everyone's existing workspace to point to the new repo I did have another question...is there a way to double-check there is (or is not) any plastic server activity before doing something like rebooting the server machine or stop/restarting the server service?
  3. manish

    Plastic 6

    HI @manu, thanks! I think i may be able to do the replication, that's using the setup in the docs right? My only question is about setting up the second server on the new target windows box. Do I need a second plastic license to do that? I believe we already used up a free 5 day trial on it when we were first playing around.
  4. manish

    Plastic 6

    Great thanks @manu, one more question.... Is there any significant performance difference between running Plastic with Jet on Linux over Windows? For various reasons, we are entertaining moving from Linux to Windows but not if there'll be a big hit... thanks!
  5. manish

    Plastic 6

    Thanks for the response! I've been keeping up with the blog and things. I guess what I was looking for is the "official" stuff which you said is yet to be announced. I did have some follow-ups regarding Jet after re-reading a lot of stuff.. We use Plastic server on a Linux box with a MySQL database. Our main repo (Unity3D) is about 5 gigs and growing. We can easily see it get to 10 gb. With that said... 1. Is Jet going to be better for us on Linux than using MySQL? Or is MySQL still better for our setup? 2. Is there a Jet db conversion tool for Linux? Thanks! -manish
  6. manish

    Plastic 6

    Hello, I loved the almost weekly releases for plastic, but I've noticed it's been almost a month since the last one. It appears the weekly releases have been going on in the Labs sections for Plastic 6. I've tried to search for documentation or notices about version 6 but my searches have been unsuccessful aside from a few forum posts with people trying it out. I'm not sure if it's really not there or my searching is incorrect. Is there a launch date for version 6? Aside from having to parse through tons of labs release notes, is there any documentation on what it's all about, the jet engine underneath is all about and options for porting (without having to download and try it out blindly first)? We love plastic but I feel lost suddenly on whats happening or about to happen. Thanks!
  7. It's been a while, any does anyone have any guidance? I cannot see what is wrong with the setup of the trigger. Please help! -manish
  8. Hey manu, I figured it out. I forgot the "python " prefix before the script file name for the cm maketrigger --file argument. Now it works! However, I am now trying something new and i cannot get it working. I am trying to access the standard input passed to the before-checkin trigger and i cannot get it to come out of an infinite loop. It is as if plastic is not sending it an EOF, which is causing the standard input read/readline functions to never stop. I have tried this both in Python and Ruby with the same errors. We are using the latest to date version 5.4.16.771 on CentOS Linux release 7.2.1511 in python, doing a sys.stdin.readlines() i would expect to get me all of them at once in an array but it hangs, assuming because it doesn't know that the input is finished. If i hardcode a message in the sys.stdin.write (python) or STDOUT.print (ruby) and then do exit(1), i can get that back to the clients. To test, I also tried doing a hardcoded step by step call of readline and it would work until the number of calls to that method was less than the number of lines in the standard input. For example, I was commiting one file change, which gave back 3 lines in the std input. so doing sys.stdin.read sys.stdin.read sys.stdin.read worked just fine, but when i added the 4th sys.stdin.read sys.stdin.read sys.stdin.read sys.stdin.read then it would hang forever Here are is my simple test ruby script that hangs ------ RUBY------- #!/usr/bin/env ruby msg = "WHOOOO" # Process stdin STDIN.readlines.each do |line| msg += line end # each STDOUT.print msg exit(1)
  9. Hello, I have been successfully using a server-side after-checkin trigger and was trying to implement a server-side before-checkin trigger and am getting the following error on the client: "Error trying to run trigger before-checkin commit-comment-check ApplicationName="/opt/plasticscm_triggers/before_commit_comment_check.py", CommandLine="", CurrentDirectory='/opt/plasticscm_triggers", Native error= Access denied." This is my current trigger setup (the first two successfully run, and are in the same location as the last one that fails) cm ltr 1 slack unitydevs python @TRIGGERS_PATH/after_commit_slack_unitydevs_notif.py manish after-checkin rep:unityclient,* 2 slack unitydevs python @TRIGGERS_PATH/after_commit_slack_unitydevs_notif.py manish after-checkin rep:newterra,* 1 commit-comment-check @TRIGGERS_PATH/before_commit_comment_check.py manish before-checkin rep:testrepo,* They have the same permissions ls -l -rw-r--r--. 1 root root 625 Sep 29 15:47 after_commit_slack_unitydevs_notif.py -rw-r--r--. 1 root root 171 Feb 25 11:58 before_commit_comment_check.py This is the content of the "before_commit_comment_check.py" file: #! /usr/bin/python import sys import os message = os.environ['PLASTIC_COMMENT'] if len(message) >= 10: sys.exit(0) else: sys.exit(1) What am I doing wrong? Is the client machine looking for the trigger on itself? I wouldn't image so since the client-side before check in trigger is a completely different type name. It's more confusing since the after-checkin trigger has always worked and continues to work...
×
×
  • Create New...