As the question says. I can't access it.
Tries:
#1:
def env = System.getenv()
def BUILD_NUMBER= env["BUILD_NUMBER"]
Result:
Null when I access BUILD_NUMBER
#2:
def BUILD_NUMBER= params["BUILD_NUMBER"]
Result:
Null when I access BUILD_NUMBER This solution however works for environment variables I create