Jenkins

EasyTest-接口自动化测试平台部署上线问题记录

无人久伴 提交于 2021-01-03 15:44:41
平台url: http://easytest.xyz   花巨资搞了个阿里云服务器,哈哈,有想体验指导的大佬私聊我~~~ 部署环境   云服务器:Ubuntu Server 16.04.1 LTS 64位   python 主要包版本: python 3.5.2 Django 2.0.3 BeautifulReport 0.0.9 celery 3.1.25 celery-with-redis 3.0 colorlog 4.0.2 crypto 1.4.1 ddt 1.2.1 django-celery 3.2.2 django-redis 4.0.0 gevent 1.4.0 greenlet 0.4.15 gunicorn 19.9.0 ipython 7.5.0 matplotlib 3.0.0 Pillow 6.0.0 pip 19.1.1 pycrypto 2.6.1 PyMySQL 0.9.3 qrcode 6.1 redis 2.10.6 requests 2.22.0 问题 1.为什么使用python3.5?   ubuntu使用python3.6在安装uwsgi的时候,老是报错,然后还么有找到原因... 2.定时任务运行报错:   1>.TypeError: can only concatenate tuple (not "NoneType") to tuple;

Running pylint against only changed lines/files with jenkins

做~自己de王妃 提交于 2021-01-02 05:09:09
问题 At this time, I am using the violations plugin with Jenkins to generate a report of PEP8 violations. Since I am only beginning to use this check, there are an insane number of violations. So I'd like to start with only checking what changed in a pull request. When a pull request is opened, I use the github pull request builder in order to test the pull request, and I'd also like to check the styling using pylint (or equivalent) as well. I use this command in order to generate my current

Openshift与Kubernetes的区别

谁说我不能喝 提交于 2021-01-01 16:03:37
OpenShift被其供应商——Red Hat称为“ Enterprise Kubernetes”。在本文中,我将描述OpenShift和Kubernetes之间的真正差异。由于Red Hat倾向于将其描述为PaaS,因此常常令人困惑,有时掩盖了 Kubernetes是OpenShift不可或缺的一部分, 并围绕它构建了更多功能这一事实。让我们深入研究一下两者之间的真正区别。 1. OpenShift产品与Kubernetes项目 Kubernetes是一个开源的项目(甚至框架),而OpenShift是一个产品是有多种版本。其中一个称为OKD的OpenShift开源版本。以前它被称为OpenShift Origin,但是Red Hat的一些“聪明”的人想出了这个新名称,它的意思是“推动Red Hat OpenShift的Kubernetes的Origin社区发行版”(?)。但是,让我们暂时忘掉名称,只关注其含义。 有几个: OpenShift Container Platform是一种产品,您可以将其安装在基础设施上,该产品包含订阅附带的付费支持 您需要为集群续订OpenShift订阅,并且随着集群的增长需要支付更多费用 Kubernetes有很多发行版,但这是一个项目,如果出现了故障,您可以主要依靠社区或外部专家(在某些情况下,它们有时可能比Red Hat支持的要好)

How to pass parameter from jenkins to selenium

馋奶兔 提交于 2021-01-01 06:46:05
问题 I'm using jenkins and selenium. I need to send the testing url to selenium server from jenkins. Under General Tab Jenkins String parameter: Name = APP, Default Value = http://localhost/basecode/ Under Post-build Actions Trigger parameterized build on other projects -> Predefined parameters -> Parameters -> SEL_APP=$APP Above mentioned SEL_APP value needs to be written in the selenium bat file. Suggestions are most welcome :-) 回答1: If you are using maven then you can pass the parameters

how to get all the jenkins users through api

好久不见. 提交于 2021-01-01 06:44:22
问题 I'm trying to get all the user in jenkins by using api . For example I hit the following command in postman and it is showing me all the jobs in jenkins . Url = 192.168.195.150:8080/api/json?pretty=true Result: { "_class": "hudson.model.Hudson", "assignedLabels": [ { "name": "master" } ], "mode": "NORMAL", "nodeDescription": "the master Jenkins node", "nodeName": "", "numExecutors": 2, "description": null, "jobs": [ { "_class": "hudson.model.FreeStyleProject", "name": "Apache_kafka_Consumer

