Git Product home page Git Product logo

Comments (9)

joelee2012 avatar joelee2012 commented on July 18, 2024 1

have you set correct Jenkins URL in system configuration ?

from api4jenkins.

joelee2012 avatar joelee2012 commented on July 18, 2024 1

yes, use dict, here is code snippet

parameters = {'arg1': 'values', 'args': 'value2'}
job.build(**parameters)

from api4jenkins.

joelee2012 avatar joelee2012 commented on July 18, 2024 1

the warning tells the answer https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings , add snippet before your code

import urllib3
urllib3.disable_warnings()

from api4jenkins.

JayChanggithub avatar JayChanggithub commented on July 18, 2024

@joelee2012 I am sure system configuration is right. In addition i adopt to invoke from jenkinsapi.jenkins import Jenkins as long as False SSL check is work fine. So i wanna to know api4jenkins have anything else possible to do same configuration? Thanks you

from api4jenkins.

joelee2012 avatar joelee2012 commented on July 18, 2024

yes, it does, any parameter supported by requests can be used to init Jenkins, see : https://api4jenkins.readthedocs.io/en/latest/user/example.html#jenkins, example to disable ssl verify:

from api4jenkins import Jenkins
client = Jenkins('http://127.0.0.1:8080/', auth=('username', 'password or token'), verify=False)

from api4jenkins.

JayChanggithub avatar JayChanggithub commented on July 18, 2024

Hi @joelee2012, Thanks for you reply i will try it.

from api4jenkins.

JayChanggithub avatar JayChanggithub commented on July 18, 2024

I will feedback here. Exactly when added the "verify=False" it's would be fine.

from api4jenkins.

JayChanggithub avatar JayChanggithub commented on July 18, 2024

@joelee2012 in addition. I try to use "job.build" to build with parameters. Have anything possible through the **parameters to do?

par  =  [
     "TEST_TARGET=rm-sit3",
     "TEST_NAME=ReturnSitTests",
      "USERS_NUMBER=1",
      "TENANT=rm-sit3-02",
       "SLACK_SEND=true"
 ]
          
"""
job.build(arg1='string1', arg2='string2')
"""
 
 job.build(
     *par
 )

from api4jenkins.

spiralcb avatar spiralcb commented on July 18, 2024
, verify=False

Hello,

Works fine but still have warnings. Is it possible to remove them ?

connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'xxxxxxxxxx'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'xxxxxxxxxxx'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(

from api4jenkins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.