Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


spetitlucine last won the day on February 19

spetitlucine had the most liked content!

Community Reputation

1 Neutral

About spetitlucine

  • Rank
  1. Hi Olliblanks, you're right i'm using teamcity 2020.2.2. So i'm waiting for your update. Any idea of the release date ? Do you have a more recent tutorial for using merge bots with TC ? I wanted to know if the TC plan that i indicate to the bot to launch must have the plastic mergebot build runner as first step of build. It is not really clear for me. Moreover, when i have a TC project with multiple plans in it how should i indicate the plan to run to the bot ? Project:Plan ? Thanks by advance. Stéphane
  2. Hello, i would like to know where i can find a documentation on how to use trunk merge bot with teamcity. I try to make a trunk merge bot that merge from task branch in the father branch executing a teamcity plan to test merge integrity, but i have no success, the bot starts when i set the branch as resolved but my teamcity plan is not executed and i got an error in the trunk bot log file, leading to a failed status in the branch i want to merge automatically. The error is like the following 2021-02-23 15:00:13,021 INFO trunkbot - TrunkBot [Ben] started. Version [] 2021-02-23 15:00:13,274 INFO trunkbot - Retrieving branches to process... 2021-02-23 15:00:13,337 INFO websocket - TrunkBot [Ben] connected! 2021-02-23 15:00:28,629 INFO trunkbot - Processing branch /main/Prod/Test/Dev/JIRA_feature4 attribute change... 2021-02-23 15:00:28,632 INFO trunkbot - Getting task number of branch /main/Prod/Test/Dev/JIRA_feature4 ... 2021-02-23 15:00:28,643 INFO trunkbot - Building the merge report of task _feature4 ... 2021-02-23 15:00:28,670 INFO trunkbot - Trying to shelve server-side-merge from /main/Prod/Test/Dev/JIRA_feature4 to /main/Prod/Test/Dev 2021-02-23 15:00:28,735 INFO trunkbot - Testing branch /main/Prod/Test/Dev/JIRA_feature4 ... 2021-02-23 15:00:29,050 ERROR RestApi - Unable to read the error response: Object reference not set to an instance of an object. 2021-02-23 15:00:29,062 ERROR RestApi - Unable to retrieve CI plan status. The server returned: The remote server returned an error: (404) Not Found.. The requested element doesn't exist. 2021-02-23 15:00:29,063 WARN RestApi - An error occurred trying to query the get plan status endpoint /api/v1/ci/TeamCity//plan/RepoTemplate%3ARepoTemplate 2021-02-23 15:00:29,063 WARN RestApi - Falling back to the legacy get plan status endpoint /api/v1/ci/TeamCity/RepoTemplate%3ARepoTemplate/ 2021-02-23 15:00:29,065 ERROR RestApi - Unable to read the error response: Object reference not set to an instance of an object. 2021-02-23 15:00:29,066 ERROR RestApi - Unable to retrieve CI plan status - deprecated. The server returned: The remote server returned an error: (404) Not Found.. The requested element doesn't exist. 2021-02-23 15:00:29,066 ERROR trunkbot - The attempt to process task _feature4 failed for branch /main/Prod/Test/Dev/JIRA_feature4: One or more errors occurred. (The remote server returned an error: (404) Not Found.) 2021-02-23 15:00:29,116 INFO trunkbot - Branch /main/Prod/Test/Dev/JIRA_feature4 processing failed. it seems related to the way i have named the plan to launch but not sure. Any advice ? Thanks by advance Stéphane
  3. I finally found my error in the directory name containing the allrepos/jira.conf... sorry for the inconvience... It works now ! Stéphane
  4. Hello, i'm trying to get PlasticSCM works on Mac as it works for PC. We need Jira integration in our production pipeline and it works well on PC. I've seen that there's no configuration window on mac to setup plastic scm link with jira. So i followed the given tutorial at https://www.plasticscm.com/documentation/extensions/plastic-scm-version-control-task-and-issue-tracking-guide#Jiraintegration By the way, there's a mistake in path of the client.conf configuration <Extensions> <Extension AssemblyFile="plasticscm_install_path/client/extensions/jira/jiraextension.dll" /> </Extensions> should be <Extensions> <Extension AssemblyFile="/Application/PlasticSCM.app/Contents/MonoBundle/extensions/jira/jiraextension.dll" /> </Extensions> my client.conf is adapted as following (just added the previous lines at the end) <?xml version="1.0"?> <ClientConfigData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Language>fr</Language> <WorkspaceServer>myserverurlandport</WorkspaceServer> <WorkingMode>LDAPWorkingMode</WorkingMode> <SecurityConfig>securityconfig</SecurityConfig> <CurrentWorkspace>/Users/stephane/wkspaces/SampleRepo</CurrentWorkspace> <MergeTools> <MergeToolData> <FileType>enTextFile</FileType> <FileExtensions>*</FileExtensions> <Tools> <string>/usr/local/bin/macmergetool -b="@basefile" -bn="@basesymbolic" -bh="@basehash" -s="@sourcefile" -sn="@sourcesymbolic" -sh="@sourcehash" -d="@destinationfile" -dn="@destinationsymbolic" -dh="@destinationhash" -a -r="@output" -t="@filetype" -i="@comparationmethod" -e="@fileencoding" -m="@mergetype" -re="@resultencoding" --progress="@progress" --extrainfofile="@extrainfofile"</string> </Tools> </MergeToolData> </MergeTools> <DiffTools> <DiffToolData> <FileType>enTextFile</FileType> <FileExtensions>*</FileExtensions> <Tools> <string>/usr/local/bin/macmergetool -s="@sourcefile" -sn="@sourcesymbolic" -d="@destinationfile" -dn="@destinationsymbolic" -t="@filetype" -i="@comparationmethod" -e="@fileencoding"</string> </Tools> </DiffToolData> </DiffTools> <ShowPerformanceWarnings>yes</ShowPerformanceWarnings> <MergeWithPendingChanges>no</MergeWithPendingChanges> <StackTrace>no</StackTrace> <SetFilesAsReadOnly>no</SetFilesAsReadOnly> <SetRevisionFileDate>no</SetRevisionFileDate> <SupportSmbWorkspaces>no</SupportSmbWorkspaces> <PerformAddPlusCi>no</PerformAddPlusCi> <CheckFileContentForChanged>no</CheckFileContentForChanged> <CaseSensitiveFsOnMac>no</CaseSensitiveFsOnMac> <SameItemDifferentCaseError>no</SameItemDifferentCaseError> <CheckinQueuesSize>50</CheckinQueuesSize> <DownloadPoolSize>6</DownloadPoolSize> <LastRunningEdition>team_or_enterprise</LastRunningEdition> <Extensions> <Extension AssemblyFile="/Applications/PlasticSCM.app/Contents/MonoBundle/extensions/jira/jiraextension.dll" /> </Extensions> </ClientConfigData> and my jira.conf in ~/.Plastic4/issuetrackers/sll_serverurl_port/allrepos contains a jira.conf file with the following data WorkingMode=TaskOnBranch Name=Host;Value=ourjiraurl/;Type=Host;IsGlobal=True Name=User name;Value=myjiraemail;Type=User;IsGlobal=False Name=Password;Value=myjiratoken;Type=Password;IsGlobal=False Name=Branch prefix;Value=;Type=BranchPrefix;IsGlobal=True Name=Project Key;Value=MULTIPLE_PROJECTS;Type=Text;IsGlobal=True Name=Custom Field ID;Value=;Type=Text;IsGlobal=True Name=Use LDAP credentials if available;Value=False;Type=Boolean;IsGlobal=False Name=Use default proxy credentials;Value=False;Type=Boolean;IsGlobal=False Name=Issue query limit;Value=50;Type=Text;IsGlobal=False Name=Resolved issue states;Value=Done;Type=Text;IsGlobal=False Name=Issue types;Value=;Type=Text;IsGlobal=False Name=Fields mapping;Value=;Type=Text;IsGlobal=False Name=REST URL;Value=/rest/api/2/;Type=Text;IsGlobal=True Name=Task URL;Value=/browse/;Type=Text;IsGlobal=True Name=Status transitions;Value=[DONE]-Done;Type=Text;IsGlobal=True when trying to create a branch it calls the jiraextension but i get an exception Invalid URI the format of the URI could not be determined. the log file indicates the following 2021-02-17 11:16:10,212 stephane ERROR PlasticThread - Error when performing background operation: Invalid URI: The format of the URI could not be determined. 2021-02-17 11:16:10,214 stephane DEBUG PlasticThread - Stack trace: at System.Uri.CreateThis (System.String uri, System.Boolean dontEscape, System.UriKind uriKind) [0x0007b] in <ca617bcbee124d63852388fd7f3106e6>:0 at System.Uri..ctor (System.String uriString) [0x00014] in <ca617bcbee124d63852388fd7f3106e6>:0 at Codice.Client.IssueTracker.Jira.JiraRestClient.GetBaseRestUri () [0x00060] in <8ac37d92524a463887d6e42f943350d8>:0 at Codice.Client.IssueTracker.Jira.JiraRestClient.CreateAuthenticatedRequest (System.String partialUri, System.String method) [0x00001] in <8ac37d92524a463887d6e42f943350d8>:0 at Codice.Client.IssueTracker.Jira.JiraRestClient.TryRequest (System.String partialUri, System.String httpMethod, System.Object content, System.String& response) [0x0001c] in <8ac37d92524a463887d6e42f943350d8>:0 at Codice.Client.IssueTracker.Jira.JiraRestClient.TryGet[T] (System.String partialUri, T& result) [0x00008] in <8ac37d92524a463887d6e42f943350d8>:0 at Codice.Client.IssueTracker.Jira.JiraRestClient.DoGetTasks (System.String conditions) [0x00018] in <8ac37d92524a463887d6e42f943350d8>:0 at Codice.Client.IssueTracker.Jira.JiraRestClient.GetPendingTasks (System.String assignee) [0x00014] in <8ac37d92524a463887d6e42f943350d8>:0 at Codice.Client.IssueTracker.Jira.JiraHandler.GetPendingTasks (System.String assignee) [0x00001] in <8ac37d92524a463887d6e42f943350d8>:0 at Codice.Client.IssueTracker.Jira.JiraExtension.GetPendingTasks (System.String assignee) [0x00001] in <8ac37d92524a463887d6e42f943350d8>:0 at im.b (System.Boolean A_0) [0x0000b] in <b816f616cec244e082b4ba1c3a67eb57>:0 at im+a.b () [0x00001] in <b816f616cec244e082b4ba1c3a67eb57>:0 at Codice.Client.Common.Threading.PlasticThread.ThreadWork (System.Object state) [0x0000a] in <c486789c633545be9a72ad39a565b17f>:0 I tried to use the same config jira config file as my Plastic SCM client has with the same result even if it works well on my PC. Has somebody some suggestion ? Thanks by advance Stéphane
  5. Thanks Carlos ! It works now as i wished. Stéphane
  6. Hello, i want to change from github to plasticscm some projects. My first try was to use the gitsync option, the import works well i have the same workspace directory structure as the one with github, but it appears that i can't break the sync process after importing the project, and that some features cannot be used because of the sync with git that i don't want in fact (i never want to push things back to git, i just want to import the gihub repo and keep traces of all history). So i tried to use git fast-export then cm fast-import but in this case, when opening the imported plasticscm repo i can find old directories that was deleted or renamed in my workspace. Has someone some tips ? My only need is to get my github repo in a plastic repo with all history but no old renamed/move/deleted folders or files, but i never want to push back to git but gitsync cannot be removed after syncing and some features cannot be done because of the sync i don't need. Thanks by advance. Stéphane Edited: Seems like there's only old empty directories...
  • Create New...