Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated getPastTimeString with getTimeSpanString #1007

Merged

Commits on Aug 27, 2023

  1. Replace deprecated getPastTimeString with getTimeSpanString

    Replaced with OpenRewrite command:
    
    mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
          -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-jenkins:RELEASE \
          -Drewrite.activeRecipes=org.openrewrite.jenkins.migrate.hudson.UtilGetPastTimeStringToGetTimeSpanString
    
    jenkinsci/jenkins#4174 deprecates the API in a
    2019 release of Jenkins core.
    
    https://javadoc.jenkins.io/hudson/Util.html#getPastTimeString(long)
    declares it deprecated.
    MarkEWaite committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    88d2c2a View commit details
    Browse the repository at this point in the history