#
# Install package, remove default service
#

# Here we use specific version of the package to avoid auth issues with Jenkins 2.0
jenkins:
  pkg.installed:
    - hold: True
    - sources:
      - jenkins: http://pkg.jenkins-ci.org/debian-stable/binary/jenkins_1.651.3_all.deb

disable-jenkins-service:
  service.dead:
    - name: jenkins
    - enable: False
    - require:
      - pkg: jenkins

# Make sure that www-data can unpack jenkins war file
/var/cache/jenkins:
  file.directory:
    - user: www-data
    - group: www-data
    - mode: 775
    - recurse:
      - user
      - group
    - require:
      - pkg: jenkins

#
# Install package, remove default service
#

# Here we use specific version of the package to avoid auth issues with Jenkins 2.0
# The original repository seems to be very slow... Therefore using korekontrol mirror of:
# http://pkg.jenkins-ci.org/debian-stable/binary/jenkins_1.651.3_all.deb
jenkins:
  pkg.installed:
    - hold: True
    - sources:
      - jenkins: https://jenkins.korekontrol.net/get/package/jenkins_1.651.3_all.deb

disable-jenkins-service:
  service.dead:
    - name: jenkins
    - enable: False
    - require:
      - pkg: jenkins

# Make sure that www-data can unpack jenkins war file
/var/cache/jenkins:
  file.directory:
    - user: www-data
    - group: www-data
    - mode: 775
    - recurse:
      - user
      - group
    - require:
      - pkg: jenkins

Use korekontrol mirror for jenkins download
Use korekontrol mirror for jenkins download

spryker/devvm,spryker/devvm,spryker/devvm