I have setup "Enable Artifactory trigger" on my jenkins job. The job gets triggered automatically whenever there is an update in the artifactory path. The trigger job output provides the artifact that triggered the build. What i need is to parse the artifact and use as an environment variable?
Jenkins console log of artifactory trigger job
The build was triggered by a change in Artifactory. The artifact which triggered the build is: http://xxx.xxx.com/artifactory/api/storage/artifactory-snapshot/ABC/exp-abc-12-5-br/abc-12-5-99-015/up-image.tgz [EnvInject] - Loading node environment variables. Building remotely on slave in workspace /data/engit-private-jenkins/workspace/Tools/test_artifactory_trigger [test_artifactory_trigger] $ /bin/sh -xe /tmp/jenkins6159521155154940953.sh + echo 'hello world' hello world Finished: SUCCESS
How do I access the http artifactory url in the above jenkins console log in the same job? I dont see it getting stored in the environment