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

Reply via email to