how to get all the jenkins users through api

回眸只為那壹抹淺笑 提交于 2021-01-01 06:44:13
问题 I'm trying to get all the user in jenkins by using api . For example I hit the following command in postman and it is showing me all the jobs in jenkins . Url = 192.168.195.150:8080/api/json?pretty=true Result: { "_class": "hudson.model.Hudson", "assignedLabels": [ { "name": "master" } ], "mode": "NORMAL", "nodeDescription": "the master Jenkins node", "nodeName": "", "numExecutors": 2, "description": null, "jobs": [ { "_class": "hudson.model.FreeStyleProject", "name": "Apache_kafka_Consumer

how to get all the jenkins users through api

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-01 06:43:54
问题 I'm trying to get all the user in jenkins by using api . For example I hit the following command in postman and it is showing me all the jobs in jenkins . Url = 192.168.195.150:8080/api/json?pretty=true Result: { "_class": "hudson.model.Hudson", "assignedLabels": [ { "name": "master" } ], "mode": "NORMAL", "nodeDescription": "the master Jenkins node", "nodeName": "", "numExecutors": 2, "description": null, "jobs": [ { "_class": "hudson.model.FreeStyleProject", "name": "Apache_kafka_Consumer

Jenkins出现No valid crumb was included in the reques

半腔热情 提交于 2021-01-01 06:43:32
前提 今天登陆Jenkins时,觉得使用tomcat默认的8080端口麻烦,便使用Nginx做了一个反向代理。于是出现了以下错误 1. 问题描述 Jenkins配置好ssh server点击保存时出现如下错误: 2. 原因 Jenkins在http请求头部中放置了一个名为.crumb的token。在使用反向代理时, 如果Jenkins设置中勾选了“Prevent Cross Site Request Forgery exploits”, 代理服务器会认为.crumb为非法头部而去掉,导致跳转失败。 3. 解决方式 1. 在反向代理服务器Nginx中设置ignore_invaild_headers 在nginx server配置段中添加如下内容: server { ignore_invalid_headers off; } 2. 在Jenkins全局安全设置中取消勾选“Prevent Cross Site Request Forgery exploits”,如下图: 来源: oschina 链接: https://my.oschina.net/u/4397718/blog/4872575

How to import and run 3rd party Jenkins Plugin's extension DSL (githubPullRequest) with Gradle tool locally?

走远了吗. 提交于 2021-01-01 03:41:11
问题 I'm a newbie at Jenkins job-dsl scripting. I'm working to convert the Jenkins XML configuration to Groovy DSL script using a plugin (https://github.com/AOEpeople/gradle-jenkins-job-dsl-plugin) that uses Gradle tool for building the script and running Unit Test locally. However, currently, I'm facing an issue with the extension DSL from a 3rd Party Jenkins Plugin (https://github.com/jenkinsci/ghprb-plugin). triggers { githubPullRequest { orgWhitelist("Test") cron("H/5 * * * *") extensions {

How to import and run 3rd party Jenkins Plugin's extension DSL (githubPullRequest) with Gradle tool locally?

允我心安 提交于 2021-01-01 03:35:33
问题 I'm a newbie at Jenkins job-dsl scripting. I'm working to convert the Jenkins XML configuration to Groovy DSL script using a plugin (https://github.com/AOEpeople/gradle-jenkins-job-dsl-plugin) that uses Gradle tool for building the script and running Unit Test locally. However, currently, I'm facing an issue with the extension DSL from a 3rd Party Jenkins Plugin (https://github.com/jenkinsci/ghprb-plugin). triggers { githubPullRequest { orgWhitelist("Test") cron("H/5 * * * *") extensions {