Project

Profile

Help

Task #7313

Add timestamp + commit id to generated yaml jobs

Added by Mark Zaslavskiy over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Timofey Turenko
Category:
jenkins_jobs
Sprint/Milestone:
Start date:
28.07.2016
Due date:
% Done:

100%

Estimated time:
3:00 h
Spent time:
Target branch:
Test scenario:

https://github.com/OSLL/jjg/tree/7313_add_timestamp_and_commit_id

https://github.com/OSLL/jjg/pull/1

# Place SOME.yaml job in SOME_DIR directory.
# For check, comment lines:
jenkins-jobs --conf ${JENKINS_CONFIG} ${ACTION} ${YAML_JOB}
rm ${YAML_JOB}_temp
# in jjg/scripts/ud_job.sh

# Then, run
./scripts/ud_job.sh test_configs/jenkins.ini update SOME_DIR/SOME.yaml

# Results:
It will print timestamp and commit id:

Timestamp: 2016-08-13 18:44:06+03:00, Git ID: bfafde82068c064eae07c4665924d8021789e8e5

# If it will not be description field in yaml, it create and print to console:
description added

# Or it will add info (timestamp and commit id) to exsisting field:
description modified

# In SOME_DIR must be file SOME.yaml_temp , where in description field be timestamp and commit id:

description: '[2016-08-13 18:45:58+03:00 ID=bfafde82068c064eae07c4665924d8021789e8e5]
'

# Or:
description: 'Some old infirmation in description.

[2016-08-13 18:45:58+03:00 ID=bfafde82068c064eae07c4665924d8021789e8e5]
'

# Then, delete comment lines and download job to Jenkins. In web-form (http://maxscale-jenkins.mariadb.com:8090/job/mdbci_integration_test/configure) at description field must be timestamp and commit id.


Description

Modify jjg/scripts/ud_job.sh to add or append to existing description field information about timestamp + commit id of the generated job.

History

#1 Updated by Mark Zaslavskiy over 4 years ago

  • Assignee changed from Mark Zaslavskiy to Tatyana Berlenko

#2 Updated by Mark Zaslavskiy about 4 years ago

  • Assignee changed from Tatyana Berlenko to Ilfat Kinyaev

#3 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from New to Active / In progress
  • Estimated time set to 3:00 h

#4 Updated by Mark Zaslavskiy about 4 years ago

In your solution please keep the original version of job yaml file.

#5 Updated by Ilfat Kinyaev about 4 years ago

  • % Done changed from 0 to 90
  • Test scenario updated (diff)

#6 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from Active / In progress to New

#8 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from New to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy
  • % Done changed from 90 to 100
  • Test scenario updated (diff)

#9 Updated by Mark Zaslavskiy about 4 years ago

  • Status changed from Review to Testing
  • Assignee changed from Mark Zaslavskiy to Timofey Turenko

#10 Updated by Timofey Turenko about 4 years ago

  • Status changed from Testing to Closed

Also available in: Atom PDF