Jump to content

Gwanhir

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Gwanhir

  1. Hi,

    Yes, I use the webadmin panel to configure my JIRA plug. I assume you talk about jira: http://127.0.0.1:7178/devops/plugs/types/jira/info (instead of jenkins!).

    Here is a screenshot of me current configuration :

    image.thumb.png.b9f24aae463c46961bbfafd1a8f804ad.png

     

    and when I start the plug, it turns off itself. Looking at the log on the server for this plug, I found this issue :

    Quote

    2019-09-12 09:39:52,116 ERROR JiraRestClient - Check Connection: Could not get info about the configured user.URL: [https://************.atlassian.net/rest/api/2/myself]. User: [********************.com]. Message:[Error: SecureChannelFailure (The authentication or decryption has failed.)]
    2019-09-12 09:39:52,122 ERROR jiraplug - Error: Unable to contact Jira Server [https://************.atlassian.net] using the specified credentials for user [********************.com]. Are you using Jira Cloud? If so, did you properly configure a Jira API token for user [********************.com] and set it in the JiraPlug password/API Token configuration field?

    But I'm sure it's the good API Token. I tried to change the user as said before but nothing works.

    If it helps, the server is on a Ubuntu 18.04 server at version 8.0.16.3533.

    I can confirm you that the JIRA configuration stuff is not the issue here (adding the custom field and so on...).

     

    Thanks for the reply,

    Cyril.

  2. Hello,

    I'm starting with devops and try to get around it with the trunkbot. I successfully create my own notification plug to use our internal chat system and configured the CI (Jenkins) plug. But I'm stuck with the Jira plug configuration.

    We use Jira cloud and I can't make it work. I use the token API as specified in the documentation. For the user I tried with the email, name, user name, lowercase, uppercase, space between, no spaces. Nothing works.

    I have an idea on how to use all the powerful tools available but sadly as Jira won't work, it may not be possible.

    Any idea what I'm doing wrong?

    Thanks,

    Cyril.

  3. Thanks for your quick answer. 

    1. Perfect, it's what I was looking for. I tried to search the branch and filter on the changeset id, not getting the branch directly from the changeset...

    2. I didn't know that the changeset can be set on the selector, I didn't find any documentation on it. How does it react if I don't specify any changeset, if the variable CHANGESET_ID is empty? Does it take the branch's head?

  4. 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.

×
×
  • Create New...