Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

asds

tz = TimeZone.getTimeZone("Europe/Paris")

def log = """
COMMIT_HASH_72a1da4369cd73c35bb4e5a5bee3eb570b3aed79_COMMIT_HASH SUBJECT_GDC-42 commit 3_SUBJECT AUTHOR_Romain_AUTHOR DATE_2019-02-07 16:51:23 +0100_DATE
COMMIT_HASH_6927bc4b44ef252f992a2ce4f2ee0908d32edbc2_COMMIT_HASH SUBJECT_commit 2_SUBJECT AUTHOR_FX_AUTHOR DATE_2019-02-07 16:51:23 +0100_DATE
COMMIT_HASH_8d8a42dc708c4b38b608386b0b4d27d10264e12c_COMMIT_HASH SUBJECT_commit 1_SUBJECT AUTHOR_Romain_AUTHOR DATE_2019-02-07 16:51:23 +0100_DATE
"""

def commits = log =~ /COMMIT_HASH_([^\n]*)_COMMIT_HASH SUBJECT_([^\n]*)_SUBJECT AUTHOR_([^\n]*)_AUTHOR DATE_([^\n]*)_DATE/;

commits.each {
    def commitId = it[1].substring(0, 10)
    def subject = it[2]
    def author = it[3]
    def date = date = Date.parse("yyyy-MM-dd HH:mm:ss Z", it[4])

    subject = subject.replaceAll("GDC-[0-9]+", "<https://gensdeconfiance.atlassian.net/browse/${0}|${0}>")

    println "${commitId} ${subject} ${author} ${date.format('dd/MM/yyyy HH:mm', timezone=tz)}"
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.