por Miguel | Ago 7, 2017 | jenkins
Configuring a remote repository from bitbucket into Jenkins is quite simple. Verify you’ve installed the git plugins and everything is up-to-date: Create a new free-style project Configure the project In this step I opted adding my credentials into the URL in...
por Miguel | Jun 26, 2017 | bash
This one was easy, first create a file (hosts_ip.txt) with the IP of each server to get its /etc/hosts: 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 Generate a private/public pair key and add the public one in authorized_keys of each server : # generate...
por Miguel | Jun 26, 2017 | jira, python
I wrote a script with python to automate some things with JIRA and I used the module Requests: #!/usr/bin/python # m.ortiz # Requiere modulo requests: http://docs.python-requests.org/en/latest/ # Documentacion de este script:FIXME # modulos import sys,requests The...
por Miguel | Jun 22, 2017 | jira, python
I’m working in some automation and one of the things I needed to solve was a script to download JIRA attachments with Python, here’s how I did it. Using the REST API of JIRA and some python modules: We start defining the she-bang, author, modules and...
por Miguel | Jun 8, 2017 | python
While executing a bash subshell inside a Python script I had to inherit the environment variables, that can be done in this way: Bashrc $ cat ~/.bashrc |grep LOLO export LOLO=»/foo/bar» *Here you need to restart your shell in order to execute .bashrc and export the...