Jump to content

Search the Community

Showing results for tags 'jenkins'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Plastic SCM
    • General
    • Installation and configuration
    • Unity 3D
    • Plastic SCM on Mac
    • Plastic SCM on Linux
    • Gluon
    • Git interop
    • Integrations
    • Community Edition
    • Branching and merging
    • Announcements
  • Plastic SCM 4.0 Beta (Closed)
  • Plastic Cloud
    • General
    • Configuration
  • SemanticMerge
    • General
    • License
    • SCM's configuration
    • Share your experience!
    • External Parsers
  • GitJungle
  • Method History for Subversion

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 5 results

  1. Heya! I'm currently researching how to do Build Automation with Plastic Cloud edition. I've started out trying to integrate it with Jenkins to build a unity game. I'm using the plugin you provided for Jenkins. For simplicity's sake I'm simply testing on my Windows desktop machine. The first issue I encountered was that it seems to look in the wrong place for the client config. It was looking in "C:\WINDOWS\system32\config\systemprofile\AppData\Local\plastic4\client.conf" while my config is in the default generated location in AppData. By copying my client config to the path it was looking in I was able to bypass this. The next issue I encountered was when I attempted to download from the cloud via Jenkins. We use an encrypted cloud, so it got stuck in an infinite loop asking for the encryption key. Is there any way to use your plugin while also providing an encryption key? Currently I've switched to testing with a local repository - and it works fine, but it would be nice to use the repo which is 100% up to date. While on the topic of Cloud & Integration, is there any way to setup hooks/polling so I can setup some responsive build automation? I've attached the Jenkins execution logs from both my failed runs. Thanks in advance! error-config.txt error-encryption.txt
  2. Hello, I have tow questions : 1- Is there a way to add on an external tool called from a changeset, the branch it depends on? Or to retrieve it from the command line? I have the following setup on externaltools.conf : branch | Create new build | "<path to the exe>" | "branch=@object&repository=@repository" changeset | Create new build | "<path to the exe>" | "changeset=@object&repository=@repository" This will call a custom tool I wrote in C# to start builds on our Jenkins. The arguments for this tool will be used to pre-fill the plastic related stuff. I already implement an argument less version that retrieve repositories, branches and changesets using the CmdRunner found here : https://www.plasticscm.com/documentation/cmdrunner/plastic-scm-version-control-cmdrunner-guide. So if it's not possible to have the branch on the external tool command line, I still have the possibility to do it from the command line, but I don't know witch command to use. 'find' ? 2- On the jenkins plugins, is there a way to specify a changeset to update the build's workspace to? I have a Jenkins server with the Plastic plugin (version 2.20) and when I trigger a build I use some variables to update the selector with the right values. The current selector looks like this : repository "%REPOSITORY%" path "/" smartbranch "%BRANCH%" Where REPOSITORY and BRANCH are the variable used. But I don't see any information to update to a selected changeset. Is this even possible? I know it can be done in command line, but it will be easier to do it directly with the plugin. Do not hesitate to tell me if you want more information.
  3. The setup: Project A and Project B both use the plastic plug-in and both of these jenkins projects have the same workspace directory name. When project B builds, project A's workspace directory is deleted. Project B's log will indicate that the workspace directory within projectA's jenkins folder was deleted early in the build. It might look like this: Started by an SCM change Building in workspace C:\JenkinsBuilds\ProjectB\workspace [oneforall] $ "C:\Program Files\PlasticSCM5\client\cm" lwk --format={0}#{1}#{2} oneforall#ENGBLD#c:\JenkinsBuilds\ProjectA\workspace\oneforall [oneforall] $ "C:\Program Files\PlasticSCM5\client\cm" rmwk wk:oneforall The workspace oneforall has been deleted. FATAL: c:\JenkinsBuilds\ProjectA\workspace\oneforall\.plastic\plastic.lck: The process cannot access the file because it is being used by another process. ERROR: null Finished: FAILURE or this: Started by an SCM change Building in workspace C:\JenkinsBuilds\ProjectB\workspace [oneforall] $ "C:\Program Files\PlasticSCM5\client\cm" lwk --format={0}#{1}#{2} oneforall#ENGBLD#c:\JenkinsBuilds\ProjectA\workspace\oneforall [oneforall] $ "C:\Program Files\PlasticSCM5\client\cm" rmwk wk:oneforall The workspace oneforall has been deleted. [oneforall] $ "C:\Program Files\PlasticSCM5\client\cm" mkwk oneforall . --selector=selector7411337582865039699.txt Workspace oneforall has been correctly created [oneforall] $ "C:\Program Files\PlasticSCM5\client\cm" update . Searching for changed items in the workspace... Project A's next change poll looks like this: >>>(is it also a bug that the plug-in determines that changes are present when wi returns EC 1? )<<< Started on May 26, 2016 6:56:00 AM Polling SCM changes on master [PlasticPull] $ "C:\Program Files\PlasticSCM5\client\cm" wi --machinereadable --fieldseparator=def#_#sep c:\JenkinsBuilds\PROJECTA\workspace\PlasticPull is not in a workspace. FATAL: Executable returned an unexpected result code [1] ERROR: PlasticPull: Unable to retrieve workspace status. hudson.AbortException at com.codicesoftware.plugins.hudson.PlasticTool.execute(PlasticTool.java:89) at com.codicesoftware.plugins.hudson.model.Server.execute(Server.java:31) at com.codicesoftware.plugins.hudson.model.Server.getChangesets(Server.java:42) at com.codicesoftware.plugins.hudson.model.Server.getBriefHistory(Server.java:122) at com.codicesoftware.plugins.hudson.PlasticSCM.HasChanges(PlasticSCM.java:349) at com.codicesoftware.plugins.hudson.PlasticSCM.compareRemoteRevisionWith(PlasticSCM.java:162) at hudson.scm.SCM.poll(SCM.java:398) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1468) at hudson.model.AbstractProject._poll(AbstractProject.java:1438) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:526) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:555) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Done. Took 2 sec Changes found The implication is that the Plastic plug-in is somehow maintaining state between invocations and then interacts badly with duplicated workspace names. At first blush, the problem appears to be that the plugin is deleting workspaces even though "Use Update" is checked. Changing A & B to have unique names works around the issue.
  4. Hi, I've been working on a build server that utilizes Jenkins with the PlasticSCM Jenkins Plugin (2.0). Our builds are taking approximately 15 minutes mainly due to the pull of the files from the plastic repository. I would like to speed up the process. This is what currently works fine (but takes time): I set the "Use Update" flag to false in the Jenkins Plugin. This results in a Jenkins wipe of the workspace but also requires plastic to completely repopulate the workspace. Relevant plastic options are set to "Compare file contents instead of timestamps when determining changed status", and 'Update operation sets repository timestamps on files". Note: Through experimentation I have noticed that if the "Update timestamps" option is off then all the files obtain from plastic have the sync date which I don't want and in fact doesn't happen when syncing through the editor). What doesn't work (but perhaps would take less time if it worked): I set the "Use Update" to true in the Jenkins Plugin. This results in the workspace being left around after the build. Upon a new build plastic will not move or delete any files or directories and any files that it overwrites get the .0.. appended on the end. This is problematic for us and ends up causing odd build results. What I want is for plastic to recognize files that it does not need to copy and to ultimately setup the workspace to be identical to the latest change set. This is the case when we use the plastic GUI. Perplexed. I suspect that error lies in the fact that plastic removes its workspace (cm lwk) and recreates its workspace (cm mkwk) regardless of how "Use Update" is set. At any rate 15 minute builds should really be closer to 3 minute builds to make the build server do its job. Any suggestions would be great! Thanks, Mike
  5. I'm not sure if the following is a PlasticSCM or Jenkins issue, but I'll be grateful if you help me solve it. In Jenkins I specified the following selector: repository "MyRepository" path "/" br "/main" co "/main" But when I build the project, it fails with the following error (copied from the command line output): [workspace] $ "C:\Program Files\PlasticSCM5\client\cm.exe" find changeset where date between "'2014-06-12 08:12:40'" and "'2014-06-12 08:14:51'" and branch='/main' on repositories 'MyRepository@' --xml <?xml version="1.0" encoding="utf-8" ?> <PLASTICQUERY> <CHANGESET> <ID>84</ID> <CHANGESETID>14</CHANGESETID> <COMMENT>1_0_374</COMMENT> <DATE>12.06.2014 08:13:12</DATE> <OWNER>MyUser</OWNER> <REPOSITORY>MyRepository</REPOSITORY> <REPNAME>MyRepository</REPNAME> <REPSERVER></REPSERVER> <BRANCH>/main</BRANCH> <PARENT>13</PARENT> <GUID>8ac61f35-f9fe-45b1-9e54-295c21c2ffc0</GUID> </CHANGESET> </PLASTICQUERY> FATAL: Parse error: Error at line 7 char 37: Unparseable date: "12.06.2014 08:13:12" The date in the XML seems to be formatted according to Windows regional settings (the Jenkins runs on Windows). Should the format be set differently? Thanks for your help in advance.
  • Create New...