Commit cd876c30 by 岳巧源

add jenkins

parent 6338a78e
Showing with 12 additions and 2 deletions
......@@ -159,7 +159,9 @@ def update_redis(conf: dict):
print("jd_ext_attr", key, value)
def main():
arr = [58, 211, 136, 134, 137, 281, 280, 321, 320, 323, 316, 319, 318, 225, 226, 224, 228, 231, 236, 234, 184, 198, 196, 195, 194, 193, 192, 189, 187, 186, 185, 188, 183, 317, 127, 131, 126, 125, 128, 123, 129, 130, 304, 310, 314, 311, 303, 313, 309, 147, 146, 161, 166, 173, 171, 179, 182, 174, 176, 178, 177, 172, 331, 78, 330, 75, 74, 73, 76, 72, 77, 116, 113, 241, 247, 240, 256, 255, 248, 254, 252, 249, 238, 239, 244, 245, 250, 243, 118, 209, 217, 206, 216, 212, 218, 272, 277, 274, 276, 69, 60, 63, 62, 67, 70, 64, 61, 104, 32, 29, 288, 30, 94, 88, 96, 91, 93, 87, 84, 85, 82, 100, 107, 101, 108, 102, 99, 260, 263, 54, 261, 259, 258, 295, 293, 299, 296, 289, 290, 294, 56, 57, 202, 207, 214, 213, 181, 144, 151, 148, 79, 80, 322, 268, 271, 270, 65, 86, 89, 83, 103, 105, 264, 203, 210, 201]
print(len(arr))
if __name__ == '__main__':
config = config_prod
handle_data(config)
main()
#!/bin/sh
cd /var/lib/jenkins/workspace/go_nplm_server/;
cp manifest/config/config.toml.prod manifest/config/config.toml;
/usr/local/go/bin/go build -o go_nplm_server
rsync -arqzog /var/lib/jenkins/workspace/go_nplm_server/ --exclude "*.git" guojun@172.18.137.41::goroot/go_nplm_server/ --password-file=/etc/rsync.password
sudo ansible go_web -m shell -a '/usr/bin/supervisorctl restart go_nplm_server_http:'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment