Snippets Collections
def listtostr(list,strvar):
  for x in list:
    stvar=strvar+=x
stage ('ANOTHER JOB'){
            steps {
                build job: "Release Helpers/(TEST) Schedule Release Job2",
                parameters: [
                    [$class: 'StringParameterValue', name: 'V', value: "${newRelease}"],
                    [$class: 'StringParameterValue', name: 'ReleaseDate', value: "${currentRelease}"]
                ]
            }
        }
pipeline {
    stages { ... }
    post {
       // only triggered when blue or green sign
       success {
           slackSend(channel: 'alerts-testing', color: 'good', message: ":party_parrot: NOTIFICATION: NEW RELEASE ${newRelease} WILL BE CREATED AUTOMATICALLY :party_parrot:")
       }
       // triggered when red sign
       failure {
           slackSend(channel: 'alerts-testing', color: 'RED', message: ":alarm_clock: NOTIFICATION: NEW RELEASE ${newRelease} WITH SOME FAILURE :alarm_clock:")
       }
       // trigger every-works
       always {
           slackSend ...
       }
    }
}
        newRelease = listLastReleaseTag(service[0])
        newRelease = "V${listLastReleaseTag(service[0])}"
pipeline {
    agent { label 'spot-instance' }
    
        stage('Print') {
            steps {
                script {
                    def now = new Date()
                    dateRelease = now.format("yyyy-MM-dd", TimeZone.getTimeZone('UTC'))
                    echo "Current date ${dateRelease}."
                }
            }
        }

        stage ('Run another Job'){
            steps {
                build job: "Release Helpers/(TEST) Schedule Release Job2",
                parameters: [
                    [$class: 'StringParameterValue', name: 'V', value: "${dateRelease}"]

                ]
            }
        }
}
pipeline {
    agent { label 'spot-instance' }
    
    environment {
        currentDate = sh(returnStdout: true, script: 'date +%Y-%m-%d').trim()
    }

        stage ('Run another Job'){
            steps {
                build job: "Release Helpers/(TEST) Schedule Release Job2",
                parameters: [
                    [$class: 'StringParameterValue', name: 'ReleaseDate', value: "${currentDate}"]

                ]
            }
        }
}

>>> a = 1
>>> b = 2
>>> a, b = b, a
>>> a
2
>>> b
1
@font-face {
    font-family: Asap;
    src: url('/fonts/Asap-Regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: Asap;
    src: url('/fonts/Asap-Bold.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
    font-style: normal;
}

@supports (font-variation-settings: normal) {
    @font-face {
        font-family: Asap;
        src: url('/fonts/Asap-VariableFont_wght.woff2') format('woff2 supports variations'),
            url('/fonts/Asap-VariableFont_wght.woff2') format('woff2-variations');
        font-weight: 400 700;
        font-display: swap;
        font-style: normal;
    }
}
star

Thu Mar 24 2022 20:24:15 GMT+0000 (Coordinated Universal Time)

#python #variable
star

Mon Aug 09 2021 10:33:23 GMT+0000 (Coordinated Universal Time)

#variable #groovy #jenkins #pipeline
star

Thu Aug 05 2021 11:19:16 GMT+0000 (Coordinated Universal Time)

#variable #groovy #jenkins #pipeline #currentdate
star

Thu Aug 05 2021 11:17:02 GMT+0000 (Coordinated Universal Time)

#variable #groovy #jenkins #pipeline
star

Thu May 27 2021 07:00:38 GMT+0000 (Coordinated Universal Time)

#python #swap #variable
star

Fri Apr 16 2021 12:53:31 GMT+0000 (Coordinated Universal Time) https://bnijenhuis.nl/notes/2021-04-13-how-to-add-self-hosted-variable-fonts-to-your-website/?utm_source=markboulton&utm_medium=email

#variable #font #asap #self-hosting

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension