<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Jenkins Plugin: Scanner failed to run properly. Cannot run --http-proxy in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/343649#M289</link>
    <description>&lt;P&gt;I can confirm that on the latest version of the 20.04.177 version of the prisma-cloud-jenkins-plugin.hpi the http_proxy support is still broken, and doesn't support no_proxy or disabling the proxy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pipeline-node-53"&gt;[PRISMACLOUD] --http-proxy &lt;A href="http://proxy.bnz.co.nz:10568/" target="_blank" rel="noopener"&gt;http://squid.com:3128&lt;/A&gt; /var/lib/jenkins/workspace/kubernetes-builders/ubi8-dotnet-core-aspnet31/twistcli1882254558927248949 images scan docker.registry.local:5000/ubi8-dotnet-core-aspnet31:snapshot-d9a8f5d1ca8d6500d6e8cf5ad7fe637f52eefe07 --docker-address unix:///var/run/docker.sock --min-scan-time 1597113628542 --ci --publish --details --address &lt;A href="https://asia-northeast1.cloud.twistlock.com/anz-3052866" target="_blank" rel="noopener"&gt;https://asia-northeast1.cloud.twistlock.com/anz-XXXXXX&lt;/A&gt; --ci-results-file prisma-cloud-scan-results.json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pipeline-node-53"&gt;[ubi8-dotnet-core-aspnet31] $ --http-proxy &lt;A href="http://proxy.bnz.co.nz:10568/" target="_blank" rel="noopener"&gt;http://squid.com:3128&lt;/A&gt; /var/lib/jenkins/workspace/kubernetes-builders/ubi8-dotnet-core-aspnet31/twistcli1882254558927248949 images scan docker.registry.local:5000/ubi8-dotnet-core-aspnet31:snapshot-d9a8f5d1ca8d6500d6e8cf5ad7fe637f52eefe07 --docker-address unix:///var/run/docker.sock --min-scan-time 1597113628542 --ci --publish --details --address &lt;A href="https://asia-northeast1.cloud.twistlock.com/anz-3052866" target="_blank" rel="noopener"&gt;https://asia-northeast1.cloud.twistlock.com/anz-XXXXXX&lt;/A&gt; --ci-results-file prisma-cloud-scan-results.json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The plugin invokes the twistcli inside a shell session and interrogating the twistcli highlights that it doesn't actually support the handling of http_proxy, proxy or no_proxy values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./twistcli images scan --help&lt;BR /&gt;NAME:&lt;BR /&gt;twistcli images scan - Scan a set of images&lt;BR /&gt;USAGE:&lt;BR /&gt;twistcli images scan [command options] The ID or name of the image to scan&lt;BR /&gt;OPTIONS:&lt;BR /&gt;--address value Prisma Cloud Console's address (required) (default: "&lt;A href="https://127.0.0.1:8083" target="_blank"&gt;https://127.0.0.1:8083&lt;/A&gt;")&lt;BR /&gt;--containerized Run the scan from within a container&lt;BR /&gt;--custom-labels Include the image custom labels in the results&lt;BR /&gt;--details Show all vulnerability details&lt;BR /&gt;--docker-address value Docker daemon listening address (default: "unix:///var/run/docker.sock") [$DOCKER_CLIENT_ADDRESS]&lt;BR /&gt;--docker-tlscacert value Docker client CA certificate path&lt;BR /&gt;--docker-tlscert value Docker client Client certificate path&lt;BR /&gt;--docker-tlskey value Docker client Client private key path&lt;BR /&gt;--include-js-dependencies Include javascript package dependencies&lt;BR /&gt;--output-file value A path to output file containing the scan result&lt;BR /&gt;--password value, -p value User password for authenticating with Prisma Cloud Console [$TWISTLOCK_PASSWORD]&lt;BR /&gt;--podman-path value Forces using Podman. Set as "podman" for default installation path or otherwise provide the appropriate path&lt;BR /&gt;--project value When Projects are enabled, determines which Project to target with the command&lt;BR /&gt;--publish Publish the scan result to the console (unless the output-file flag is specified). Publish flag is true by default&lt;BR /&gt;--tlscacert value Path to Twistlock CA certificate file&lt;BR /&gt;--token value Token to use for authenticating with Prisma Cloud Console&lt;BR /&gt;--user value, -u value User for authenticating with Prisma Cloud Console (default: "admin") [$TWISTLOCK_USER]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution would be to source the system proxy settings and pass these into the script block as environment variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;script {&lt;/P&gt;&lt;P&gt;&amp;nbsp; def squid = jenkins.model.Jenkins.getInstance().proxy&lt;/P&gt;&lt;P&gt;&amp;nbsp; env[&lt;SPAN class="code-quote"&gt;'http_proxy'&lt;/SPAN&gt;] = &lt;SPAN class="code-quote"&gt;"http:&lt;SPAN class="code-comment"&gt;//${squid.name}:${squid.port}"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; env[&lt;SPAN class="code-quote"&gt;'https_proxy'&lt;/SPAN&gt;] = env[&lt;SPAN class="code-quote"&gt;'http_proxy'&lt;/SPAN&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp; env[&lt;SPAN class="code-quote"&gt;'no_proxy'&lt;/SPAN&gt;] = squid.noProxyHost&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behaviour has been confirmed by wrapping the twictcli binary invocation with the proxy environment variables ourselves in the following excerpt from one of our pipelines:&lt;/P&gt;&lt;PRE&gt;stage('Scan Container') {&lt;BR /&gt;  steps {&lt;BR /&gt;    script {&lt;BR /&gt;      def squid = jenkins.model.Jenkins.getInstance().proxy&lt;BR /&gt;      env['http_proxy'] = "http://${squid.name}:${squid.port}"&lt;BR /&gt;      env['no_proxy'] = "${squid.noProxyHost}"&lt;BR /&gt;      sh """&lt;BR /&gt;        /usr/local/bin/twistcli images scan --ci \&lt;BR /&gt;        --user=$TW_CREDS_USR \&lt;BR /&gt;        --password=$TW_CREDS_PSW \&lt;BR /&gt;        --address=$TW_CONSOLE \&lt;BR /&gt;        ${DOCKER_REGISTRY}/${IMAGE}:${COMMIT_SHA_TAG}&lt;BR /&gt;      """&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Please could this be looked into, as disabling the proxy is not an option as it breaks the ability to update plugins on the jenkins instance, and without the support of http_proxy &amp;amp; no_proxy or being able to ignore proxy settings the use of an on-prem integration won't be possible either (which means that the plugin is actually broken for all companies that make use of corporate proxies).&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2020 22:22:38 GMT</pubDate>
    <dc:creator>JVelloen</dc:creator>
    <dc:date>2020-08-12T22:22:38Z</dc:date>
    <item>
      <title>Jenkins Plugin: Scanner failed to run properly. Cannot run --http-proxy</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/328826#M263</link>
      <description>&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Given &lt;A href="https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-compute/continuous_integration/run_jenkins_container" target="_self" rel="nofollow noopener noreferrer"&gt;Jenkins running in a container&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And &lt;A href="https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-compute/continuous_integration/jenkins_plugin.html" target="_self" rel="nofollow noopener noreferrer"&gt;Prisma Cloud Jenkins Plugin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And Dashboard View Plugin&lt;/P&gt;&lt;P&gt;And Static Analysis Utilities&lt;/P&gt;&lt;P&gt;And &lt;A href="https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-compute/continuous_integration/jenkins_pipeline_project.html" target="_self" rel="nofollow noopener noreferrer"&gt;Jenkins Pipeline project&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And this &lt;A href="https://github.com/citrusoft/prismacloud-pipeline/blob/master/Jenkinsfile" target="_self" rel="nofollow noopener noreferrer"&gt;Jenkinsfile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And a corporate http(s) proxy&lt;/P&gt;&lt;P&gt;When I choose to Build the project&lt;/P&gt;&lt;P&gt;Then the plugin fails to generate proper shell command&lt;/P&gt;&lt;P&gt;And Jenkins Console reports the following...&lt;/P&gt;&lt;P&gt;Console Output&lt;/P&gt;&lt;PRE&gt;Started by user &lt;A href="http://localhost:8080/user/tahv" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;tommy hunt&lt;/A&gt;
Running in Durability level: MAX_SURVIVABILITY
&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] Start of Pipeline&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] node&lt;/SPAN&gt;&lt;SPAN class="pipeline-node-3"&gt;Running on &lt;A href="http://localhost:8080/computer/(master)/" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;Jenkins&lt;/A&gt; in /var/jenkins_home/workspace/prismacloud-pipeline&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] {&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] stage&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] { (Build)&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] echo&lt;/SPAN&gt;&lt;SPAN class="pipeline-node-7"&gt;DO NOTHING&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] }&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] // stage&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] stage&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] { (Scan)&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] prismaCloudScanImage&lt;/SPAN&gt;&lt;SPAN class="pipeline-node-12"&gt;[PRISMACLOUD] Scanning images on master
[PRISMACLOUD] Waiting for scanner to complete
[PRISMACLOUD] --http-proxy 6af84ddd-3010-44b1-9f8b-a5a545337f2b:vbVqmkj9C3lX+asU7qEeIQnf5ws=@webcache.comp.pge.com:8080 /var/jenkins_home/workspace/prismacloud-pipeline/twistcli3673897521178042205 images scan nginx:latest --docker-address unix:///var/run/docker.sock --ci --publish --details --address &lt;A href="https://us-east1.cloud.twistlock.com/us-1-111574323" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://us-east1.cloud.twistlock.com/us-1-111574323&lt;/A&gt; --ci-results-file prisma-cloud-scan-results.json
[prismacloud-pipeline] $ --http-proxy 6af84ddd-3010-44b1-9f8b-a5a545337f2b:vbVqmkj9C3lX+asU7qEeIQnf5ws=@webcache.comp.pge.com:8080 /var/jenkins_home/workspace/prismacloud-pipeline/twistcli3673897521178042205 images scan nginx:latest --docker-address unix:///var/run/docker.sock --ci --publish --details --address &lt;A href="https://us-east1.cloud.twistlock.com/us-1-111574323" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://us-east1.cloud.twistlock.com/us-1-111574323&lt;/A&gt; --ci-results-file prisma-cloud-scan-results.json
[PRISMACLOUD] Scanner failed to run properly. Cannot run program "--http-proxy" (in directory "/var/jenkins_home/workspace/prismacloud-pipeline"): error=2, No such file or directory&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] }&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] // stage&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] stage&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] { (Declarative: Post Actions)&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] prismaCloudPublish&lt;/SPAN&gt;&lt;SPAN class="pipeline-node-17"&gt;[PRISMACLOUD] Publishing analysis results
[PRISMACLOUD] No matching scan result files were found&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] }&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] // stage&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] }&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] // node&lt;/SPAN&gt;&lt;SPAN class="pipeline-new-node"&gt;[Pipeline] End of Pipeline&lt;/SPAN&gt;ERROR: Build failed
Finished: FAILURE&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice this plugin attempted to execute "--http-proxy" as a shell command.&lt;/P&gt;&lt;P&gt;"--http-proxy" is a global option that should be included with the twistcli shell command.&lt;/P&gt;&lt;P&gt;How can I fix this?&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Sep 2020 17:46:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/328826#M263</guid>
      <dc:creator>TommyHunt</dc:creator>
      <dc:date>2020-09-02T17:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Jenkins Plugin: Scanner failed to run properly. Cannot run --http-proxy</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/330361#M266</link>
      <description>&lt;P&gt;I am seeing the same issue in almost identical circumstances. Are there any workarounds for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use the twistlock Jenkins plugin with the newer version of the Prisma Cloud Console?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 17:02:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/330361#M266</guid>
      <dc:creator>XHarris</dc:creator>
      <dc:date>2020-05-28T17:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Jenkins Plugin: Scanner failed to run properly. Cannot run --http-proxy</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/330819#M267</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reaching out. What version of Compute/TL are you running? Have you recently upgraded? For Compute 20.04.x you will require the Jenkins v2 plugin. Additionally, ensure your proxy configuration is set properly, both, in the console and in Jenkins under Manage &amp;gt; Advanced Settings. There are a few things to consider here, but that is a pretty good start.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 12:36:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/330819#M267</guid>
      <dc:creator>PBowden</dc:creator>
      <dc:date>2020-06-01T12:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Jenkins Plugin: Scanner failed to run properly. Cannot run --http-proxy</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/343649#M289</link>
      <description>&lt;P&gt;I can confirm that on the latest version of the 20.04.177 version of the prisma-cloud-jenkins-plugin.hpi the http_proxy support is still broken, and doesn't support no_proxy or disabling the proxy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pipeline-node-53"&gt;[PRISMACLOUD] --http-proxy &lt;A href="http://proxy.bnz.co.nz:10568/" target="_blank" rel="noopener"&gt;http://squid.com:3128&lt;/A&gt; /var/lib/jenkins/workspace/kubernetes-builders/ubi8-dotnet-core-aspnet31/twistcli1882254558927248949 images scan docker.registry.local:5000/ubi8-dotnet-core-aspnet31:snapshot-d9a8f5d1ca8d6500d6e8cf5ad7fe637f52eefe07 --docker-address unix:///var/run/docker.sock --min-scan-time 1597113628542 --ci --publish --details --address &lt;A href="https://asia-northeast1.cloud.twistlock.com/anz-3052866" target="_blank" rel="noopener"&gt;https://asia-northeast1.cloud.twistlock.com/anz-XXXXXX&lt;/A&gt; --ci-results-file prisma-cloud-scan-results.json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pipeline-node-53"&gt;[ubi8-dotnet-core-aspnet31] $ --http-proxy &lt;A href="http://proxy.bnz.co.nz:10568/" target="_blank" rel="noopener"&gt;http://squid.com:3128&lt;/A&gt; /var/lib/jenkins/workspace/kubernetes-builders/ubi8-dotnet-core-aspnet31/twistcli1882254558927248949 images scan docker.registry.local:5000/ubi8-dotnet-core-aspnet31:snapshot-d9a8f5d1ca8d6500d6e8cf5ad7fe637f52eefe07 --docker-address unix:///var/run/docker.sock --min-scan-time 1597113628542 --ci --publish --details --address &lt;A href="https://asia-northeast1.cloud.twistlock.com/anz-3052866" target="_blank" rel="noopener"&gt;https://asia-northeast1.cloud.twistlock.com/anz-XXXXXX&lt;/A&gt; --ci-results-file prisma-cloud-scan-results.json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The plugin invokes the twistcli inside a shell session and interrogating the twistcli highlights that it doesn't actually support the handling of http_proxy, proxy or no_proxy values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./twistcli images scan --help&lt;BR /&gt;NAME:&lt;BR /&gt;twistcli images scan - Scan a set of images&lt;BR /&gt;USAGE:&lt;BR /&gt;twistcli images scan [command options] The ID or name of the image to scan&lt;BR /&gt;OPTIONS:&lt;BR /&gt;--address value Prisma Cloud Console's address (required) (default: "&lt;A href="https://127.0.0.1:8083" target="_blank"&gt;https://127.0.0.1:8083&lt;/A&gt;")&lt;BR /&gt;--containerized Run the scan from within a container&lt;BR /&gt;--custom-labels Include the image custom labels in the results&lt;BR /&gt;--details Show all vulnerability details&lt;BR /&gt;--docker-address value Docker daemon listening address (default: "unix:///var/run/docker.sock") [$DOCKER_CLIENT_ADDRESS]&lt;BR /&gt;--docker-tlscacert value Docker client CA certificate path&lt;BR /&gt;--docker-tlscert value Docker client Client certificate path&lt;BR /&gt;--docker-tlskey value Docker client Client private key path&lt;BR /&gt;--include-js-dependencies Include javascript package dependencies&lt;BR /&gt;--output-file value A path to output file containing the scan result&lt;BR /&gt;--password value, -p value User password for authenticating with Prisma Cloud Console [$TWISTLOCK_PASSWORD]&lt;BR /&gt;--podman-path value Forces using Podman. Set as "podman" for default installation path or otherwise provide the appropriate path&lt;BR /&gt;--project value When Projects are enabled, determines which Project to target with the command&lt;BR /&gt;--publish Publish the scan result to the console (unless the output-file flag is specified). Publish flag is true by default&lt;BR /&gt;--tlscacert value Path to Twistlock CA certificate file&lt;BR /&gt;--token value Token to use for authenticating with Prisma Cloud Console&lt;BR /&gt;--user value, -u value User for authenticating with Prisma Cloud Console (default: "admin") [$TWISTLOCK_USER]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution would be to source the system proxy settings and pass these into the script block as environment variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;script {&lt;/P&gt;&lt;P&gt;&amp;nbsp; def squid = jenkins.model.Jenkins.getInstance().proxy&lt;/P&gt;&lt;P&gt;&amp;nbsp; env[&lt;SPAN class="code-quote"&gt;'http_proxy'&lt;/SPAN&gt;] = &lt;SPAN class="code-quote"&gt;"http:&lt;SPAN class="code-comment"&gt;//${squid.name}:${squid.port}"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; env[&lt;SPAN class="code-quote"&gt;'https_proxy'&lt;/SPAN&gt;] = env[&lt;SPAN class="code-quote"&gt;'http_proxy'&lt;/SPAN&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp; env[&lt;SPAN class="code-quote"&gt;'no_proxy'&lt;/SPAN&gt;] = squid.noProxyHost&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behaviour has been confirmed by wrapping the twictcli binary invocation with the proxy environment variables ourselves in the following excerpt from one of our pipelines:&lt;/P&gt;&lt;PRE&gt;stage('Scan Container') {&lt;BR /&gt;  steps {&lt;BR /&gt;    script {&lt;BR /&gt;      def squid = jenkins.model.Jenkins.getInstance().proxy&lt;BR /&gt;      env['http_proxy'] = "http://${squid.name}:${squid.port}"&lt;BR /&gt;      env['no_proxy'] = "${squid.noProxyHost}"&lt;BR /&gt;      sh """&lt;BR /&gt;        /usr/local/bin/twistcli images scan --ci \&lt;BR /&gt;        --user=$TW_CREDS_USR \&lt;BR /&gt;        --password=$TW_CREDS_PSW \&lt;BR /&gt;        --address=$TW_CONSOLE \&lt;BR /&gt;        ${DOCKER_REGISTRY}/${IMAGE}:${COMMIT_SHA_TAG}&lt;BR /&gt;      """&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Please could this be looked into, as disabling the proxy is not an option as it breaks the ability to update plugins on the jenkins instance, and without the support of http_proxy &amp;amp; no_proxy or being able to ignore proxy settings the use of an on-prem integration won't be possible either (which means that the plugin is actually broken for all companies that make use of corporate proxies).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 22:22:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/jenkins-plugin-scanner-failed-to-run-properly-cannot-run-http/m-p/343649#M289</guid>
      <dc:creator>JVelloen</dc:creator>
      <dc:date>2020-08-12T22:22:38Z</dc:date>
    </item>
  </channel>
</rss>

