It is working fine for me:
If we take the following example:
using JuMP
using Gurobi
model = Model()
set_optimizer(model, Gurobi.Optimizer)
#Define variables
@variable(model, x>=0)
@variable(model, y>=0)
#Define Constraints
@constraint(model, c1, 3x+2y<=66)
@constraint(model, c2, 9x+4y<=180)
@constraint(model, c3, 2x+10y<=200)
#Define Objective
@objective(model, Max, 90x+75y)
optimize!(model)
Now, to extract values:
objective_value(model) #returns 2250.0
value(x) # returns 10.0
value(y) #returns 18.0
value(c1) #returns 66.0
value(c2) #returns 162.0
value(c3) #returns 200.0
This link helps explain what makes it easier for others to help you out. Maybe you want to share an MWE(minimal working example) which would make it easier for others to debug.
Also, update your JuMP
version if you are using an old version.