Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37431

there is no way to specify Questa environment for vrun as Post-build Action

      Although help message says "Set path to Questa VRM executable. This can be just "vrun" or a complete path. ", it seems Jenkins process needs to have the complete environment of Questa.

      Even if you specify the full path of vrun, it is not sufficient because you need also the license environment.

      If Jenkins process has to have the complete environment of Questa, you cannot easily switch Questa version. This is very inconvenient.

      We need a Post-build Action field like execute shell for build.

          [JENKINS-37431] there is no way to specify Questa environment for vrun as Post-build Action

          A possible workaround for this issue is using a wrapper for vrun.

          % cat /opt/mentor/questa-10.5c/questasim/bin/vrun_wrapper
          #!/bin/sh
          module load questa/10.5c
          vrun

          and you put the full path of this wrapper in Path to Questa VRM Executable.

          It seems almost working, but I saw a strange error.

          [ERROR]: Vcover executable '/opt/mentor/questa-10.5c/questasim/bin/vcover_wrapper' not found. Returning empty coverage results.
          Recording finished.
          Build step 'Publish Questa VRM Regression Results' changed build result to UNSTABLE
          Finished: UNSTABLE

          Makoto Kikutani added a comment - A possible workaround for this issue is using a wrapper for vrun. % cat /opt/mentor/questa-10.5c/questasim/bin/vrun_wrapper #!/bin/sh module load questa/10.5c vrun and you put the full path of this wrapper in Path to Questa VRM Executable. It seems almost working, but I saw a strange error. [ERROR] : Vcover executable '/opt/mentor/questa-10.5c/questasim/bin/vcover_wrapper' not found. Returning empty coverage results. Recording finished. Build step 'Publish Questa VRM Regression Results' changed build result to UNSTABLE Finished: UNSTABLE

          Yes you need to create two wrapper scripts one for the vrun and one for the vcover. So if you just create the '/opt/mentor/questa-10.5c/questasim/bin/vcover_wrapper that looks the same as vrun_wrapper except that you exchange vrun to vcover it should work. It is quite ugly thought.

          Stefan Rystedt added a comment - Yes you need to create two wrapper scripts one for the vrun and one for the vcover. So if you just create the '/opt/mentor/questa-10.5c/questasim/bin/vcover_wrapper that looks the same as vrun_wrapper except that you exchange vrun to vcover it should work. It is quite ugly thought.

          They could also add an "source this script to set the enviroment" and preferable let the user chose which shell the source script is in with a drop down list. By doing this they can run the tools in the order and the flags that they want. We already have this kind of source script in our repository to make sure that every one using the same tool version for a specific project so it would be perfect for us. 

          Stefan Rystedt added a comment - They could also add an "source this script to set the enviroment" and preferable let the user chose which shell the source script is in with a drop down list. By doing this they can run the tools in the order and the flags that they want. We already have this kind of source script in our repository to make sure that every one using the same tool version for a specific project so it would be perfect for us. 

            questa_vrm Questa Vrm
            kikutani Makoto Kikutani
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: