1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Jenkins Server time zone?

Discussion in 'Help' started by JUSTaMod, Jun 24, 2018.

  1. JUSTaMod

    JUSTaMod Spider Jockey

    Messages:
    38
    GitHub:
    justamod
    Not sure if this is the proper location for this question, but-

    Does anyone know what time zone the Jenkins server is in?

    I'm using a modified start.ps1 to do a quick update check (and download if it finds a newer version)of Pocketmine-MP, that compares the last modified date-time for the Jenkins build to the last modified date-time of the file I have running on the server.

    Now its getting tripped off and downloading the same version every time the server restarts because the Jenkins server is in a different time zone. I just need a hour offset that I can use.

    Note- This is NOT for a prod server. I understand that its a terrible idea to get the latest version every time.
     
  2. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    why don't you just use the AutoUpdater API from a plugin?
     
  3. JUSTaMod

    JUSTaMod Spider Jockey

    Messages:
    38
    GitHub:
    justamod
    The Pocketmine-MP.phar doesn't like to get replaced while the server is running. It tends to crash when I issue the stop command after an update like that. I kept hitting a "This file is in use" problem as well. The script will do it while the server is off.
     
  4. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    You could just download the phar at runtime with a different name and then have your start script replace the file.
     
    jasonwynn10 likes this.
  5. JUSTaMod

    JUSTaMod Spider Jockey

    Messages:
    38
    GitHub:
    justamod
    That's an idea.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.