Questions tagged [django-jenkins]

django-jenkins - Plug and play continuous integration add-on for Django and Jenkins. Provides Jenkins compatible reporting for test results, coverage and several code quality checking tools.

Useful links:

20 questions
15
votes
1 answer

Understanding what differentiates jenkins and django-jenkins

My question is rather subjective, moderators please do not close it, for I want to know the views of experienced nerds. I am new to deployment arena, and was doing some RTFM on jenkins, coming from python/django background I searched github to find…
user993563
  • 18,601
  • 10
  • 42
  • 55
7
votes
2 answers

Running tests with coverage using django-jenkins

I've got a couple of Django projects that I work on, and I use Jenkins for continuous integration purposes. I've had that arrangement up and running for a while and it works well. I'd like to be able to generate automated test coverage reports and…
Matthew Daly
  • 9,212
  • 2
  • 42
  • 83
4
votes
2 answers

How to change a Git URL in all Jenkins jobs

I have more than 100 jobs in Jenkins and I have to change a Git URL in each and every job since we changed the git server. I must traverse each job and change the Git URL. Can anyone help me with a groovy script? I was able to traverse each job,…
3
votes
0 answers

django-jenkins - not generating any coverage.xml report for django -restframework

I am trying to integrate django-jenkins in my django-rest framework application. INSTALLED_APPS = (..... ...... 'django_jenkins', ....... ) For running…
muhil varnan
  • 320
  • 2
  • 9
3
votes
0 answers

Jenkins and django: "Cannot allocate memory" with popen from django-jenkins run

I'm using jenkins to run my django tests, with django-jenkins since a few days (without changing confs), when i run django-jenkins i get the error OSError: [Errno 12] Cannot allocate memory even if my tests pass. the complete error (from jenkins)…
apelliciari
  • 8,241
  • 9
  • 57
  • 92
2
votes
1 answer

using unittest.skip with django-jenkins

I have added @unittest.skip decorator for few of my test methods. It works as expected while running with python manage.py test --settings=PATH_TO_SETTING But it does not work with python manage.py jenkins --settings=PATH_TO_SETTING I read that I…
Pranav
  • 2,054
  • 4
  • 27
  • 34
2
votes
2 answers

How to speed jenkins build process while installing requirements using pip

I am using Jenkins CI for my django project. For Django-Jenkins integration I am using the django-jenkins app. In the build step of Jenkins I create a fresh virtualenv and install all the dependencies for each build using requirements file. However,…
2
votes
1 answer

how to exclude (directory or files) from coverage report

I am using django-jenkins and am trying to get jenkins to ignore a folder in my app in the coverage report. I have found the option --coverage-exclude from https://github.com/kmmbvnr/django-jenkins/blob/master/django_jenkins/tasks/with_coverage.py,…
Calum
  • 2,110
  • 2
  • 22
  • 39
2
votes
2 answers

Random test failures when code pushed to Jenkins

I have asked this one earlier too but am not satisfied with the answer. What I use: Working on Django/python website. Development done on python virtual envs locally. using GIT as my SCM have separate virtual servers deployed for Developer and…
SaurabhM
  • 7,995
  • 1
  • 15
  • 20
1
vote
2 answers

Django-jenkins --enable-coverage returns 'Coverage' object has no attribute 'data'

I am using django-jenkins v0.110.0 and coverage v5.2.1 , with Django v3.1. As mentioned in the subject, when I ran: python manage.py jenkins --enable-coverage I get this error: AttributeError: 'Coverage' object has no attribute 'data' Below is…
jaysonpryde
  • 2,733
  • 11
  • 44
  • 61
1
vote
0 answers

What does "UserWarning: No PROJECT_APPS settings, coverage gathered over all apps" mean?

So I am researching and testing the continuous integration of Django and Jenkins for my company. I successfully connected them but this warning keeps popping up. I already tried googling for this and to my dismay did not find what I was looking for.…
1
vote
0 answers

Using django-jenkins with jenkins and docker

I try to present test results in Jenkins on build. My stack is, that I put Django application inside Docker image, and deploy it with Jenkins. Inside yaml file, where I have run docker container functionality I put running script. - name: Run unit…
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
1
vote
0 answers

Configure Jenkins with bitbucket for running Test

I am planning to run build and test cases and deploy using jenkins. I have installed Jenkins and creating job. I have bitbucket repository with mercurial, So configured mercurial and build clone repository and do nothing else. Now I am writing…
1
vote
0 answers

django-jenkins ERROR: runTest (django_jenkins.tasks.lettuce_tests.LettuceTestCase)

I've been working with lettuce for interface testing for the last year and lately I've been trying to use it with django-jenkins for continuous integration. However, I am having problems on executing only the lettuce tests cases I have into the app…
0
votes
0 answers

Django project deployment with Jenkins on AWS EC2 Instance

I have a Django project. Now I want to publish my project on AWS EC2 instance with Ubuntu AMI. To publish it, I want to use Jenkins as CI/CD pipeline. I really dont know what are the steps to deploy using Jenkins in AWS. I used normal project to…
1
2