|
Started by user Leon Li
Building in workspace /home/deploy/jenkins/workspace/Phpcms-Dev
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url :showerlee/Ansible-showerlee.git # timeout=10
Fetching upstream changes from :showerlee/Ansible-showerlee.git
> git --version # timeout=10
> git fetch --tags --progress :showerlee/Ansible-showerlee.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 6bf787dcad68219d8eee09cecb83cbca36edbef1 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 6bf787dcad68219d8eee09cecb83cbca36edbef1
> git rev-list 6bf787dcad68219d8eee09cecb83cbca36edbef1 # timeout=10
[Phpcms-Dev] $ /bin/sh -xe /tmp/hudson7452069223867148990.sh
+ set +x
ansible 2.1.0 (devel 6ddea3e915) last updated 2016/02/16 16:13:32 (GMT +800)
lib/ansible/modules/core: (detached HEAD 8d126bd877) last updated 2016/02/16 16:19:09 (GMT +800)
lib/ansible/modules/extras: (detached HEAD f6c5ed987f) last updated 2016/02/16 16:19:40 (GMT +800)
config file = /home/deploy/jenkins/workspace/Phpcms-Dev/leon-playbook-phpcms1.1/ansible.cfg
configured module search path = /home/deploy/active-ansible-modules/
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [127.0.0.1]
TASK [deploy : Backup current source code] *************************************
changed: [127.0.0.1]
cmd: mv /data/deploy_dir/phpcms /data/deploy_dir/phpcms_master_1457681152
start: 2016-03-11 15:25:54.774716
end: 2016-03-11 15:25:54.927415
delta: 0:00:00.152699
TASK [deploy : Get new source code] ********************************************
changed: [127.0.0.1]
TASK [deploy : Check if caches/configs/database.php exists] ********************
ok: [127.0.0.1]
TASK [deploy : Check if test_dir exists] ***************************************
ok: [127.0.0.1]
TASK [deploy : debug] **********************************************************
ok: [127.0.0.1] => {
"msg": "/data/deploy_dir/phpcms_master_1457681152/caches/configs/database.php exists"
}
msg: /data/deploy_dir/phpcms_master_1457681152/caches/configs/database.php exists
TASK [deploy : debug] **********************************************************
ok: [127.0.0.1] => {
"msg": "/data/deploy_dir/phpcms_master_1457681152/test_dir exists"
}
msg: /data/deploy_dir/phpcms_master_1457681152/test_dir exists
TASK [deploy : Copy remote necessary original config to new release when Product env] ***
changed: [127.0.0.1] => (item={u'name': u'db_config', u'dir': u'caches/configs/database.php'})
changed: [127.0.0.1] => (item={u'name': u'version_config', u'dir': u'caches/configs/version.php'})
msg: All items completed
results: [
{
"src": "/data/deploy_dir/phpcms_master_1457681152/caches/configs/database.php",
"changed": true,
"group": "deploy",
"uid": 606,
"dest": "/data/deploy_dir/phpcms/caches/configs/database.php",
"checksum": "91869c2faa244f8c5de8a586636c6b4f3c0a2817",
"md5sum": "fd88a78a4629bca012a79d22fdcecadd",
"owner": "deploy",
"_ansible_no_log": false,
"item": {
"name": "db_config",
"dir": "caches/configs/database.php"
},
"state": "file",
"gid": 608,
"mode": "0644",
"invocation": {
"module_args": {
"src": "/data/deploy_dir/phpcms_master_1457681152/caches/configs/database.php",
"directory_mode": null,
"force": true,
"remote_src": true,
"dest": "/data/deploy_dir/phpcms/caches/configs/database.php",
"selevel": null,
"seuser": null,
"setype": null,
"group": null,
"content": null,
"serole": null,
"original_basename": null,
"delimiter": null,
"mode": "0644",
"regexp": null,
"owner": null,
"follow": false,
"validate": null,
"backup": false
}
},
"size": 302
},
{
"src": "/data/deploy_dir/phpcms_master_1457681152/caches/configs/version.php",
"changed": true,
"group": "deploy",
"uid": 606,
"dest": "/data/deploy_dir/phpcms/caches/configs/version.php",
"checksum": "d0eaedb46a36303eb3f3e2a77cc2a623062eff3c",
"md5sum": "7917d8199b7c6d5bc87ff3035a72670e",
"owner": "deploy",
"_ansible_no_log": false,
"item": {
"name": "version_config",
"dir": "caches/configs/version.php"
},
"state": "file",
"gid": 608,
"mode": "0644",
"invocation": {
"module_args": {
"src": "/data/deploy_dir/phpcms_master_1457681152/caches/configs/version.php",
"directory_mode": null,
"force": true,
"remote_src": true,
"dest": "/data/deploy_dir/phpcms/caches/configs/version.php",
"selevel": null,
"seuser": null,
"setype": null,
"group": null,
"content": null,
"serole": null,
"original_basename": null,
"delimiter": null,
"mode": "0644",
"regexp": null,
"owner": null,
"follow": false,
"validate": null,
"backup": false
}
},
"size": 127
}
]
TASK [deploy : Copy dir test_dir to new release when Product env] **************
changed: [127.0.0.1]
cmd: cp -a /data/deploy_dir/phpcms_master_1457681152/test_dir /data/deploy_dir/phpcms/
start: 2016-03-11 15:26:16.966237
end: 2016-03-11 15:26:17.069705
delta: 0:00:00.103468
TASK [deploy : Get php version] ************************************************
changed: [127.0.0.1 -> localhost]
cmd: python /home/deploy/jenkins/workspace/Phpcms-Dev/leon-playbook-phpcms1.1/roles/deploy/files/get_php_version.py start: 2016-03-11 15:26:17.468311
end: 2016-03-11 15:26:51.560313
delta: 0:00:34.092002
stdout: PHP/5.4.13
TASK [deploy : debug] **********************************************************
ok: [127.0.0.1] => {
"msg": {
"changed": true,
"cmd": "python /home/deploy/jenkins/workspace/Phpcms-Dev/leon-playbook-phpcms1.1/roles/deploy/files/get_php_version.py ",
"delta": "0:00:34.092002",
"end": "2016-03-11 15:26:51.560313",
"rc": 0,
"start": "2016-03-11 15:26:17.468311",
"stderr": "",
"stdout": "PHP/5.4.13",
"stdout_lines": [
"PHP/5.4.13"
],
"warnings": []
}
}
msg: {
"changed": true,
"end": "2016-03-11 15:26:51.560313",
"stdout": "PHP/5.4.13",
"cmd": "python /home/deploy/jenkins/workspace/Phpcms-Dev/leon-playbook-phpcms1.1/roles/deploy/files/get_php_version.py ",
"start": "2016-03-11 15:26:17.468311",
"delta": "0:00:34.092002",
"stderr": "",
"rc": 0,
"stdout_lines": [
"PHP/5.4.13"
],
"warnings": []
}
TASK [deploy : debug] **********************************************************
ok: [127.0.0.1] => {
"msg": "PHP/5.4.13"
}
msg: PHP/5.4.13
PLAY RECAP *********************************************************************
127.0.0.1 : ok=12 changed=5 unreachable=0 failed=0
Finished: SUCCESS |
|