environment variables not getting set

26 views
Skip to first unread message

Sharan Basappa

unread,
Feb 15, 2017, 12:59:21 PM2/15/17
to Jenkins Users
In my pipeline script, I am running another script that compiles and runs tests.
The script runs some jobs on sungrid. When the build is run, I see that qrsh (which is the command to launch job on sungrid) was not found.
I went back and executed env to check the path and as expected the path to sungrid was not set.

The first thing I did was to go back and add proper path to sungrid in .bashrc file of Jenkins user.
That did not solve the issue as expected, as Jenkins will not run under bash.
Then I created a new file to set proper path and then gave the path in Jenkins build (using prepare environment I guess ... I don't remember as I don't have access to Jenkins currently). But this did not help either.

I need some help ...

Mark Waite

unread,
Feb 15, 2017, 2:41:25 PM2/15/17
to Jenkins Users

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3a032339-9981-41e0-ad07-5d3cd2285ea8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sharan Basappa

unread,
Feb 15, 2017, 9:31:04 PM2/15/17
to Jenkins Users
Mark,

I think you are referring to point 9 of the article. But that's not I am looking for.
We already have environment variables in our .bashrc/.cshrc and there are a quite few of them.
So, ideally, we would like to re-use these instead of adding all these variables in Jenkins or in my pipeline code.
So, something to leverage existing set-up scripts would be an effective approach.
Reply all
Reply to author
Forward
0 new messages