Rally Software

Expand all | Collapse all

How do I add the "BUILDS" data into the change set section of a defect?

  • 1.  How do I add the "BUILDS" data into the change set section of a defect?

    Posted Oct 18, 2018 03:35 AM

    I downloaded and installed the svn2ca_agile_central-1.6.0 program. I was able to get my SVN commits to post into the Agile Central defects change set section. But there's nothing in the "BUILDS" column. What is required to make data show up there?

     

    No Builds data seen



  • 2.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Broadcom Employee
    Posted Oct 18, 2018 04:33 PM

    For that you're going to need a Jenkins instance with the Agile Central Jenkins connector watching your jobs there.

     

    You can find more information on that connector here: https://docs.ca.com/en-us/ca-agile-central/saas/ca-agile-central-jenkins-connector 



  • 3.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Posted Oct 18, 2018 04:46 PM

    Thanks. I've looked at the information from that link. I have this question about the Jenkins yml configuration file. I can't make heads or tails what the following settings are used for and how I'm suppose to make use of them.

     

    ### This one was easy to figure out  ####

    AgileCentral_DefaultBuildProject: svn-build-rally

     

    #### Don't know what to do here. All of this was from the sample file.  ####
    Views:
    - View: Project Omega
    include: ^master-*
    exclude: ^feature-*,fumar,launch
    AgileCentral_Project: Your Project 1

    - View: Smoke Tests
    include: smoke-test
    exclude: ^feature-*,burnin
    AgileCentral_Project: Your Project 2

    Jobs:
    - Job: Wambots-precalcolo
    AgileCentral_Project: Your Project 3

    - Job: fustulum-linter-metrics
    AgileCentral_Project: Your Project 4

    Folders:
    - Folder: Abracadabra
    exclude: barymetrics,preprocessing
    - Folder: Der Splodget



  • 4.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Posted Oct 18, 2018 05:16 PM

    I went ahead and commented out all the questionable lines. Result: not good. What do I do now.

    Too many steps guys. Can this somehow be simplified? It's like reading an Apollo 13 return to earth flight manual.

     

    C:\bldeif-1.1.3>python ac_build_connector jenkins.yml
    Traceback (most recent call last):
    File "ac_build_connector", line 22, in <module>
    from bldeif.bld_connector_runner import BuildConnectorRunner
    File "C:\bldeif-1.1.3\bldeif\bld_connector_runner.py", line 19, in <module>
    from bldeif.utils.konfabulus import Konfabulator
    File "C:\bldeif-1.1.3\bldeif\utils\konfabulus.py", line 16, in <module>
    import yaml
    ImportError: No module named yaml



  • 5.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Posted Oct 18, 2018 06:00 PM

    Oh I forgot to mention that there is a step that says pywin32-220.win is needed after installing Python. It will not install because the installer can not find Python in the registry. Apparently both the 32bit and 64bit Python installer placed Python in the HKCU folder but the pywin32-220.win installer is looking for it to be in the HKLM folder. I guess this is a show stopper if that program is really required.



  • 6.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Broadcom Employee
    Posted Oct 19, 2018 04:28 PM

    To install pywin32 in this situation, you may be able to run:

    pip install pypiwin32


  • 7.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Posted Oct 19, 2018 08:50 PM

    Ok, I'll try that.



  • 8.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Broadcom Employee
    Posted Oct 19, 2018 04:31 PM

    Can you post the output from the following command?

    pip list


  • 9.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Posted Oct 19, 2018 11:00 PM

    This is what worked.

     

    Downloaded python-3.6.7rc2.exe

    Downloaded pywin32-221.win-amd64-py3.6.exe

    Installed python-3.6.7rc2.exe

    I had to set two environment variables because the python command was not found.

    Added the PATH:

               C:\Users\user-name\AppData\Local\Programs\Python\Python36-32

               C:\Users\user-name\AppData\Local\Programs\Python\Python36-32\Scripts

     

     

    Executed following:

    C:\>pip install pywin32-221.win-amd64-py3.6.exe
    Collecting pywin32-221.win-amd64-py3.6.exe
      Could not find a version that satisfies the requirement pywin32-221.win-amd64-py3.6.exe (from versions: )
    No matching distribution found for pywin32-221.win-amd64-py3.6.exe
    You are using pip version 10.0.1, however version 18.1 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

     

    Executed following:

    C:\>python -m pip install --upgrade pip

    Collecting pip
      Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
        100% |████████████████████████████████| 1.3MB 7.7MB/s
    Installing collected packages: pip
      Found existing installation: pip 10.0.1
        Uninstalling pip-10.0.1:
          Successfully uninstalled pip-10.0.1
    Successfully installed pip-18.1

     

    C:\>pip install pywin32
    Collecting pywin32
      Downloading https://files.pythonhosted.org/packages/41/02/3d5014e3b70c950492ceb65785ef724d073785f02fd51401430fd5fef681/pywin32-224-cp36-cp36m-win32.whl (8.4MB)
        100% |████████████████████████████████| 8.4MB 2.1MB/s
    Installing collected packages: pywin32
    Successfully installed pywin32-224

     

    I then executed the 3 pip3 commands.

          pip3 install requests==2.12.5
          pip3  install pyral==1.3.2
          pip3  install PyYAML==3.12

     

    I have met all the software requirements now. I'll try to get the other pieces done later.

    Thank you.



  • 10.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Posted Oct 19, 2018 11:21 PM

    Current error below. Need assistance.

     

    c:\bldeif-1.1.3>python ac_build_connector jenkins.yml
    Traceback (most recent call last):
      File "ac_build_connector", line 22, in <module>
        from bldeif.bld_connector_runner import BuildConnectorRunner
      File "c:\bldeif-1.1.3\bldeif\bld_connector_runner.py", line 19, in <module>
        from bldeif.utils.konfabulus import Konfabulator
      File "c:\bldeif-1.1.3\bldeif\utils\konfabulus.py", line 19, in <module>
        from bldeif.utils.security_manager import SecurityManager
      File "c:\bldeif-1.1.3\bldeif\utils\security_manager.py", line 6, in <module>
        from bldeif.utils.encrypter import Encrypter, DecryptionError
      File "c:\bldeif-1.1.3\bldeif\utils\encrypter.py", line 3, in <module>
        from cryptography.fernet import Fernet
    ModuleNotFoundError: No module named 'cryptography'



  • 11.  Re: How do I add the "BUILDS" data into the change set section of a defect?

    Posted Oct 20, 2018 10:42 AM

    I found this solution to my last post at stackoverflow.com

     

    pip install paramiko

     

    But there's an issue with the configuration file.

     

    [2018-10-20 14:39:23 Z] INFO: AgileCentralConnection.connect - Connecting to AgileCentral
    [2018-10-20 14:39:25 Z] INFO: AgileCentralConnection.connect - Connected to Agile Central server: rally1.rallydev.com
    [2018-10-20 14:39:25 Z] INFO: AgileCentralConnection.connect - Workspace: myspace
    [2018-10-20 14:39:25 Z] INFO: AgileCentralConnection.connect - Project : SVN
    [2018-10-20 14:39:25 Z] INFO: AgileCentralConnection.connect - 0 sub-projects
    [2018-10-20 14:39:25 Z] INFO: BLDConnector.validate - Connector validation starting
    [2018-10-20 14:39:25 Z] INFO: BLDConnector.validate - AgileCentralConnection validation succeeded
    [2018-10-20 14:39:25 Z] ERROR: JenkinsConnection.validate - No Jobs, Views, or job Folders were provided in your configuration
    [2018-10-20 14:39:25 Z] INFO: BLDConnector.validate - JenkinsConnection validation failed
    [2018-10-20 14:39:25 Z] FATAL: BLDConnector.__init__(70) - <ConfigurationError> Validation failed
    [2018-10-20 14:39:25 Z] ERROR: BuildConnectorRunner.run - Validation failed
    [2018-10-20 14:39:25 Z] INFO: BuildConnectorRunner.run - run completed



  • 12.  Re: How do I add the "BUILDS" data into the change set section of a defect?
    Best Answer

    Posted Oct 20, 2018 06:35 PM

    I got it. Whew. I hope what I documented in this thread helps others.

     

    The final change was that I had to open the commented lines for Jobs, Views, Folders. I'm just using the freestyle build jobs. So I opened the following lines and the build URL appeared in the change set.

     

    Jobs:
          - Job: SVN
          AgileCentral_Project: SVN

     

     

    This is really cool. One link opens Jenkins (on the left) and the other link opens VisualSVN (on the right).