It looks legit. Something I noticed is that nix-shell still drops me in a shell if it thinks that the input is interactive.
Can you try to run the same command but with `cat | ` piped in front ? On Tue, 16 Feb 2016 at 02:06 Allan Espinosa <[email protected]> wrote: > Hi, > > I've been trying to get one of my default.nix development environment > build in a Jenkins job. I'm not trying to make a package but create a > different artifact that will be consumed in a different way. > > I have this in my execute build step in a freestyle job: > > ``` > #!/usr/bin/env nix-shell > #!nix-shell -i bash > > jupyter --version > ``` > > However, I am getting this output: > > ``` > [workspace] $ /usr/bin/env nix-shell > > /var/folders/bh/q33bp93j2js6zv27rds0n1x00000gn/T/hudson5799651993425365822.sh > error: undefined variable ‘jupyter’ at > > /var/folders/bh/q33bp93j2js6zv27rds0n1x00000gn/T/hudson5799651993425365822.sh:4:1 > ``` > > From the output above, it looks like my script is being interpreted as > a nix expression instead. > > Has anyone else have experience loading the nix-shell in a Jenkins job? > > Thanks > Allan > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
